Page 1 of 1

Error when saving in admin panels

Posted: Mon Dec 24, 2007 10:18 pm
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 :(

Re: Error when saving in admin panels

Posted: Wed Dec 26, 2007 1:23 pm
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

Posted: Thu Dec 27, 2007 3:15 am
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

Posted: Mon Mar 10, 2008 12:53 am
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!

Posted: Wed Mar 12, 2008 3:42 pm
by judebert
Not so unnecessary -- you've definitely helped others who will have the same questions. Thanks!

I too am experiencing this issue...

Posted: Thu Mar 27, 2008 4:25 pm
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?

Re: I too am experiencing this issue...

Posted: Fri Mar 28, 2008 9:58 am
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

Posted: Fri Mar 28, 2008 4:13 pm
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!