Guest Posted April 10, 2007 Posted April 10, 2007 Hi, I just installed a osCommerce from a package at hostingplace, version 2.2ms2-060817. I can use the admin panel but when I try to get in as client, it stops rightaway with text : Parse error: syntax error, unexpected T_RETURN in /var/www/sites/dtc/myaddress.net/subdomains/shop/html/includes/functions/sessions.php on line 149 I think there's something wrong with the sessions.php like it says...but what? Here's some lines around the line 149 function tep_session_is_registered($variable) { // >>> BEGIN REGISTER_GLOBALS // return session_is_registered($variable); return isset($_SESSION[$variable]); // <<< END REGISTER_GLOBALS } function tep_session_unregister($variable) { // >>> BEGIN REGISTER_GLOBALS // Work-around to allow disabling of register_gloabls - unmap session variable link_session_variable($variable, false); unset($_SESSION[$variable]); + // return session_unregister($variable); return true; // <<< END REGISTER_GLOBALS } + ... I bolded the line 149 ...is there really something wrong or what is it? Same error comes when I store sessions to files or database. There is another version of osCommerce on my hostingplace that works for sessions but it has millions of mods installed and it looks too filled up so I try to get this one working =)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.