Hi All,
I hope that you all had a good holiday season and that the New Year is treating you well.
I am trying to troubleshoot a problem with my
tikiwiki that manifested around the 22nd of December. Prior to this date the wiki was working fine and everything was normal.
I am running on Debian Sarge and I am fairly certain that the PHP 4.3.10-2 upgrade is largely to blame for the hosing...
I am now seeing the following error in my php log when I try to login:
Code:
[03-Jan-2005 09:58:14] PHP Parse error: parse error, unexpected T_SL in /basepath/tikiwiki/tiki-login.php on line 17
The offending sections of code from lines 16-30 are as follows:
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;
}
}
I've tried to look up the syntax for the 'odd' use of the redirects ("<<<<<<" and ">>>>>>") and I got some hits with references to long argument assembly... I'm not sure that is relevant in this instance...
What are they really trying to do with the redirects?
PHP settings are as follows:
Code:
<IfModule mod_php4.c>
php_admin_value open_basedir "/basepath/tikiwiki"
php_admin_value magic_quotes_gpc "1"
php_admin_value error_reporting "2039"
php_admin_value log_errors "1"
php_admin_value ignore_repeated_errors "1"
php_admin_value register_globals "1"
#php_value mmcache.enable "0"
#php_value mmcache.optimizer "0"
php_admin_value error_log "/var/log/apache/wiki_php4_error.log"
php_value memory_limit "16M"
</IfModule>
Anyone?