cyna804 Posted March 25, 2016 Share Posted March 25, 2016 Witam, Mam stronę dwu języczną de i pl na de jest bez błędne a po przejściu n /pl to wywala błąd 500 po włączeniu debug mam [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(); LinkCore->getProductLink - [line 78 - cache/smarty/compile/89/b7/07/89b7073d23d3e5ee627839771db04aff95e319e0.file.productcomments_reviews.tpl.cache.php] - [1 Arguments] content_56f4412c938f31_35666041 - [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 143 - cache/smarty/compile/ea/78/f9/ea78f97511972802c3a047ee5176103c5f92dd38.file.wtproductfilter_accordion.tpl.cache.php] - [2 Arguments] SmartyLazyRegister->smartyHook - [line 143 - cache/smarty/compile/ea/78/f9/ea78f97511972802c3a047ee5176103c5f92dd38.file.wtproductfilter_accordion.tpl.cache.php] - [2 Arguments] content_56f4412d21ee15_08440579 - [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 38 - cache/smarty/compile/60/47/08/604708651e43d33858097537d2fb1cc55c2bd1d9.file.wtproductfilter_home.tpl.cache.php] - [7 Arguments] content_56f4412d12be79_61219067 - [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 551 - 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] po wyłączeniu modułu wtproductfilter nie ma błędu, w tym module są nowo dodane artykuły więc wnioskuję że o nie chodzi ale z nimi jest wszystko dobrze normalnie były dodane Link to comment Share on other sites More sharing options...
Question
cyna804
Witam,
Mam stronę dwu języczną de i pl na de jest bez błędne a po przejściu n /pl to wywala błąd 500 po włączeniu debug mam
Invalid product vars
at line 106 in file classes/Link.php
po wyłączeniu modułu wtproductfilter nie ma błędu, w tym module są nowo dodane artykuły więc wnioskuję że o nie chodzi ale z nimi jest wszystko dobrze normalnie były dodane
Link to comment
Share on other sites
0 answers to this question
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