Parse error: syntax error, unexpected T_STRING in osCommerce

Discussions about MODs and Tips published on our web site.
birol
Posts: 2
Joined: Tue Dec 08, 2009 3:28 am

Parse error: syntax error, unexpected T_STRING in osCommerce

Postby birol » Tue Dec 08, 2009 10:22 am

I get "Parse error: syntax error, unexpected T_STRING in ...admin/includes/functions/sessions.php on line 71" after adding your Register Globals MODs.
Line 71:function tep_session_register($variable) {
$_SESSION[$variable] = null;
}

It seems as if there is a quote or double-quote problem somewhere before this function is called. Did anyone else have this problem?

Birol

birol
Posts: 2
Joined: Tue Dec 08, 2009 3:28 am

Re: Parse error: syntax error, unexpected T_STRING in osCommerce

Postby birol » Tue Dec 08, 2009 10:38 am

The same problem occurs in non-admin functions as well if you try to login to your account.

"Parse error: syntax error, unexpected T_STRING in ... /includes/functions/sessions.php on line 71"

Line 71: function tep_session_register($variable) {...

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: Parse error: syntax error, unexpected T_STRING in osCommerce

Postby inveo » Wed Dec 09, 2009 11:34 am

Make sue you have properly copy & paste the code. There is no such problem.