mskitti Posted November 4, 2016 Share Posted November 4, 2016 My CMS pages are totally blank. I have tried everything I could find to fix my issue. Turned off overrides, cleared cache and etc. I am using 1.6.1.7. They worked until I upgraded thru the backoffice. I look at my error log and it shows: [04-Nov-2016 16:52:58 US/Central] PHP Parse error: syntax error, unexpected 'public' (T_PUBLIC) in /home/xxxxxx.com/public_html/controllers/front/CmsController.php on line 96 There is a lot of the same error in the error log file. I look at line 96 and it shows: $this->addCSS(_THEME_CSS_DIR_.'cms.css'); public function setMedia() (this line is 96){ Help please. MsKitti Link to comment Share on other sites More sharing options...
sandipchandela Posted November 5, 2016 Share Posted November 5, 2016 Check setMedia function in Cmscontroller.php public function setMedia() { parent::setMedia(); if ($this->assignCase == 1) { $this->addJS(_THEME_JS_DIR_.'cms.js'); } $this->addCSS(_THEME_CSS_DIR_.'cms.css'); } If this not works then find a new copy of CMScontroller file from github repo. https://github.com/PrestaShop/PrestaShop/tree/develop/controllers/front Link to comment Share on other sites More sharing options...
mskitti Posted November 6, 2016 Author Share Posted November 6, 2016 Thanks archSandy. You solution was already in the Cmscontroller page. I appreciate your help because it gave me the idea to just re-upload ALL cms files and that fixed it. All seems to work okay now. Thank you so much. Your time is appreciated. MsKitti Link to comment Share on other sites More sharing options...
sandipchandela Posted November 7, 2016 Share Posted November 7, 2016 welcome mskitti glad your problem has been solved Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now