PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
nuncamais13
New Member
New Member


Joined: Sep 20, 2009
Posts: 4
Location: España

PostPosted: Sun Sep 20, 2009 2:55 pm Reply with quote Back to top

hi
Select an avatar when I get this failure can you tell me how to solve

thanks

CSRF check failed. Please enable cookies.
If the problem persists, please contact the server/website administrator
View user's profile Send private message Visit poster's website
jakec
Site Admin


Joined: Feb 06, 2006
Posts: 3038
Location: United Kingdom

PostPosted: Sun Sep 20, 2009 3:18 pm Reply with quote Back to top

Are your cookies turned on in your browser?
View user's profile Send private message
pugsley
New Member
New Member


Joined: Sep 17, 2009
Posts: 7
Location: Ohio, USA

PostPosted: Mon Sep 21, 2009 9:27 am Reply with quote Back to top

I am having the same issue as well.

I am building a website for a WoW guild and most everything is working great.

The problem arises when a user goes to select a different avatar from the gallery with the Avatar Control Panel under Your Account/Change Info they get the same error message as above:

CSRF check failed. Please enable cookies.
If the problem persists, please contact the server/website administrator

Site specifics:

Apache version 2.2.11 (Unix)
PHP version 5.2.10
MySQL version 5.0.81-community
Architecture x86_64
Operating system Linux
Site URL -
Only registered users can see links on this board!
Get registered or login to the forums!


I installed RN v2.4 and Nuke Sentinel verbatim with the installation instructions located on the wiki.

I have tried both IE and Mozilla Firefox with cookies enabled and privacy/security settings as low as possible and get the same error with both browsers.

Thanks in advance
View user's profile Send private message
jakec
Site Admin


Joined: Feb 06, 2006
Posts: 3038
Location: United Kingdom

PostPosted: Mon Sep 21, 2009 10:35 am Reply with quote Back to top

OK we will look into this and get back to you ASAP.

Thank you for letting us know.
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9133
Location: Arizona

PostPosted: Tue Sep 22, 2009 6:53 am Reply with quote Back to top

I couldn't get to looking at it yesterday. Hopefully I can this evening. We know what the issue is.
View user's profile Send private message Visit poster's website
pugsley
New Member
New Member


Joined: Sep 17, 2009
Posts: 7
Location: Ohio, USA

PostPosted: Tue Sep 22, 2009 7:15 am Reply with quote Back to top

Not a problem, everything else works so great I don't think anyone has even noticed the lack of avatars Smile

Thanks for the update though, much appreciated.
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9133
Location: Arizona

PostPosted: Wed Sep 23, 2009 10:17 pm Reply with quote Back to top

Ok, try this:

=== OPEN FILE ===

modules/Your_Account/index.php

=== MOVE THIS LINE ===

case 'avatarsave':

=== IN BETWEEN HERE LIKE THIS (i.e., move it up) ===

case 'saveactivate':
case 'avatarsave':
case 'userinfo':

=== DONE ===

I still need to make sure there isn't anything else being maintained by the avatarsave, but from my initial review, I see no reason to protect against an avatar being changed to something else within the Gallery... not real CSRF issue IMO. Just an annoyance.

Give this a go and see if it works for you.
View user's profile Send private message Visit poster's website
unicornio
Involved
Involved


Joined: Aug 13, 2009
Posts: 432

PostPosted: Thu Sep 24, 2009 12:09 am Reply with quote Back to top

Montego. I agree with you and I am gonna test it. I didnt know changing an avatar was an issue. I hope we get rid of this problem soon. I will check it out.


Edited:

Problem is solved Montego. The problem was that line which was causing avatar breaking. Thanks a lot Montego. Wink
View user's profile Send private message
jakec
Site Admin


Joined: Feb 06, 2006
Posts: 3038
Location: United Kingdom

PostPosted: Thu Sep 24, 2009 1:22 am Reply with quote Back to top

RavensScripts
View user's profile Send private message
pugsley
New Member
New Member


Joined: Sep 17, 2009
Posts: 7
Location: Ohio, USA

PostPosted: Thu Sep 24, 2009 6:28 am Reply with quote Back to top

Fixed for me also, thanks !

I second the RavensScripts
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9133
Location: Arizona

PostPosted: Thu Sep 24, 2009 5:30 pm Reply with quote Back to top

Excellent. I will commit that change to our code repository later tonight.
View user's profile Send private message Visit poster's website
jimfries
New Member
New Member


Joined: Sep 25, 2009
Posts: 4

PostPosted: Fri Sep 25, 2009 12:37 pm Reply with quote Back to top

I'm having the same issue on my website. I just installed your latest RavenNuke, updated my theme and when I go to change the message on the front page of my website (www.eidolon-legion.com) I get that message. (the message, not the news module)

