invalid HTTP-Referrer string in new category

Having trouble installing serendipity?
Post Reply
cpsim
Posts: 1
Joined: Sat Nov 15, 2008 4:48 pm

invalid HTTP-Referrer string in new category

Post by cpsim »

While trying to create a new category, I get:

Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.

1.3.1 serendipity
4.4.7 php
all greens on the diagnostic check during installation

What's wrong?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: invalid HTTP-Referrer string in new category

Post by garvinhicking »

Hi!

Do you have cookies enabled? Make sure your browser or antivir software does not block those.

Does your PHP server have session.use_cookies enabled in PHP configuration and session.save-path point to a valid directory? Ask your provider if you don't know about this.

Does your browser properly send the HTTP referrer string? If you are using a PRoxy, make sure he relays the HTTP referrer.

Regards,
GArvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
niknah
Regular
Posts: 7
Joined: Mon Jun 06, 2005 11:13 am

Re: invalid HTTP-Referrer string in new category

Post by niknah »

This error appears maybe one out of every 5-10 times randomly when I use serendipity.
Another error is when after I make changes to a post and the little frame where it should say "view..." shows the front admin page instead.

This has happened to me on different computers linux, windows, opera, firefox, chrome.

Serendipity 1.5.3 and PHP 5.3.2, apache 2.2.15
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: invalid HTTP-Referrer string in new category

Post by garvinhicking »

Hi!

This usually is a problem of missing cookies. Did you check what was poste earlier in this thread?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
niknah
Regular
Posts: 7
Joined: Mon Jun 06, 2005 11:13 am

Re: invalid HTTP-Referrer string in new category

Post by niknah »

Yes cookies are enabled, php's sessions folder is set. Not using a proxy.
If it wasn't I wouldn't be able to login at all, but it's only happening randomly.

The strange thing is that I can wonder around most of serendipity's admin section, the error only appears when I try to save something like a post or upload something.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: invalid HTTP-Referrer string in new category

Post by garvinhicking »

Hi!

Are you able to use firefox' livehttpheader extension to check if your browser submits a fresh PHP session ID when posting, or if the previous session-cookie ID is used properly?

Regards,
GArvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply