colorlife Posted October 24, 2016 Share Posted October 24, 2016 Hello i try to put on local my website (PS 1.6.1.4) but i have this error and can't fix. Any idea tu fix the issue? Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Passed variable is not an array or object, using empty array instead' in C:\xampp\htdocs\mysite\override\classes\controller\CustomFrontController.php:237 Stack trace: #0 C:\xampp\htdocs\mysite\override\classes\controller\CustomFrontController.php(237): ArrayIterator->__construct(false) #1 C:\xampp\htdocs\mysite\tools\smarty\sysplugins\smarty_internal_templatebase.php(157) : eval()'d code(182): CustomFrontController::gimmeCatMain(false) #2 C:\xampp\htdocs\mysite\tools\smarty\sysplugins\smarty_internal_templatebase.php(188): content_580e378032bdb5_33305190(Object(Smarty_Custom_Template)) #3 C:\xampp\htdocs\mysite\classes\SmartyCustom.php(317): Smarty_Internal_TemplateBase->fetch(NULL, NULL, NULL, NULL, false, false, true) #4 C:\xampp\htdocs\mysite\tools\smarty\sysplugins\smarty_internal_template.php(303): Smarty_Custom_Template->fetch(NULL, NULL, NULL, NULL, false, false, true) #5 C:\xampp\htdocs\mysite\tools\smarty\sysplugins\smarty_internal_te in C:\xampp\htdocs\mysite\override\classes\controller\CustomFrontController.php on line 237 Link to comment Share on other sites More sharing options...
rocky Posted October 25, 2016 Share Posted October 25, 2016 It's not part of PrestaShop's default code, so it's hard to help. From the error message, it seems false was passed into the ArrayIterator constructor, which caused a fatal error, since it's not a valid array. Link to comment Share on other sites More sharing options...
musicmaster Posted October 25, 2016 Share Posted October 25, 2016 The error is in C:\xampp\htdocs\mysite\override\classes\controller\CustomFrontController.php That is: in the override directory. You might have a look into this file to see which module it is connected to. You can try renaming this file. You can also use Prestools to disable all overrides (under Tools&Stats->Shop Rescue). Once in the backoffice you can disable the module and switch overrides on again (advanced settings->Performance). For a more structural solution you should contact the supplier of the module. 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