Blank after login problem solved!
Hi Everyone,
I hope the New Year is being kind...
I just wanted to wrap up the solution to a couple of posts I made earlier:
parse error, unexpected T_SL Which I can no longer open...
and
Odd file listing in templates_c
I posted the problem about the "unexpected T_SL" at LinuxQuestions.org and got one good suggestion that rang a bell...
Original Code (tiki-login.php):
// Alert user if cookies are switched off <<<<<<< tiki-login.php if (ini_get('session.use_cookies') == 1) { if(!isset($_COOKIE['efnj_PHPSESSID'])) { ======= for some reason, CAS proxy tickets don't work if the following cookie check occurs: help! global $auth_ext_xml_cas_proxy; if (ini_get('session.use_cookies') == 1 && $auth_ext_xml_cas_proxy != 'y') { if(!isset($_COOKIE['efnj_PHPSESSID'])) { >>>>>>> 1.43 $url = 'tiki-error.php?error=' . urlencode(tra('You have to enable cookies to be able to login to this site')); header("location: $url"); die; } }
Revised Code:
// Alert user if cookies are switched off // <<<<<<< tiki-login.php if (ini_get('session.use_cookies') == 1) { if(!isset($_COOKIE['efnj_PHPSESSID'])) { // ======= // for some reason, CAS proxy tickets don't work if the following cookie check occurs: help! //global $auth_ext_xml_cas_proxy; //if (ini_get('session.use_cookies') == 1 && $auth_ext_xml_cas_proxy != 'y') { // if(!isset($_COOKIE['efnj_PHPSESSID'])) { // >>>>>>> 1.43 $url = 'tiki-error.php?error=' . urlencode(tra('You have to enable cookies to be able to login to this site')); header("location: $url"); die; } }
Nothing fancy there... I just did the old bracket matching... Then after that change I tried to login. Now I got an actual error message that said that a table was missing (tiki_logs). I verified that it was actually missing and then found the section in the application setup script that made the table (DB/tiki.sql) and just ran that code segment to make the table.
After that I tried to login again and Voila! It worked!!! So now I have v1.10 (CVS) running on PHP 4.3.10-2 and seemingly working again!
I just wanted to make sure that I kicked this back into the forum in case it may help someone else....
Regards,
MichaelE