Guest Posted October 12, 2012 Share Posted October 12, 2012 (edited) Any one else experiencing this? When i add a module to the Quick Access system and then try the link I get this message "Invalid Security token" then the message to get me out of here, or continue. NEither work I have tried with and without Http, with and without thee actual token. I have tried deleting cache . Seems this happens on some modules but not others. Any ideas? BTW the links work jsut fine when copied and pasted into the address bar Edited January 16, 2013 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted October 14, 2012 Share Posted October 14, 2012 Just me? Link to comment Share on other sites More sharing options...
elameno Posted October 19, 2012 Share Posted October 19, 2012 I've been testing out the RMA functionality and just received the same message when I deleted an item from an RMA request. I clicked the option to continue and Prestashop did what I requested, but this is awfully obnoxious and odd. Any others have this problem? Link to comment Share on other sites More sharing options...
dawb Posted November 13, 2012 Share Posted November 13, 2012 I get the same error when trying to add modules to the drop down menus. I have tried adding the module controller etc into the 'Class' field as I read in another post. eg adminmodules&configure=blockcontactinfos But still get this security token error Link to comment Share on other sites More sharing options...
jayxflash Posted November 18, 2012 Share Posted November 18, 2012 Any Quick Access link which uses adminmodules controller ( index.php?controller=adminmodules&filterCategory=favorites ) is pushing the Invalid security token error message. Link to comment Share on other sites More sharing options...
Keishi Posted December 21, 2012 Share Posted December 21, 2012 hello , same problem here... i just installed a module and when adding it to quick i get the same error/alert. Link to comment Share on other sites More sharing options...
go2pub Posted December 23, 2012 Share Posted December 23, 2012 just another prestashop bug??? Link to comment Share on other sites More sharing options...
go2pub Posted December 23, 2012 Share Posted December 23, 2012 Ok here's how to fix this one. When entering the url you need to change the adminmodules part to AdminModules or adminstats to AdminStats, so the url looks something like this. index.php?controller=AdminModules&configure=editorial instead of index.php?controller=adminmodules&configure=editorial That seems to fix it for me. 2 1 Link to comment Share on other sites More sharing options...
Guest Posted December 23, 2012 Share Posted December 23, 2012 Well done, and thanks however when I looked at it, it was the other way around for me I had to change AdminModules to adminmodules Link to comment Share on other sites More sharing options...
Keishi Posted December 25, 2012 Share Posted December 25, 2012 Ok here's how to fix this one. When entering the url you need to change the adminmodules part to AdminModules or adminstats to AdminStats, so the url looks something like this. index.php?controller=AdminModules&configure=editorial instead of index.php?controller=adminmodules&configure=editorial That seems to fix it for me. Indeed same here , yet i don't know if we can consider this as bug or not ? if yes how can we report this ? Link to comment Share on other sites More sharing options...
sddqshahid Posted December 25, 2012 Share Posted December 25, 2012 changing case helped me as well Link to comment Share on other sites More sharing options...
rorosgraphics Posted January 30, 2013 Share Posted January 30, 2013 (edited) This fix did not work for me... case does not matter in my situation... i get the error not matter what i try to do in the backend interface... any suggestions? I am running 1.5.3 Edited January 30, 2013 by rorosgraphics (see edit history) Link to comment Share on other sites More sharing options...
dawb Posted January 30, 2013 Share Posted January 30, 2013 I'm still getting the same issue as rorosgraphics, on 1.5.2 Link to comment Share on other sites More sharing options...
eadi Posted June 18, 2013 Share Posted June 18, 2013 I tried this but it doesn't work for me. Using PS 1.5.4.1 . If you guys get it please reply. Thanks. Link to comment Share on other sites More sharing options...
hqamar Posted September 25, 2013 Share Posted September 25, 2013 Hi, Im on v1.5.5.0 and Capital --> small character works for me. However how do I make this modification permanent ? Thanks Link to comment Share on other sites More sharing options...
CharlieA Posted September 5, 2014 Share Posted September 5, 2014 Just encounter the same issue in PrestaShop version: 1.6.0.9. while trying to add a CMS page Found the error in this module /prestashop/controllers/admin/AdminCmsController.php This line had incorrect code: before: note the "&" vs "&" looks like a copy and paste issue href' => self::$currentIndex.'&add'.$this->table.'&id_cms_category='.(int)$this->id_cms_category.'&token='.$this->token after:href' => self::$currentIndex.'&add'.$this->table.'&id_cms_category='.(int)$this->id_cms_category.'&token='.$this->token Moderator - please correct for future downloads 14 Link to comment Share on other sites More sharing options...
jon-sh Posted September 10, 2014 Share Posted September 10, 2014 Just encounter the same issue in PrestaShop version: 1.6.0.9. while trying to add a CMS page Found the error in this module /prestashop/controllers/admin/AdminCmsController.php Good work CharlieA -- this fixed it for me as well. Please suggest fixes to Github Link to comment Share on other sites More sharing options...
sinoland Posted October 8, 2014 Share Posted October 8, 2014 CharlieA, Thank you for your solutions. This fixed another module as well. Link to comment Share on other sites More sharing options...
BBService Posted October 13, 2014 Share Posted October 13, 2014 Just encounter the same issue in PrestaShop version: 1.6.0.9. while trying to add a CMS page Found the error in this module /prestashop/controllers/admin/AdminCmsController.php This line had incorrect code: before: note the "&" vs "&" looks like a copy and paste issue href' => self::$currentIndex.'&add'.$this->table.'&id_cms_category='.(int)$this->id_cms_category.'&token='.$this->token after: href' => self::$currentIndex.'&add'.$this->table.'&id_cms_category='.(int)$this->id_cms_category.'&token='.$this->token Moderator - please correct for future downloads I tested of 1.6.0.9 it's perfect thank you Link to comment Share on other sites More sharing options...
Squashtoppertje Posted October 13, 2014 Share Posted October 13, 2014 Just encounter the same issue in PrestaShop version: 1.6.0.9. while trying to add a CMS page Found the error in this module /prestashop/controllers/admin/AdminCmsController.php This line had incorrect code: before: note the "&" vs "&" looks like a copy and paste issue href' => self::$currentIndex.'&add'.$this->table.'&id_cms_category='.(int)$this->id_cms_category.'&token='.$this->token after: href' => self::$currentIndex.'&add'.$this->table.'&id_cms_category='.(int)$this->id_cms_category.'&token='.$this->token Moderator - please correct for future downloads This did the trick for me! Isn't it bizarre however, that this problem exists over two years? Multiple versions and upgrades have been launched since, but they do not bother to solve this? WHile it is such a simple solution. This is one of those things which make me doubt Prestashop. They just don't take their clients seriously. It's a shame, but I won't do any projects with it anymore... 1 Link to comment Share on other sites More sharing options...
wanili Posted October 22, 2014 Share Posted October 22, 2014 Thanks, work now Link to comment Share on other sites More sharing options...
René Kuenen Posted October 22, 2014 Share Posted October 22, 2014 Just encounter the same issue in PrestaShop version: 1.6.0.9. while trying to add a CMS page Found the error in this module /prestashop/controllers/admin/AdminCmsController.php This line had incorrect code: before: note the "&" vs "&" looks like a copy and paste issue href' => self::$currentIndex.'&add'.$this->table.'&id_cms_category='.(int)$this->id_cms_category.'&token='.$this->token after: href' => self::$currentIndex.'&add'.$this->table.'&id_cms_category='.(int)$this->id_cms_category.'&token='.$this->token Moderator - please correct for future downloads Works for me too. Great Job Charlie Link to comment Share on other sites More sharing options...
René Kuenen Posted October 22, 2014 Share Posted October 22, 2014 I was a bit to quick.... Now it opens the page again. but when i want to save the new or modified cms page it goes back to the listing page without saving. When i choose 'save and view' i get a page with article not found. My version is 1.6.0.9 Has anyone a solution or encountred the same problem? Link to comment Share on other sites More sharing options...
vekia Posted October 22, 2014 Share Posted October 22, 2014 have you got possibility to see server error log file? Link to comment Share on other sites More sharing options...
René Kuenen Posted October 23, 2014 Share Posted October 23, 2014 have you got possibility to see server error log file? Hello Vekia, No errors in my log file. I don't understand. Several month ago i did some changes with no problem. Link to comment Share on other sites More sharing options...
Creative Allsorts Posted October 24, 2014 Share Posted October 24, 2014 Brilliant! Thanks for the solution that's been driving me mental Link to comment Share on other sites More sharing options...
René Kuenen Posted October 26, 2014 Share Posted October 26, 2014 I was a bit to quick.... Now it opens the page again. but when i want to save the new or modified cms page it goes back to the listing page without saving. When i choose 'save and view' i get a page with article not found. My version is 1.6.0.9 Has anyone a solution or encountred the same problem? When i set debug mode 'on' and i want to change something in CMS i'll get this message: [PrestaShopDatabaseException]Unknown column 'a.hide' in 'where clause' SELECT a.`id_ps_advice`, a.`selector`, a.`location`, al.`html`, a.`weight` FROM `ps_advice` a LEFT JOIN `ps_advice_lang` al ON al.`id_advice` = a.`id_advice` LEFT JOIN `ps_tab_advice` at ON at.`id_advice` = a.`id_advice` WHERE ( a.`validated` = 1 AND a.`hide` = 0 AND al.`id_lang` = 1 AND at.`id_tab` = 3 AND ((a.`start_day` = 0 AND a.`stop_day` = 0) OR (26 >= a.`start_day` AND 26 <= a.`stop_day`))) at line 635 in file classes/db/Db.php 629. WebserviceRequest::getInstance()->setError(500, ' '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97); 630. } 631. else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) 632. { 633. if ($sql) 634. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>'); 635. throw new PrestaShopDatabaseException($this->getMsgError()); 636. } 637. } 638. 639. /** DbCore->displayError - [line 325 - classes/db/Db.php] - [1 Arguments]319. if ($sql instanceof DbQuery)320. $sql = $sql->build(); 321. 322. $this->result = $this->_query($sql); 323. if (_PS_DEBUG_SQL_) 324. $this->displayError($sql); 325. return $this->result; 326. } 327. 328. /** 329. * Execute an INSERT query Argument [0]SELECT a.`id_ps_advice`, a.`selector`, a.`location`, al.`html`, a.`weight` FROM `ps_advice` a LEFT JOIN `ps_advice_lang` al ON al.`id_advice` = a.`id_advice` LEFT JOIN `ps_tab_advice` at ON at.`id_advice` = a.`id_advice` WHERE ( a.`validated` = 1 AND a.`hide` = 0 AND al.`id_lang` = 1 AND at.`id_tab` = 3 AND ((a.`start_day` = 0 AND a.`stop_day` = 0) OR (26 >= a.`start_day` AND 26 DbCore->query - [line 501 - classes/db/Db.php] - [1 Arguments] DbCore->executeS - [line 99 - modules/gamification/classes/Advice.php] - [1 Arguments] Advice::getValidatedByIdTab - [line 159 - modules/gamification/gamification.php] - [2 Arguments] Gamification->hookDisplayBackOfficeHeader - [line 507 - classes/Hook.php] - [1 Arguments] HookCore::exec - [line 2357 - classes/controller/AdminController.php] - [2 Arguments] AdminControllerCore->init - [line 57 - controllers/admin/AdminCmsContentController.php] AdminCmsContentControllerCore->__construct - [line 135 - classes/controller/Controller.php] - [2 Arguments] ControllerCore::getController - [line 366 - classes/Dispatcher.php] - [1 Arguments] DispatcherCore->dispatch - [line 54 - admin/index.php] Link to comment Share on other sites More sharing options...
Skullz0r Posted November 7, 2014 Share Posted November 7, 2014 Just encounter the same issue in PrestaShop version: 1.6.0.9. while trying to add a CMS page Found the error in this module /prestashop/controllers/admin/AdminCmsController.php This line had incorrect code: before: note the "&" vs "&" looks like a copy and paste issue href' => self::$currentIndex.'&add'.$this->table.'&id_cms_category='.(int)$this->id_cms_category.'&token='.$this->token after: href' => self::$currentIndex.'&add'.$this->table.'&id_cms_category='.(int)$this->id_cms_category.'&token='.$this->token Moderator - please correct for future downloads Thanks, works without any problems! 2 Link to comment Share on other sites More sharing options...
PhilCorleone Posted November 8, 2014 Share Posted November 8, 2014 Just encounter the same issue in PrestaShop version: 1.6.0.9. while trying to add a CMS page Found the error in this module /prestashop/controllers/admin/AdminCmsController.php This line had incorrect code: before: note the "&" vs "&" looks like a copy and paste issue href' => self::$currentIndex.'&add'.$this->table.'&id_cms_category='.(int)$this->id_cms_category.'&token='.$this->token after: href' => self::$currentIndex.'&add'.$this->table.'&id_cms_category='.(int)$this->id_cms_category.'&token='.$this->token Moderator - please correct for future downloads This did work as a charm! 1 Link to comment Share on other sites More sharing options...
René Kuenen Posted November 9, 2014 Share Posted November 9, 2014 When i set debug mode 'on' and i want to change something in CMS i'll get this message: [PrestaShopDatabaseException]Unknown column 'a.hide' in 'where clause' SELECT a.`id_ps_advice`, a.`selector`, a.`location`, al.`html`, a.`weight` FROM `ps_advice` a LEFT JOIN `ps_advice_lang` al ON al.`id_advice` = a.`id_advice` LEFT JOIN `ps_tab_advice` at ON at.`id_advice` = a.`id_advice` WHERE ( a.`validated` = 1 AND a.`hide` = 0 AND al.`id_lang` = 1 AND at.`id_tab` = 3 AND ((a.`start_day` = 0 AND a.`stop_day` = 0) OR (26 >= a.`start_day` AND 26 <= a.`stop_day`))) at line 635 in file classes/db/Db.php 629. WebserviceRequest::getInstance()->setError(500, ' '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97); 630. } 631. else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) 632. { 633. if ($sql) 634. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>'); 635. throw new PrestaShopDatabaseException($this->getMsgError()); 636. } 637. } 638. 639. /** DbCore->displayError - [line 325 - classes/db/Db.php] - [1 Arguments]319. if ($sql instanceof DbQuery)320. $sql = $sql->build(); 321. 322. $this->result = $this->_query($sql); 323. if (_PS_DEBUG_SQL_) 324. $this->displayError($sql); 325. return $this->result; 326. } 327. 328. /** 329. * Execute an INSERT query Argument [0]SELECT a.`id_ps_advice`, a.`selector`, a.`location`, al.`html`, a.`weight` FROM `ps_advice` a LEFT JOIN `ps_advice_lang` al ON al.`id_advice` = a.`id_advice` LEFT JOIN `ps_tab_advice` at ON at.`id_advice` = a.`id_advice` WHERE ( a.`validated` = 1 AND a.`hide` = 0 AND al.`id_lang` = 1 AND at.`id_tab` = 3 AND ((a.`start_day` = 0 AND a.`stop_day` = 0) OR (26 >= a.`start_day` AND 26 DbCore->query - [line 501 - classes/db/Db.php] - [1 Arguments] DbCore->executeS - [line 99 - modules/gamification/classes/Advice.php] - [1 Arguments] Advice::getValidatedByIdTab - [line 159 - modules/gamification/gamification.php] - [2 Arguments] Gamification->hookDisplayBackOfficeHeader - [line 507 - classes/Hook.php] - [1 Arguments] HookCore::exec - [line 2357 - classes/controller/AdminController.php] - [2 Arguments] AdminControllerCore->init - [line 57 - controllers/admin/AdminCmsContentController.php] AdminCmsContentControllerCore->__construct - [line 135 - classes/controller/Controller.php] - [2 Arguments] ControllerCore::getController - [line 366 - classes/Dispatcher.php] - [1 Arguments] DispatcherCore->dispatch - [line 54 - admin/index.php] For some strange reason i missed some columns in my database . Link to comment Share on other sites More sharing options...
ksv Posted November 10, 2014 Share Posted November 10, 2014 Just encounter the same issue in PrestaShop version: 1.6.0.9. while trying to add a CMS page Found the error in this module /prestashop/controllers/admin/AdminCmsController.php This line had incorrect code: before: note the "&" vs "&" looks like a copy and paste issue href' => self::$currentIndex.'&add'.$this->table.'&id_cms_category='.(int)$this->id_cms_category.'&token='.$this->token after: href' => self::$currentIndex.'&add'.$this->table.'&id_cms_category='.(int)$this->id_cms_category.'&token='.$this->token Moderator - please correct for future downloads Just encounter the same issue in PrestaShop version: 1.6.0.9. while trying to add a CMS page Found the error in this module /prestashop/controllers/admin/AdminCmsController.php This line had incorrect code: before: note the "&" vs "&" looks like a copy and paste issue href' => self::$currentIndex.'&add'.$this->table.'&id_cms_category='.(int)$this->id_cms_category.'&token='.$this->token after: href' => self::$currentIndex.'&add'.$this->table.'&id_cms_category='.(int)$this->id_cms_category.'&token='.$this->token Moderator - please correct for future downloads Thanks! It fixed for 1.6.0.9! Link to comment Share on other sites More sharing options...
Loonary Posted November 10, 2014 Share Posted November 10, 2014 Just encounter the same issue in PrestaShop version: 1.6.0.9. while trying to add a CMS page Found the error in this module /prestashop/controllers/admin/AdminCmsController.php This line had incorrect code: before: note the "&" vs "&" looks like a copy and paste issue href' => self::$currentIndex.'&add'.$this->table.'&id_cms_category='.(int)$this->id_cms_category.'&token='.$this->token after: href' => self::$currentIndex.'&add'.$this->table.'&id_cms_category='.(int)$this->id_cms_category.'&token='.$this->token Moderator - please correct for future downloads You Rock! Life saver is what ye are Link to comment Share on other sites More sharing options...
tom52 Posted November 23, 2014 Share Posted November 23, 2014 Thank you very much. Link to comment Share on other sites More sharing options...
misu3108 Posted November 25, 2014 Share Posted November 25, 2014 Just encounter the same issue in PrestaShop version: 1.6.0.9. while trying to add a CMS page Found the error in this module /prestashop/controllers/admin/AdminCmsController.php This line had incorrect code: before: note the "&" vs "&" looks like a copy and paste issue href' => self::$currentIndex.'&add'.$this->table.'&id_cms_category='.(int)$this->id_cms_category.'&token='.$this->token after: href' => self::$currentIndex.'&add'.$this->table.'&id_cms_category='.(int)$this->id_cms_category.'&token='.$this->token Moderator - please correct for future downloads I can confirm that your fix worked for me too. I'm using PS 1.6.0.9 Thanks. Link to comment Share on other sites More sharing options...
Antakarana Posted December 15, 2014 Share Posted December 15, 2014 (edited) Hi... I fixed the issue with CMS with this fix... However I realized that I also have the problem of the invalid token when trying to export customer's CSV file from the newsletter block module. When copy/paste the url from the "export" button I can see this: mysite.com/xxxxxx/index.php?controller=AdminModules&configure=blocknewsletter&exportSubscribers&token=xxxxxxxxx If I delete the red caracthers and copy paste it on the browser, then it generates the CSV. Is there any way to fix that to avoid manual deleting of amp; each time I have to export the file? thanks Edited December 15, 2014 by Antakarana (see edit history) Link to comment Share on other sites More sharing options...
WSH90 Posted December 19, 2014 Share Posted December 19, 2014 I tested of 1.6.0.9 it's perfect thank you Thanks, it fix the problem for me =) Link to comment Share on other sites More sharing options...
myselfidem Posted December 25, 2014 Share Posted December 25, 2014 @René Kuenen Maybe that can help you. I see Inside PS 1.6.0.9 .\controllers\admin : AdminCmsCategoriesController.php (on line 83) : $this->toolbar_btn['new']['href'] .= '&id_parent='.(int)Tools::getValue('id_cms_category'); AdminRequestSqlController.php (on line 96) : 'href' => self::$currentIndex.'&updaterequest_sql&token='.$this->token.'&id_request_sql='.(int)$id_request, I use PS 1.6.0.6 and many files needs to be changed from & to & Friendly Link to comment Share on other sites More sharing options...
Dino Matijasevic Posted February 26, 2015 Share Posted February 26, 2015 Just encounter the same issue in PrestaShop version: 1.6.0.9. while trying to add a CMS page Found the error in this module /prestashop/controllers/admin/AdminCmsController.php This line had incorrect code: before: note the "&" vs "&" looks like a copy and paste issue href' => self::$currentIndex.'&add'.$this->table.'&id_cms_category='.(int)$this->id_cms_category.'&token='.$this->token after: href' => self::$currentIndex.'&add'.$this->table.'&id_cms_category='.(int)$this->id_cms_category.'&token='.$this->token Moderator - please correct for future downloads Worked like a charm...thank you so much! Link to comment Share on other sites More sharing options...
cerovic Posted March 8, 2015 Share Posted March 8, 2015 Just encounter the same issue in PrestaShop version: 1.6.0.9. while trying to add a CMS page Found the error in this module /prestashop/controllers/admin/AdminCmsController.php This line had incorrect code: before: note the "&" vs "&" looks like a copy and paste issue href' => self::$currentIndex.'&add'.$this->table.'&id_cms_category='.(int)$this->id_cms_category.'&token='.$this->token after: href' => self::$currentIndex.'&add'.$this->table.'&id_cms_category='.(int)$this->id_cms_category.'&token='.$this->token Moderator - please correct for future downloadsAlso solved my problem with CMS new page in 1.6.0.9 Link to comment Share on other sites More sharing options...
suministrospasai Posted July 8, 2015 Share Posted July 8, 2015 For some strange reason i missed some columns in my database . Dear René, I´ve got same error. What columns you were missing? Thank you in advance Link to comment Share on other sites More sharing options...
bhawin91 Posted October 13, 2015 Share Posted October 13, 2015 streetstylestore/admin2014/index.php?controller=Adminapilinks&token=5621b3937c344b6d6408745719a88438 this ins the url of my newly created controller , but the problem is with with its access token it says the token is invalid here is my controller code <?php class AdminApilinksController extends AdminController { public function __construct() { parent::__construct(); } public function initContent() { parent::initContent(); echo "database"; die; $this->setTemplate(_PS_THEME_DIR_.'mypage.tpl'); } } i am using prestashop 1.5 any help please ? Link to comment Share on other sites More sharing options...
ralaper Posted November 7, 2015 Share Posted November 7, 2015 II also encountered this problem, try to solve it,Then I found the causes of this problem. If you encounter this problem, please complete the following steps to check: step1.Whether to use a standard method naming convention For example: your module name is mymod,but you admin tab class name is AdminMymodclassnameController, " Invalid Security Token" will be show. now,You only need change "AdminMymodclassnameController" to "AdminmymodclassnameController",Problems will be solved Link to comment Share on other sites More sharing options...
Generaal Posted December 17, 2015 Share Posted December 17, 2015 Hello forumreaders, I run PS V 1.6.1.1 and have the follow problem, only for these: /index.php?controller=AdminModules&token=76c2a3cdefca73.... When I click on the Modules --> Modules & Services in BO. Even if I change the Capitals.. I receive a blank page. Try to disable Non Prestashop modules and so on, nothing change. Someone a solution for this problem? Best Regards, Generaal Link to comment Share on other sites More sharing options...
Recommended Posts