Error when saving in admin panels

Having trouble installing serendipity?
Post Reply
tnt2k03
Regular
Posts: 13
Joined: Mon Dec 24, 2007 9:59 pm

Error when saving in admin panels

Post by tnt2k03 »

Hi everyone,

I am new here at this forum. I just installed Serendipity, after having some errors. I fixed most of them, but one. Installed in windows 2003, with php 5.0 and mysql 5.0 with open ssl enabled. Everything seems to work fine axcept when I tried to modify and save something in the admin control panels, I got this error,

"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."

Could someone please give a hint for what I have done wrong? Thank you very much any help.

One more question. Do I need to install ImageMagick even I have "php_gd2.dll" enable and working properly? I did install the ImageMagick binary version, but it did seem to recognize the path during the Serendipity installation. Any ideas? Thanks

Cheers,

TNT :(
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Error when saving in admin panels

Post by garvinhicking »

Hi!

Which browser are you using? This error message can happen if:

1. Your PHP sessions are not working. Check if the php.session.save_path is alright and files are written. Check if php's php.use_cookies is activated.

2. Your browser is rejecting cookies, maybe because of a blocker

3. You use different hostnames to access your blog (http://192.168... vs. http://localhost, or something like that)

4. You use a proxy that changes the HTTP Referer string, or your browser clears the HTTP referer string.
One more question. Do I need to install ImageMagick even I have "php_gd2.dll" enable and working properly? I did install the ImageMagick binary version, but it did seem to recognize the path during the Serendipity installation. Any ideas? Thanks
Nope, only either gd or imagemagick is needed. if you already have GD, that is usually the better choice, except you want PDF thumbnails, then only imagemagick does the trick.

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/
tnt2k03
Regular
Posts: 13
Joined: Mon Dec 24, 2007 9:59 pm

Post by tnt2k03 »

Thank you ver much Garvin. That fixed the problem. I fixed that in php.ini file. Thanks again for your help.

Cheers,

TNT :D
aludwig99
Posts: 4
Joined: Mon Mar 10, 2008 12:37 am

Post by aludwig99 »

garvinhicking wrote:1. Your PHP sessions are not working. Check if the php.session.save_path is alright and files are written. Check if php's php.use_cookies is activated.

2. Your browser is rejecting cookies, maybe because of a blocker

3. You use different hostnames to access your blog (http://192.168... vs. http://localhost, or something like that)

4. You use a proxy that changes the HTTP Referer string, or your browser clears the HTTP referer string.
Hi everyone - I'm new to Serendipity and this forum, and I'm having precisely the same problem. I have zero php experience, so my questions might be indicative of a failure to understand the basics; my apologies in advance for the stupid questions.

In any case, where are the php.session.save_path and php.use_cookies (settings, files, something else?) so that I may check them? I'm 99.9% the other causes mentioned here cannot be responsible for the error.
I fixed that in php.ini file.
This will illustrate my inexperience/ignorance, but I have no idea what this is. Fixing this may be as simple as pointing me to the right place.

Thanks - any help would be appreciated!

EDIT: I found the php.ini file and session.save_path was commented out - I put it into the code and this fixed the problem immediately. Thanks for the help, and sorry for the unnecessary post!
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Not so unnecessary -- you've definitely helped others who will have the same questions. Thanks!
Judebert
---
Website | Wishlist | PayPal
psiege
Regular
Posts: 52
Joined: Thu Mar 27, 2008 4:21 pm

I too am experiencing this issue...

Post by psiege »

I believe the reason is that I'm not using localhost for the db. I've checked and use.cookies is on. Anything that someone can suggest to fix this?

Update: I tried logging in without the remember me checked, and it kicked me out after trying to navigate around. Is this definitely a php session configuration issue? I'm on a shared host, what should I tell them to fix?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: I too am experiencing this issue...

Post by garvinhicking »

Hi psiege!

What are you talking about exactly? :-) Did you reply to the wrong thread?

Please tell us your complete history so that we can see what your problem is. :)

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/
psiege
Regular
Posts: 52
Joined: Thu Mar 27, 2008 4:21 pm

Post by psiege »

While the issue is related, it does appear that I replied to the wrong thread. Ugh. :)

I was receiving the HTTP referrer string error after first installing Serendipity. And, if I did not check remember me when logging in, it would kick me out after navigating away from the welcome page.

It turns out the server's session path was not valid, and now I'm good to go!

Thanks for responding, looks like there's great support here in the forums. I look forward to working with you all!

Thanks!
Post Reply