Soliloquy Posted January 20, 2016 Share Posted January 20, 2016 (edited) I'm new to Prestashop and installed a (paid) template last night, but am getting a 500 server error "Oops, something went wrong" when I try to view the front office. I was thinking this might have to do with the list of modules that needed installing/disabling/changing that came up right after I installed the template; I definitely clicked Save to the list of modules that needed installing, but I'm not sure if that also agreed to the list of modules that needed disabling, and I don't know how to get back to that list. There's nothing in my server error logs either (probably because it did display an HTML page with the error). What should I try? Edit: Ok, I found the thread on 500 server errors and turned on the debugging. Now the error message reads: [PrestaShopException]Invalid product varsat line 106 in file classes/Link.php 101. if (is_array($product) && isset($product['id_product'])) {102. $product = new Product($product['id_product'], false, $id_lang, $id_shop);103. } elseif ((int)$product) {104. $product = new Product((int)$product, false, $id_lang, $id_shop);105. } else {106. throw new PrestaShopException('Invalid product vars');107. }108. }109. 110. // Set available keywords111. $params = array(); Edited January 20, 2016 by Soliloquy (see edit history) 1 Link to comment Share on other sites More sharing options...
tdr170 Posted January 21, 2016 Share Posted January 21, 2016 Revert to the Default theme, then when you re-enable the new theme the module options will show again. Are you sure the Template is compatible with your Presta version, What Theme did you Purchase. This looks as though it may be an issue with the new product.tpl and product-list.tpl files. 1 Link to comment Share on other sites More sharing options...
Soliloquy Posted January 21, 2016 Author Share Posted January 21, 2016 Thanks for your response, tdr170. The theme is "Water Kids & Children" from the add-ons store ( http://addons.prestashop.com/en/children-babies-themes/20986-water-kids-children.html ), and it lists compatibility with 1.6.1.4, the version I'm running. Reverting to the default template showed no errors. Going back to Water Kids and Children still has errors, despite making sure the modules were enabled or disabled properly. I didn't see anything in there about product.tpl etc. LinkCore->getProductLink - [line 78 - cache/smarty/compile/8b/af/f6/8baff6ecd1e166f80eeea335471668c12a55ae7d.file.productcomments_reviews.tpl.cache.php] - [1 Arguments] content_569f4227235249_67446037 - [line 188 - tools/smarty/sysplugins/smarty_internal_templatebase.php] - [1 Arguments] Smarty_Internal_TemplateBase->fetch - [line 308 - classes/SmartyCustom.php] - [7 Arguments] Smarty_Custom_Template->fetch - [line 2309 - classes/module/Module.php] ModuleCore->display - [line 772 - modules/productcomments/productcomments.php] - [3 Arguments] ProductComments->hookDisplayProductListReviews - [line 587 - classes/Hook.php] - [1 Arguments] HookCore::coreCallHook - [line 542 - classes/Hook.php] - [3 Arguments] HookCore::exec - [line 205 - config/smarty.config.inc.php] - [3 Arguments] smartyHook - [line - ] - [2 Arguments] call_user_func_array - [line 268 - config/smarty.config.inc.php] - [2 Arguments] SmartyLazyRegister->__call - [line 171 - cache/smarty/compile/5a/3d/6a/5a3d6ab7d9f1906fb3b1879ad7a48cfc42453d47.file.wtproductfilter_tab.tpl.cache.php] - [2 Arguments] SmartyLazyRegister->smartyHook - [line 171 - cache/smarty/compile/5a/3d/6a/5a3d6ab7d9f1906fb3b1879ad7a48cfc42453d47.file.wtproductfilter_tab.tpl.cache.php] - [2 Arguments] content_569f4226f3c0f8_23741046 - [line 188 - tools/smarty/sysplugins/smarty_internal_templatebase.php] - [1 Arguments] Smarty_Internal_TemplateBase->fetch - [line 308 - classes/SmartyCustom.php] - [7 Arguments] Smarty_Custom_Template->fetch - [line 303 - tools/smarty/sysplugins/smarty_internal_template.php] - [7 Arguments] Smarty_Internal_Template->getSubTemplate - [line 45 - cache/smarty/compile/0f/e2/93/0fe293ecf6d719db68081a54b8a5c1c49e64eb26.file.wtproductfilter_home.tpl.cache.php] - [7 Arguments] content_569f4226ccb264_68259054 - [line 188 - tools/smarty/sysplugins/smarty_internal_templatebase.php] - [1 Arguments] Smarty_Internal_TemplateBase->fetch - [line 308 - classes/SmartyCustom.php] - [7 Arguments] Smarty_Custom_Template->fetch - [line 2309 - classes/module/Module.php] ModuleCore->display - [line 550 - modules/wtproductfilter/wtproductfilter.php] - [3 Arguments] WtProductFilter->hookDisplayHome - [line 587 - classes/Hook.php] - [1 Arguments] HookCore::coreCallHook - [line 542 - classes/Hook.php] - [3 Arguments] HookCore::exec - [line 40 - controllers/front/IndexController.php] - [1 Arguments] IndexControllerCore->initContent - [line 189 - classes/controller/Controller.php] ControllerCore->run - [line 367 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 28 - index.php] Link to comment Share on other sites More sharing options...
tdr170 Posted January 21, 2016 Share Posted January 21, 2016 Well at this point I would say contact the developer from the Template page in the addons store, it says they offer Free Install & Support. 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