edit:
Its happening when I go to submit news to my website also.
Quote:
CSRF check failed. Please enable cookies.
If the problem persists, please contact the server/website administrator
View user's profile Send private message
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2456
Location: Pittsburgh, Pennsylvania

PostPosted: Fri Sep 25, 2009 12:54 pm Reply with quote Back to top

If the link you provided is still running 2.4 with CSRF active then you have a problem. I do not see the tokens added to any of the forms have you disabled the csrf protection?
View user's profile Send private message
jimfries
New Member
New Member


Joined: Sep 25, 2009
Posts: 4

PostPosted: Fri Sep 25, 2009 1:04 pm Reply with quote Back to top

I did not even know about CSRF Protection. I just took over the site from a friend, and went ahead and updated it to 2.4 (I did not know the version he was using, so felt it was best to just update).

I completed the update not long ago this morning, changed the theme and then ran into that error.

How do I disable the CSRF Protection? (checking forums and google as you read this most likely)
View user's profile Send private message
spasticdonkey
RavenNuke(tm) Development Team


Joined: Dec 02, 2006
Posts: 1360
Location: Texas, USA

PostPosted: Fri Sep 25, 2009 1:42 pm Reply with quote Back to top

at the bottom of rnconfig.php
Code:
$disableCSRFChecking = true; // Set to "true" in order to disable Cross-Site Request Forgery (CSRF) attack protection - should ONLY use as a last resort if your environment does not allow for output buffering
View user's profile Send private message
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2456
Location: Pittsburgh, Pennsylvania

PostPosted: Fri Sep 25, 2009 1:44 pm Reply with quote Back to top

Well it would appear that output buffering is not working on your site. Go into your forum admin and you should see a phpinfo tab. Go there and see if output buffering is enabled. Also what version of PHP are you running?

I would advise against it, but if you want to just diable CSRF protection then go into rnconfig.php in the root of the site. Near the bottom you need to set disable CSRF to TRUE.
View user's profile Send private message
jakec
Site Admin


Joined: Feb 06, 2006
Posts: 3038
Location: United Kingdom

PostPosted: Fri Sep 25, 2009 2:04 pm Reply with quote Back to top

Check out the rnconfig.php file.
View user's profile Send private message
jakec
Site Admin


Joined: Feb 06, 2006
Posts: 3038
Location: United Kingdom

PostPosted: Fri Sep 25, 2009 2:06 pm Reply with quote Back to top

I knew I should of refreshed before posting, got distracted! Laughing
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9133
Location: Arizona

PostPosted: Sat Sep 26, 2009 1:06 pm Reply with quote Back to top

Yes, output buffering is required. Although the following FAQ is for a different error message, the fix is the same:
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website
DJ_Raven
New Member
New Member


Joined: Feb 26, 2006
Posts: 14
Location: Colorado, USA.

PostPosted: Tue Sep 29, 2009 6:35 pm Reply with quote Back to top

Yes I read this forum and it did fix mine as well thank you Raven Scripts! RavensScripts
View user's profile Send private message Visit poster's website
nuncamais13
New Member
New Member


Joined: Sep 20, 2009
Posts: 4
Location: España

PostPosted: Wed Sep 30, 2009 5:03 pm Reply with quote Back to top

perfect, problem solved if you stop now Select avatar.
thanks for the help
View user's profile Send private message Visit poster's website
sak
Worker
Worker


Joined: Jul 06, 2005
Posts: 167

PostPosted: Wed Nov 18, 2009 2:50 pm Reply with quote Back to top

I applied this fix to my Your_Account/index.php

Now I get this when users try to change avatar:

There was an error when we tried to save your Avatar: Wrong avatar format! Avatars can only be gif, jpg, or png format.


All of the files displayed in the gallery are .jpg and .gif. Any idea what the problem is?
View user's profile Send private message Visit poster's website
nuken
RavenNuke(tm) Development Team


Joined: Mar 11, 2007
Posts: 1535
Location: North Carolina

PostPosted: Wed Nov 18, 2009 3:45 pm Reply with quote Back to top

If you are using 2.4 and not 2.4 rc1, you should not need apply this fix. It should work fine as is.
View user's profile Send private message Send e-mail Visit poster's website
sak
Worker
Worker


Joined: Jul 06, 2005
Posts: 167

PostPosted: Wed Nov 18, 2009 4:12 pm Reply with quote Back to top

I believe I am using RC1. I'll begin upgrading. Were there any changes in the db from RC1 to release? Or just the files?
View user's profile Send private message Visit poster's website
nuken
RavenNuke(tm) Development Team


Joined: Mar 11, 2007
Posts: 1535
Location: North Carolina

PostPosted: Wed Nov 18, 2009 4:46 pm Reply with quote Back to top

Just files
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum