mantoweb Posted September 3, 2014 Share Posted September 3, 2014 (edited) Hi everyone, Just changed the code by this fix bug on github for "invalid security token error messages" https://github.com/PrestaShop/PrestaShop/commit/84eaa4f9cbb773dc481f3cf84f63db1a7d253827 After I deleted cache in my browser ( Chrome ), I can't add cms pages anymore. A blank page shows up. /admin3565/index.php?controller=AdminCmsContent&token=fb46f088614add821844456f2db13e86 Any ideas how to fix this ? Where are the tokens stored in the database ? Edited September 5, 2014 by mantoweb (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted September 3, 2014 Share Posted September 3, 2014 blank page = errors please turn on error reporting do you see then some error code instead of simple white page ? Link to comment Share on other sites More sharing options...
mantoweb Posted September 3, 2014 Author Share Posted September 3, 2014 Hi Vekia, Just turned on error reporting ( local site )....nothing however, just a blank page. In the log this message : ID Medewerker Beveiliging (1-4) Bericht Onderwerp type Onderwerp ID Foutcode Datum 1 1 CMSCategory toevoeging CMSCategory 2 0x 0 2014-09-03 20:47:06 Errorcode 0x 0 when I tried to add a category to CMS. any clues ? Link to comment Share on other sites More sharing options...
vekia Posted September 4, 2014 Share Posted September 4, 2014 sadly this internal error mesage means nothing for me have you got an access to server error log? 1 Link to comment Share on other sites More sharing options...
mantoweb Posted September 4, 2014 Author Share Posted September 4, 2014 Hi Vekia, It's site local on my pc so that shouldn't be a problem. Any errors I should look for specific ? Link to comment Share on other sites More sharing options...
reflectiveoffice Posted September 5, 2014 Share Posted September 5, 2014 Hi, I have exactly the same issue. I applied the fix but just get a blank white page. Error reporting returns nothing but a blank white page. This is not a local site - it is live. Any ideas how to fix this? Link to comment Share on other sites More sharing options...
mantoweb Posted September 5, 2014 Author Share Posted September 5, 2014 (edited) Hi Vekia The php error log showed the php parse error PHP Parse error: syntax error, unexpected 'href' (T_STRING), expecting ')' in ....\controllers\admin\AdminCmsController.php on line 246 A " ' " sign was the culprit. After I removed the extra character, the page showed up again ! Thx for pointing out where to look. @reflectiveoffice : perhaps you should check your php error log also Edited September 5, 2014 by mantoweb (see edit history) 1 Link to comment Share on other sites More sharing options...
vekia Posted September 6, 2014 Share Posted September 6, 2014 strange, this is not default behaviour in ps can you show line mentioned in error code (from file AdminCmsController) ? Link to comment Share on other sites More sharing options...
reflectiveoffice Posted September 8, 2014 Share Posted September 8, 2014 Just to prevent any confusion - my issue above is solved. I had an incorrect character in the controller files causing the problem. I pasted the entire file codes from this fix https://github.com/PrestaShop/PrestaShop/commit/84eaa4f9cbb773dc481f3cf84f63db1a7d253827 by clicking the View buttons 1 Link to comment Share on other sites More sharing options...
reflectiveoffice Posted September 8, 2014 Share Posted September 8, 2014 Thank you mantoweb - your advice solved my issue (an incorrect character). 1 Link to comment Share on other sites More sharing options...
vekia Posted September 8, 2014 Share Posted September 8, 2014 so you manually changed core files? Link to comment Share on other sites More sharing options...
reflectiveoffice Posted September 8, 2014 Share Posted September 8, 2014 Yes. I followed this fix https://github.com/PrestaShop/PrestaShop/commit/84eaa4f9cbb773dc481f3cf84f63db1a7d253827 1 Link to comment Share on other sites More sharing options...
fransjaeger Posted October 20, 2014 Share Posted October 20, 2014 Thanks for sharing Question: So this will automatically be fixed on next release, right? So its okay that I override my core files in this case, right? Link to comment Share on other sites More sharing options...
webmasterdevil Posted November 15, 2014 Share Posted November 15, 2014 I just correct this changing the line 247 from \controllers\admin\AdminCmsController.php from:'href' => self::$currentIndex.'&add'.$this->table.'&id_cms_category='.(int)$this->id_cms_category.'&token='.$this->token, to 'href' => self::$currentIndex.'&add'.$this->table.'&id_cms_category='.(int)$this->id_cms_category.'&token='.$this->token, I guess the problem was in "&"... work for me Link to comment Share on other sites More sharing options...
Recommended Posts