V1.73.0 cannot logon [message #2920] |
Sat, 17 March 2012 22:54 ![Go to next message Go to next message](/theme/default/images/down.png) |
kong
Messages: 90 Registered: December 2011
|
Member |
|
|
Apache Version : 2.2.21
PHP Version : 5.3.10
MySQL Version : 5.5.20
After installing Radicore V1.73.0, logon with mgr/password and logon screen will show in green the following msg "You must log in to access this system.". After entering the same user and password again, this msg disappears but still remains at logon screen with the same green msg above and cycle starts over again.
Then, without changing anything, just copy V1.72.0 Radicore files overwriting the existing V1.73.0 files, and logon will be successful.
|
|
|
|
|
Re: V1.73.0 cannot logon [message #2964 is a reply to message #2963] |
Wed, 02 May 2012 03:00 ![Go to previous message Go to previous message](/theme/default/images/up.png) ![Go to next message Go to next message](/theme/default/images/down.png) |
AJM
Messages: 2361 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
I cannot possibly fix this problem unless you can supply me with an error message. You need to ensure that you have the right settings in your php.ini file to display any errors. You should also look in PHP's error log.
The only time that Radicore will output a blank screen is when the script is terminated abnormally, such as when a required file cannot be found, or if a function does not exist.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|
Re: V1.73.0 cannot logon [message #2972 is a reply to message #2971] |
Sun, 13 May 2012 03:44 ![Go to previous message Go to previous message](/theme/default/images/up.png) ![Go to next message Go to next message](/theme/default/images/down.png) |
AJM
Messages: 2361 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
When you first access the login.php script there is no current session, therefore $_SESSION is empty. $_POST is also treated as empty as you have not entered any details yet, so it will display a blank screen. The $_SESSION array is populated with default values, such as 'css_file' and 'rows_per_page'.
After you have entered your id and password and pressed the LOGIN button this will be the 2nd execution of this script, and you will find that both the $_SESSION and $_POST arrays should *NOT* be empty. If the $_SESSION array *IS* empty at this point then you have a problem. You need to see what happens when session_start() is executed on line 42.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
[Updated on: Sun, 13 May 2012 04:05] Report message to a moderator
|
|
|
|
|
Re: V1.73.0 cannot logon [message #3069 is a reply to message #3068] |
Sat, 29 September 2012 04:47 ![Go to previous message Go to previous message](/theme/default/images/up.png) ![Go to next message Go to next message](/theme/default/images/down.png) |
AJM
Messages: 2361 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
I had a similar problem on a new installation after replacing my old laptop with a new one. It turns out that I had cookies turned OFF in my browser, and as the session name is passed around in a cookie, and the cookie wasn't being saved, the post-logon process was looking for a cookie that wasn't there, so it assumed that the logon process had not been successful and returned to the logon screen. All I had to do was enable cookies for that domain in my browser and everything burst into life as usual.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
[Updated on: Wed, 21 May 2014 04:32] Report message to a moderator
|
|
|
Re: V1.73.0 cannot logon [message #3070 is a reply to message #3069] |
Sun, 30 September 2012 05:36 ![Go to previous message Go to previous message](/theme/default/images/up.png) ![Go to next message Go to next message](/theme/default/images/down.png) |
robgratt
Messages: 6 Registered: September 2012 Location: Australia
|
Junior Member |
|
|
Hi, AJM,
Thanks for the reply.
As this is not a production machine I have my cookies set to 'Accept All', so it's not that.
How can I check to see if the cookie is actually being set?
Rob
Rob Grattan
|
|
|
Re: V1.73.0 cannot logon [message #3071 is a reply to message #3070] |
Sun, 30 September 2012 05:55 ![Go to previous message Go to previous message](/theme/default/images/up.png) ![Go to next message Go to next message](/theme/default/images/down.png) |
AJM
Messages: 2361 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
If you are using one of the modern browsers you should have the ability to view cookies. In IE9 go to Developer Tools, and on the 'Cache' tab is an option called 'View cookie information'. In Firefox go to the Web Developer Toolbar, and on the 'Cookies' tab is an option called 'View Cookie Information'.
You should also have the following settings in either your php.ini file or a htaccess file:
php_value session.use_cookies 1
php_value session.use_only_cookies 1
php_value session.use_trans_sid 0
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|
Re: V1.73.0 cannot logon [message #3077 is a reply to message #3072] |
Tue, 02 October 2012 21:11 ![Go to previous message Go to previous message](/theme/default/images/up.png) ![Go to next message Go to next message](/theme/default/images/down.png) |
robgratt
Messages: 6 Registered: September 2012 Location: Australia
|
Junior Member |
|
|
Hi, edortizq,
Did as you said and it works! Thanks a lot!
However, I'm getting a lot of:
"Fatal error: Call to undefined function mysqli_real_escape_string() in C:\wamp\www\radicore\includes\dml.mysql.class.inc on line 908"
I don't use Mysqli. I'd better have a look...
Rob
Rob Grattan
|
|
|
|
Re: V1.73.0 cannot logon [message #3084 is a reply to message #3082] |
Thu, 04 October 2012 01:13 ![Go to previous message Go to previous message](/theme/default/images/up.png) ![Go to next message Go to next message](/theme/default/images/down.png) |
robgratt
Messages: 6 Registered: September 2012 Location: Australia
|
Junior Member |
|
|
Hi, AJM,
I have checked in my php.ini and the extension=mysqli.dll is commented out.
Is there somewhere else I need to check?
I'm determined to get his working, so please bear with me...
Rob
Rob Grattan
|
|
|
|
|
Re: V1.73.0 cannot logon [message #3603 is a reply to message #3600] |
Thu, 28 March 2013 13:39 ![Go to previous message Go to previous message](/theme/default/images/up.png) ![Go to next message Go to next message](/theme/default/images/down.png) |
AJM
Messages: 2361 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
Can you see if any session cookies have actually been created? Is there anything in the PHP_SESSION table in the AUDIT database?
You really ought to get a debugger so that you can step through the code. This is a great help when trying to track down errors as you can see exactly what is going wrong instead of having to make a guess.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|
Re: V1.73.0 cannot logon [message #3607 is a reply to message #3604] |
Fri, 29 March 2013 05:35 ![Go to previous message Go to previous message](/theme/default/images/up.png) ![Go to next message Go to next message](/theme/default/images/down.png) |
AJM
Messages: 2361 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
If the cookie is being created in the browser but does not appear in the database then you need to check the database credentials in the config.inc file.
There are several free IDEs out there which include the ability to run a debugger. My first IDE was PHPEDit from http://www.phpedit.com, but I gave that up and switched to Zend Studio. I have used Netbeans (briefly) and Eclipse (also briefly). My current IDE is PHPEd from http://www.nusphere.com. There are plenty to choose from, from free and non-free, so the choice is yours.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|
|
|
|
|
|
|
|
|