madc Posted June 29, 2013 Share Posted June 29, 2013 When trying to access the FO of my website that I recently moved from localhost to the hosting server I keep on getting tthe following error message (the display_errors flag is enabled) and a blank page: Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home2/madc/public_html/override/controllers/front/IndexController.php on line 63 Line 63 of IndexController.php (method that overwrites the core file IndexController.php) reads as follows: ...... this->context->smarty->assign(array( 'HOOK_TOPCART' => Hook::exec('TopCart'), 'HOOK_HOME' => Hook::exec('home'), 'HOOK_HEAD_HOME' => Hook::exec('headHome'), 'HOOK_LEFT_BOTT' => Hook::exec('LeftColBot'), 'homeCategories' => Category::getHomeCategories(1), 'currentHomeCategoryId' => $currentHomeCategoryId )); ....... The website works fine in the localhost, but after migrating to my hosting server I can only access the backoffice. I am using the version 1.5.3.0 of Prestashop and on the hostserver the PHP version is 5.3.26. I already tried to read other forum topics also related to the same error, but they all were related to the index.php file instead. Also I contacted my hosting helpdesk but they could not help me with this issue. I also tried to comment-out the line 63, but then I got again a blank page with the text "Overridden Method". Could anyone help me with this problem, I am getting quite frustated, and want to avoid as much as possible a fresh installation and having to fill up my database all over again. Link to comment Share on other sites More sharing options...
madc Posted July 1, 2013 Author Share Posted July 1, 2013 Anyone any suggestion on this problem ?? Link to comment Share on other sites More sharing options...
Recommended Posts