Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.10.01 - All Issues
Author Message
maffg
New Member
New Member



Joined: Aug 12, 2007
Posts: 5

PostPosted: Sun Aug 12, 2007 2:38 pm Reply with quote

Hi,

Downloaded the latest version of RavenNuke and install went fine, no problems at all.

My only issue is I cannot log in as admin, or have new users register or anything along those lines if I use the new CAPTCHA code.

If I set gfx_chk to 0 in the config everything is ok but i want the setting at 7 for security reasons.

I've searched on the forums here and cant seem to find a problem or solution that exactly mirrors mine. I did find one post that mentioned it being a sessions problem and to add

Code:
session_save_path(dirname(__FILE__));


to the mainfile (I presume this meant mainfile.php) which said it would tell me if it was the problem and was a temp fix for it, but it doesn't seem to have made any difference.

I've not the most technically gifted person in the world and am struggling for a solution now.

Any help gratefully received.
 
View user's profile Send private message
montego
Site Admin



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

PostPosted: Sun Aug 12, 2007 5:56 pm Reply with quote

maffg, there are also topics here related to GD and FreeType (must be compiled into GD). You can also ask your host to check to make sure that these are available to you as the Captcha system requires them.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
maffg







PostPosted: Sun Aug 12, 2007 6:03 pm Reply with quote

I hadn't though of looking at those because the captcha displays itself perfectly. Thanks I'll go browse and speak to my host now.
 
montego







PostPosted: Sun Aug 12, 2007 6:14 pm Reply with quote

May I see what you are seeing? If you PM me your web site address I can take a quick look. It may be something different, but I need to see it.
 
montego







PostPosted: Mon Aug 13, 2007 6:39 am Reply with quote

Well, the captcha is being displayed correctly. That rules out the GD/FreeType issues. I have tried to create a new account on your site and am getting the "Security not correct" error message. This tells me that your host does not have the session path set up properly I suspect.

Technocrat wrote up a great post documenting how his captcha works. See towards the bottom with the issue that I suspect you are having.
 
technocrat
Life Cycles Becoming CPU Cycles



Joined: Jul 07, 2005
Posts: 511

PostPosted: Mon Aug 13, 2007 10:06 am Reply with quote

Did you add the code to the top of the file?

_________________
Nuke-Evolution
phpBB-Evolution / phpBB-Evolution Blog 
View user's profile Send private message
maffg







PostPosted: Mon Aug 13, 2007 10:22 am Reply with quote

Yes, so the top of my mainfile.php looks like this currently

Code:
<?php


session_save_path(dirname(__FILE__));

/************************************************************************/
/* PHP-NUKE: Advanced Content Management System                         */
/* ============================================         
 
maffg







PostPosted: Wed Aug 15, 2007 2:35 am Reply with quote

Ok,

I've been to my host and they seem sure that the session path set up is correct. They did refer to to a phpinfo page of my server (haven't linked it because I don't know how sensitive the information on there is).

So if the sessions are ok, is there anything else this may be caused by?
 
technocrat







PostPosted: Wed Aug 15, 2007 9:03 am Reply with quote

No the code gets stored in the sessions. So if the code is not letting you in but it is showing on the screen correctly, the only problem I have seen is caused by sessions being incorrectly setup.

If you want to test the sessions you can

Make a file called test.php on your root and put the following:
Code:
<?php

session_start();
$_SESSION['test'] = 'maffg';
echo 'Now go to the display';


Then make a file called test_display.php and put the following:
Code:
<?php

session_start();
var_dump($_SESSION);


First go to [ Only registered users can see links on this board! Get registered or login! ] then go to [ Only registered users can see links on this board! Get registered or login! ] it should show you your name
 
maffg







PostPosted: Wed Aug 15, 2007 9:34 am Reply with quote

Ok, on going to test_display.php all it came up with was

array(0) { }

With my limited knowledge I guess this is evidence of the sessions not being set up correctly?
 
technocrat







PostPosted: Wed Aug 15, 2007 9:38 am Reply with quote

Well I have only been awake for about an hour so I might have made a code error some where, but yes it appears that your sessions are not working.
 
muddles
New Member
New Member



Joined: Dec 12, 2007
Posts: 6

PostPosted: Thu Dec 13, 2007 6:37 am Reply with quote

I've checked this on my server and got this error message

Quote:
array(1) { ["test"]=> string(5) "maffg" }


Does that mean my sessions aren't set up properly too?

Sorry for taggin in on the end of this thread.
 
View user's profile Send private message
technocrat







PostPosted: Thu Dec 13, 2007 9:53 am Reply with quote

No it means they are working correctly
 
muddles







PostPosted: Thu Dec 13, 2007 10:41 am Reply with quote

Thank you for that I didnt know if it meant it was or wasnt working.

But my security code still isn't working. It shows up fine, but when you enter it to activate your account it says security code incorrect.

I've asked my host to check the sessions are set up properly, but when I did the test, it came back ok by your reply. I've not heard back from my host as yet so I guess thtey're checking the sessions setup.

Is there anything else could be causing this error?
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.10.01 - All Issues

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©