Loading...
 
Architecture / Installation

Architecture / Installation


Blank after login problem solved!

posts: 25 United States

Hi Everyone,

I hope the New Year is being kind... smile

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):

Image
Copy to clipboard
// 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:

Image
Copy to clipboard
// 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

There are no comments at this time.

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting