ppousette Posted September 12, 2014 Share Posted September 12, 2014 I have problem to make new CMS pages. When I click on the ”add” button It just give me the message "Invalid security token”When I choose "I understand the risks and really want to display this page” but I’m just directed to CMS categories page again.I can find a solution but I dont know where to begin. https://github.com/PrestaShop/PrestaShop/commit/84eaa4f9cbb773dc481f3cf84f63db1a7d253827 Can someone guide me for this? Link to comment Share on other sites More sharing options...
vekia Posted September 12, 2014 Share Posted September 12, 2014 you have to use ftp connection to alter the files so, connect to your FTP service, then go to: controllers/admin/ directory and download file: AdminCmsCategoriesController.php to your hard disc drive open it, and change this line: $this->toolbar_btn['new']['href'] .= '&id_parent='.(int)Tools::getValue('id_cms_category'); to: $this->toolbar_btn['new']['href'] .= '&id_parent='.(int)Tools::getValue('id_cms_category'); then upload file to your ftp service, overwrite actual file. do the same for controllers/admin/AdminCmsController.php file change this line: - '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, and of course reupload file to your server Link to comment Share on other sites More sharing options...
vekia Posted September 12, 2014 Share Posted September 12, 2014 ps. if you have cpanel you can run cpanel tools to alter files online, without downloading it to your PC How to access the File ManagerTo access the File Manager click on the corresponding icon in the Files section of your cPanel. Then you will be able to pick the directory for which to open File Manager: The File Manager appears as follows: 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