Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

unexpected T_OBJECT_OPERATOR


Eszaraxe

Recommended Posts

I have moved my shop from my testserver to a webhotel so I can go live, everything works on my testserver.

 

After the move I have the following problems

 

Error message in catalog, or from a customer point of view:

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/stelisse/public_html/test/includes/application_top.php on line 310

 

Error message in admin:

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/stelisse/public_html/test/stellar/includes/functions/general.php on line 160

 

 

 

This is the code in application_top.php

/**

* ULTIMATE Seo Urls 5 PRO by FWR Media

*/

line 310 Usu_Main::i()->setVar( 'languages_id', $languages_id )

->setVar( 'request_type', $request_type )

->setVar( 'session_started', $session_started )

->setVar( 'sid', $SID )

->setVar( 'language', $language )

->setVar( 'filename', $PHP_SELF )

->initiate( ( isset( $lng ) && ( $lng instanceof language ) ) ? $lng : array(), $languages_id, $language );

 

 

// include the language translations

require(DIR_WS_LANGUAGES . $language . '.php');

 

 

An this is the code in general.php

// Output a raw date string in the selected locale date format

// $raw_date needs to be in this format: YYYY-MM-DD HH:MM:SS

// NOTE: Includes a workaround for dates before 01/01/1970 that fail on windows servers

function tep_date_short($raw_date) {

if ( ($raw_date == '0000-00-00 00:00:00') || ($raw_date == '') ) return false;

 

$year = substr($raw_date, 0, 4);

$month = (int)substr($raw_date, 5, 2);

$day = (int)substr($raw_date, 8, 2);

$hour = (int)substr($raw_date, 11, 2);

$minute = (int)substr($raw_date, 14, 2);

$second = (int)substr($raw_date, 17, 2);

 

if (@@date('Y', mktime($hour, $minute, $second, $month, $day, $year)) == $year) {

return date(DATE_FORMAT, mktime($hour, $minute, $second, $month, $day, $year));

line 160 } else {

return preg_replace('/2037$/', $year, date(DATE_FORMAT, mktime($hour, $minute, $second, $month, $day, 2037)));

}

 

}

osCommerce 2.3.1 - QTPro 4.6.1 - Ultimate SEO URL's 5 Pro r205 - Discount Code 3.1 - Column listing with smart columns - Products Sort and some more

Link to comment
Share on other sites

Sorry for reporting the problem.

 

It was php-problem, Somehow I had lost my php5config-line in .htaccess, when I found out that and put it backa again, there is no problem.

osCommerce 2.3.1 - QTPro 4.6.1 - Ultimate SEO URL's 5 Pro r205 - Discount Code 3.1 - Column listing with smart columns - Products Sort and some more

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...