anonymous_itop Posted August 26, 2014 Share Posted August 26, 2014 (edited) I have error log with smarty, undefined index at line 157,69,70,71,72,109,110 in file smarty_internal_templatebase.php. And site can not display pattern same CSS error. How can i fix it ? Thanks. Notice: Undefined index: grid_size_lg in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 69 Notice: Undefined index: grid_size_md in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 70 Notice: Undefined index: grid_size_sm in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 71 Notice: Undefined index: grid_size_ms in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 72 Notice: Undefined index: ajax_popup in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 109 Notice: Undefined index: productlist_view in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 110 Edited August 26, 2014 by anonymous_itop (see edit history) Link to comment Share on other sites More sharing options...
fsnsem Posted August 29, 2014 Share Posted August 29, 2014 I have error log with smarty, undefined index at line 157,69,70,71,72,109,110 in file smarty_internal_templatebase.php. And site can not display pattern same CSS error. How can i fix it ? Thanks. Notice: Undefined index: grid_size_lg in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 69 Notice: Undefined index: grid_size_md in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 70 Notice: Undefined index: grid_size_sm in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 71 Notice: Undefined index: grid_size_ms in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 72 Notice: Undefined index: ajax_popup in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 109 Notice: Undefined index: productlist_view in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 110 У меня то же самое, что с этим делать? Link to comment Share on other sites More sharing options...
vekia Posted August 29, 2014 Share Posted August 29, 2014 what ps version you use and what prestashop template? 2 Link to comment Share on other sites More sharing options...
fsnsem Posted August 29, 2014 Share Posted August 29, 2014 (edited) what ps version you use and what prestashop template?Tempatle default .Version 1.6.0.9 Edited August 29, 2014 by fsnsem (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted August 30, 2014 Share Posted August 30, 2014 strange, this is first time when i see this error. it started to appear without any reason? or you just changed something and it started to appear? Link to comment Share on other sites More sharing options...
kasutajanimi Posted September 14, 2014 Share Posted September 14, 2014 (edited) My site also start acting strange my isp upgraded server php and mysq (PHP version: 5.4.32,MySQL version: 5.5.37-cll,Server software version: Apache/2.2.29 (Unix) mod_ssl/2.2.29 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4, prestashop 1.6.0.9) after that I decided to di fresh install, but strange error on site stays public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 102 public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 108 public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 132 public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 196 some of them in BO most in FO. any idea? Edited September 14, 2014 by kasutajanimi (see edit history) Link to comment Share on other sites More sharing options...
imiedesu Posted September 20, 2014 Share Posted September 20, 2014 i also encounter the same problem when i try to upgrade my ps version 1.6.0.6 to 1.6.0.9 current solution that i get currently, i just replace the new version smarty with the oldest version from 1.6.0.6. for now, it solve my problem. 1 Link to comment Share on other sites More sharing options...
Pedro Lima Posted October 11, 2014 Share Posted October 11, 2014 New to Prestashop, never had used it although I develop websites for more than 10 years. I always prefered Joomla w/ Virtuemart or WordPress w/ WooCommerce. Since I have now a partner who has a ecommerce website for some time now and he is using Prestashop, I will keep it like that. So, after this short introduction, I must say that I had never so many problems and errors before with any other software as I am having with Prestashop... Maybe bad luck, maybe lack of knowledge, maybe a lot of things all together, but I don't consider myself a noob at this and I solved all problems I faced so far. BUT... (there is always a "but"), this problem I couldn't solve even replacing smarty from that specific version 1.6.0.6 As far as I could find on my short Google searches, it seems to be a recent problem yet with no solution. This happens only in "Order" screen and I haven't even tested if this have any effect whatsoever while ordering... oh man, I am so pissed with Prestashop right now and I am not even close to finish! Link to comment Share on other sites More sharing options...
vekia Posted October 13, 2014 Share Posted October 13, 2014 what error you've got EXACTLY ? Link to comment Share on other sites More sharing options...
Pedro Lima Posted October 13, 2014 Share Posted October 13, 2014 (edited) When my shopping cart is empty, it appears this: Your shopping cart contains: Notice: Undefined index: productNumber in /home/lenteseo/dev/cache/smarty/compile/ff/f1/3a/fff13a1de5db569bd655a045cd677e8709b31a0c.file.shopping-cart.tpl.php on line 134 Notice: Trying to get property of non-object in /home/lenteseo/dev/cache/smarty/compile/ff/f1/3a/fff13a1de5db569bd655a045cd677e8709b31a0c.file.shopping-cart.tpl.php on line 134 Notice: Undefined index: productNumber in /home/lenteseo/dev/cache/smarty/compile/ff/f1/3a/fff13a1de5db569bd655a045cd677e8709b31a0c.file.shopping-cart.tpl.php on line 135 Notice: Trying to get property of non-object in /home/lenteseo/dev/cache/smarty/compile/ff/f1/3a/fff13a1de5db569bd655a045cd677e8709b31a0c.file.shopping-cart.tpl.php on line 135 products And yes, I already cleaned cache from admin panel and also manually from FTP, nothing works and error is always the same! Edited October 13, 2014 by plima (see edit history) Link to comment Share on other sites More sharing options...
afshop Posted October 21, 2014 Share Posted October 21, 2014 My site also start acting strange my isp upgraded server php and mysq (PHP version: 5.4.32,MySQL version: 5.5.37-cll,Server software version: Apache/2.2.29 (Unix) mod_ssl/2.2.29 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4, prestashop 1.6.0.9) after that I decided to di fresh install, but strange error on site stays public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 102 public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 108 public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 132 public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 196 some of them in BO most in FO. any idea? Hi, I have me too this error when try to export orders with standard button with the new PS 1.6.9. With the previous version the function export worked correcly. Did you fix it? Thanks Angela Link to comment Share on other sites More sharing options...
WebMadeFun Posted October 21, 2014 Share Posted October 21, 2014 Same issue here, with a 1.6.0.9 shop upgraded from 1.6.0.6 I replaced smarty as imiedesu suggested and now it works. 1 Link to comment Share on other sites More sharing options...
afshop Posted October 21, 2014 Share Posted October 21, 2014 Same issue here, with a 1.6.0.9 shop upgraded from 1.6.0.6 I replaced smarty as imiedesu suggested and now it works. Hi, Please, what are the dir of files to replace? thanks Link to comment Share on other sites More sharing options...
WebMadeFun Posted October 21, 2014 Share Posted October 21, 2014 Hi, Please, what are the dir of files to replace? thanks On the main root find the "Tools" dir, then the "Smarty" dir and then the "sysplugins" dir. I replaced everything there with the same files from the 1.6.0.6 version and problem solved. Exact path: .../tools/smarty/sysplugins 1 Link to comment Share on other sites More sharing options...
afshop Posted October 21, 2014 Share Posted October 21, 2014 On the main root find the "Tools" dir, then the "Smarty" dir and then the "sysplugins" dir. I replaced everything there with the same files from the 1.6.0.6 version and problem solved. Exact path: .../tools/smarty/sysplugins Many thanks, but unfortunately I have again error: This is now the error when i try to export orders : 21-Oct-2014 18:06:16 Europe/Rome] PHP Fatal error: Call to a member function getAdminLink() on a non-object in mysite/cache/smarty/compile/06/ba/3b/06ba3bb0b0f4141c8ba4fe682fcb4593366083ac.file._print_pdf_icon.tpl.php on line 34 any idea? thanks angela Link to comment Share on other sites More sharing options...
WebMadeFun Posted October 21, 2014 Share Posted October 21, 2014 Many thanks, but unfortunately I have again error: This is now the error when i try to export orders : 21-Oct-2014 18:06:16 Europe/Rome] PHP Fatal error: Call to a member function getAdminLink() on a non-object in mysite/cache/smarty/compile/06/ba/3b/06ba3bb0b0f4141c8ba4fe682fcb4593366083ac.file._print_pdf_icon.tpl.php on line 34 any idea? thanks angela Go to your public_html, open the "cache" directory and then the "smarty" directory. Then rename the "compile" directory to "compile_' and try again. Link to comment Share on other sites More sharing options...
afshop Posted October 21, 2014 Share Posted October 21, 2014 Go to your public_html, open the "cache" directory and then the "smarty" directory. Then rename the "compile" directory to "compile_' and try again. Always the same error Link to comment Share on other sites More sharing options...
Pedro Lima Posted October 27, 2014 Share Posted October 27, 2014 (edited) I had done all these things and I keep ALWAYS receiving the same errors, again and again... Your shopping cart contains:Notice: Undefined index: productNumber in /home/host/dev/cache/smarty/compile/ff/f1/3a/fff13a1de5db569bd655a045cd677e8709b31a0c.file.shopping-cart.tpl.php on line 134Notice: Trying to get property of non-object in /home/host/dev/cache/smarty/compile/ff/f1/3a/fff13a1de5db569bd655a045cd677e8709b31a0c.file.shopping-cart.tpl.php on line 134Notice: Undefined index: productNumber in /home/host/dev/cache/smarty/compile/ff/f1/3a/fff13a1de5db569bd655a045cd677e8709b31a0c.file.shopping-cart.tpl.php on line 135Notice: Trying to get property of non-object in /home/host/dev/cache/smarty/compile/ff/f1/3a/fff13a1de5db569bd655a045cd677e8709b31a0c.file.shopping-cart.tpl.php on line 135products EDIT:This happens only when my shopping cart is empty... Edited October 27, 2014 by plima (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted October 27, 2014 Share Posted October 27, 2014 @plima (make sure to post new topics for your questions) do you have actual issue , i.e. cart problems? IF NOT: ------ turn off prestashop error reporting..these are just notices... having prestashop display errors/noices etc. turned on can lead to unexpected problems. 1 Link to comment Share on other sites More sharing options...
Pedro Lima Posted October 27, 2014 Share Posted October 27, 2014 (edited) @plima (make sure to post new topics for your questions) do you have actual issue , i.e. cart problems? IF NOT: ------ turn off prestashop error reporting..these are just notices... having prestashop display errors/noices etc. turned on can lead to unexpected problems. Oh I see! Since I'm using Prestashop 1.6 I went to "config/defines.inc.php" and saw this: define('_PS_MODE_DEV_', true); Then I saw this bellow: if (_PS_MODE_DEV_){ @ini_set('display_errors', 'on'); @error_reporting(E_ALL | E_STRICT); define('_PS_DEBUG_SQL_', true); }else{ @ini_set('display_errors', 'off'); define('_PS_DEBUG_SQL_', false); } And everything makes sense to me now. Thank you for your help. Edited October 27, 2014 by plima (see edit history) 3 Link to comment Share on other sites More sharing options...
AdityaB Posted February 9, 2015 Share Posted February 9, 2015 Hello, I'm getting similar errors as in this post. Notice on line 64 in file /home/<homedir>/public_html/<prestadir>/cache/smarty/compile/41/a8/b0/41a8b0b9fa92fc88d107c355d1994bc74eb5c887.file.content.tpl.php [8] Undefined index: nbErrorsNotice on line 64 in file /home/<homedir>/public_html/<prestadir>/cache/smarty/compile/41/a8/b0/41a8b0b9fa92fc88d107c355d1994bc74eb5c887.file.content.tpl.php[8] Trying to get property of non-object PS 1.6.0.9 No major changes. Debug mode shows below error when I go to back office sign in page. I have cleared cache, disabled all performance options, cleared smarty cache manually still no luck. Also copied all contents of ..../tools/smarty/ from a backup 1.6.0.9 fresh installation, still same error. Please help as my production server is hit Link to comment Share on other sites More sharing options...
seowebmaster Posted April 1, 2015 Share Posted April 1, 2015 (edited) I got a similar problem after upgrading to 1.6.0.14 (from 1.6.0.6). It happens when I access any product editor page in BO. PHP Fatal error: Call to undefined method Product::resolveBoMinQty() in ~/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 714 While in inspect element I get: ReferenceError: Can't find variable: $ I tried to follow your advice to copy the /tools/smarty/sysplugins/ content of the previous version, but the ReferenceError remains and in error_log I get: PHP Fatal error: Call to undefined method Product::resolveBoMinQty() in ~/public_html/cache/smarty/compile/94/e7/cf/94e7cf9f45c8beb6b12f883571fc251a495ec901.file.form.tpl.php on line 714 Did anybody of you manage to solve this issue? Thanks Edited April 1, 2015 by seowebmaster (see edit history) Link to comment Share on other sites More sharing options...
dtwfung Posted April 14, 2015 Share Posted April 14, 2015 I am using 1.6.0.14 and standard theme, I got the same error when showing the product's reference number. tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code I have tried disable cache, rename smarty/compile folder ... still get the same error. But this is not fatal... For other parts, it seems normal ! Thanks in advance. Link to comment Share on other sites More sharing options...
xabikip Posted April 14, 2015 Share Posted April 14, 2015 I have this error: PHP Notice: Undefined index: customization_quantity in /var/www/prestashop/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 60, referer: http://multidenda.gara.net/prestashop/es/module/bankwire/payment And this is the line 157 in smarty_internal_templatebase.php: eval("?>" . $code); IIn my case I solved this error when closing the php tag ?> in ParentOrderController.php. Link to comment Share on other sites More sharing options...
dtwfung Posted April 14, 2015 Share Posted April 14, 2015 I have this error: PHP Notice: Undefined index: customization_quantity in /var/www/prestashop/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 60, referer: http://multidenda.gara.net/prestashop/es/module/bankwire/payment And this is the line 157 in smarty_internal_templatebase.php: eval("?>" . $code); IIn my case I solved this error when closing the php tag ?> in ParentOrderController.php. Thanks. In my case, cache/smarty/compile/c8/5e/3d/c85e3d722f1d7672a0cd389f3851215b87d1b79f.file.product-list.tpl.cache.php on line 199 I try to find it in product-list.tpl but the file do not require ?>... Any tips ? Link to comment Share on other sites More sharing options...
dtwfung Posted April 16, 2015 Share Posted April 16, 2015 Thanks. In my case, cache/smarty/compile/c8/5e/3d/c85e3d722f1d7672a0cd389f3851215b87d1b79f.file.product-list.tpl.cache.php on line 199 I try to find it in product-list.tpl but the file do not require ?>... Any tips ? Finally, I fixed it but the solution does not relate to "?>". Summary: I wanted to display product.reference to product, bestselling, popular block. But, product.reference has not been retrieved from SQL. Finally, I added them back (with this thread https://www.prestashop.com/forums/topic/437169-product-reference-in-product-list-prestashop-16-again/?do=findComment&comment=2031335). Error "eval("?>" . $code);" no longer exist. Link to comment Share on other sites More sharing options...
mauroagr Posted April 30, 2015 Share Posted April 30, 2015 Hi, To solve the Eval error, 1. try put the cache in system files, not mysql (clear cache) 2. if not solve, use system files cache, and use php 5.3 I get this erros in php 5.4, with modules that using clearcache function and when enable the mysql in cache. Thanks Mauro Link to comment Share on other sites More sharing options...
nicubarbu Posted June 6, 2015 Share Posted June 6, 2015 Error eval()'d is not generated by standard files Prestashop, but by a nonstandard module - try to disable one by one active modules that are not signed by PrestaShop. One of the modules not properly used the php tags <? ?> After identifying the module that generates the problem, check in yours code the tags PHP (<?php and ?>) Link to comment Share on other sites More sharing options...
prestashopanil Posted August 7, 2015 Share Posted August 7, 2015 Hi to All, When i am connecting to payu india i am geting this error how to solve this i am using prestashop 1.6.0.9+ Notice: Undefined index: is_article in /home/burj/public_html/include/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 58Notice: Trying to get property of non-object in /home/burj/public_html/include/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 58 Thanks Link to comment Share on other sites More sharing options...
RuwanCi Posted August 25, 2015 Share Posted August 25, 2015 Notice on line 585 in file /home/eshoppin/public_html/controllers/admin/AdminModulesController.php[8] Undefined index: newfile this is my error when i upload a module Link to comment Share on other sites More sharing options...
Akey Posted September 17, 2015 Share Posted September 17, 2015 Hello, I had the same problem, I fix this bug with that http://www.smarty.net/docsv2/en/tips.tpl I put |default:' ' behind every undefined variables good work, Arnaud Link to comment Share on other sites More sharing options...
CJH Posted December 5, 2015 Share Posted December 5, 2015 I have the same sort of error, just started. No updated made, no modules changed from when it worked without problem. I cleared the cache and cleaned the database, but no change. It happens when I go to an order page, then a list of 11 errors appears, all in the form of: Notice on line 42 in file /homepages/36/ [deleted part of address relating to htdocs in case this is a security issue] /cache/smarty/compile/30/eb/86/30eb86fc5c265ec97be9a114bc59fcb0126bac91.file.adminOrder.tpl.php[8] Undefined index: ipAddress In common is adminOrder.tpl.php but the final part (here as ipAddress) changes, like 'latitude' and 'timezone' with different line numbers. Some orders work fine, others have this behaviour but appear to otherwise work. I do not know enough of how to start to fix this; I do not understand much of coding. It never happened before with a working site. What can I try to fix this? Link to comment Share on other sites More sharing options...
saintofinternet Posted December 22, 2015 Share Posted December 22, 2015 i got a similar error on the final invoice.... which got generated after payment was made. attaching screenshot. can you please help with the same.... Link to comment Share on other sites More sharing options...
tomperys Posted January 8, 2016 Share Posted January 8, 2016 Hi, I have same error when I try to open new order in my BO (PS 1.6.0.9.). Strange is the order is without any product and without status. The payment arrived to paypal, but the order in BO doesnt have even "awaiting payment" status or any status at all...... It will happend randomly. Some order is OK, some ends in this weird condition with no products inside the order. Notice on row 120 in file /web/shop/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code [8] Trying to get property of non-object Notice on row 361 in file /web/shop/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code [8] Trying to get property of non-object Link to comment Share on other sites More sharing options...
tomperys Posted January 9, 2016 Share Posted January 9, 2016 Hi, I have same error when I try to open new order in my BO (PS 1.6.0.9.). Strange is the order is without any product and without status. The payment arrived to paypal, but the order in BO doesnt have even "awaiting payment" status or any status at all...... It will happend randomly. Some order is OK, some ends in this weird condition with no products inside the order. Notice on row 120 in file /web/shop/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code [8] Trying to get property of non-object Notice on row 361 in file /web/shop/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code [8] Trying to get property of non-object One observation - customer told me it was after he paid on paypal. He should return to my store but he saw only white page with some errors... strange is there is nothing in error log of the actual hsoting service on that time. Link to comment Share on other sites More sharing options...
nimitray Posted January 21, 2016 Share Posted January 21, 2016 open back office go prefrence -order -select -order-step Link to comment Share on other sites More sharing options...
tomperys Posted January 21, 2016 Share Posted January 21, 2016 open back office go prefrence -order -select -order-step You mean instead of order on one page select the standard (5 steps) order process? How that can possibly help? Link to comment Share on other sites More sharing options...
Rosha Posted February 10, 2016 Share Posted February 10, 2016 (edited) I've installed prestashop 1.6.1.4 and in error_log file on host, i'm getting these errors: PHP Notice: Undefined index: homeSize in /home/user/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 75 PHP Notice: Trying to get property of non-object in /home/user/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 75 how can I fix this? Edited February 10, 2016 by Rosha (see edit history) Link to comment Share on other sites More sharing options...
123Kirill312 Posted February 18, 2016 Share Posted February 18, 2016 Hi! I had similar problem with images without name (i have a lot of them on the product page). The problem was solved when I turn off Mod dev. Link to comment Share on other sites More sharing options...
eklipsa Posted March 17, 2016 Share Posted March 17, 2016 (edited) Hi, I have similar problem with my e-commerce Notice: Trying to get property of non-object in /home/salonsho/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 124 Notice: Undefined index: PTS_SKIN_DEFAULT in /home/salonsho/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 129 Notice: Trying to get property of non-object in /home/salonsho/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 129 Notice: Undefined index: PTS_LANG_RTL in /home/salonsho/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 136 When access from the mobile device... Prestashop Version 1.6.0.13 php 5.3.29 I guess that is caused with the database....Can you tell me in which tables in the database are stored information that can be associated with this error? Please ASAP help! Edited March 17, 2016 by eklipsa (see edit history) Link to comment Share on other sites More sharing options...
girl_dev Posted September 1, 2016 Share Posted September 1, 2016 Hello,I use prestashop 1.61.2 and I use multishop optionI duplicate the theme to customize it for each shopbut when I enable the duplicated shop I have this error in the front office.I was have 500 errors but when I enable define('_PS_MODE_DEV_', true); I got this errorI am using a prenium theme Fatal error: Class 'OvicLayoutControl' not found in tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 62 Any idea please Link to comment Share on other sites More sharing options...
rocky Posted September 2, 2016 Share Posted September 2, 2016 PrestaShop doesn't have an OvicLayoutControl class, so it must be a third-party module causing the problem. Search all your third-party modules for that class name. 1 Link to comment Share on other sites More sharing options...
girl_dev Posted September 2, 2016 Share Posted September 2, 2016 I have disabled all plugins and I also have tha same problem so I enable them one by one and I got this error: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 130968 bytes) in/srv/data/web/vhosts/www.nevadalove.paris/htdocs/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 188 on line 188: I have this : $_template->properties['unifunc']($_template); Link to comment Share on other sites More sharing options...
rocky Posted September 2, 2016 Share Posted September 2, 2016 It seems 128M isn't enough memory for the theme you have installed. Try increasing the memory limit in your php.ini file. 1 Link to comment Share on other sites More sharing options...
girl_dev Posted September 4, 2016 Share Posted September 4, 2016 thanks for all your suggestion. It was impossible with the host to increase the memory limit in your php.ini file. And it seems the problem is with the theme I use so I change it and it works fine now 1 Link to comment Share on other sites More sharing options...
factorypolaris Posted October 20, 2016 Share Posted October 20, 2016 I had this issue after migrating to a new server. I moved to a dedicated server with twice the horsepower and the public facing side of the site was running 20 second load times, and super high CGI CPU. Running on IIS, you need to update all the file/folder permissions. Ensure your IIS user has read, write and modify permission. The modify was the ticket as PS was not able to delete certain file. Link to comment Share on other sites More sharing options...
Codify Solutions Posted October 28, 2016 Share Posted October 28, 2016 Hi, I think you have to check following : 1] check your config/defines.inc.php, define('_PS_MODE_DEV_', false); if above is true. 2] If you can login into admin and clear your cache. Hope this will help you. 1 Link to comment Share on other sites More sharing options...
www.madridwebdesign.es Posted December 7, 2016 Share Posted December 7, 2016 Codify Solutions, great! i solve my problem with your solution. Link to comment Share on other sites More sharing options...
jetx Posted March 5, 2017 Share Posted March 5, 2017 My site also start acting strange my isp upgraded server php and mysq (PHP version: 5.4.32,MySQL version: 5.5.37-cll,Server software version: Apache/2.2.29 (Unix) mod_ssl/2.2.29 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4, prestashop 1.6.0.9) after that I decided to di fresh install, but strange error on site stays public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 102 public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 108 public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 132 public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 196 some of them in BO most in FO. any idea? ok, a really old post. I just received a similar error after migrating to php7, centos 7. So a quick compare of php ini indicated the new server memory limit was too low. Increased from the 32M set during server build to 200M and the errors went away. Link to comment Share on other sites More sharing options...
Endi555 Posted April 29, 2017 Share Posted April 29, 2017 i have problem on PS 1.7 maybe some one can help me? ContextErrorException in 6ce08f6ef210ea2912f5994301aa4e1a1abcda68.file.product.tpl.php line 554:Notice: Undefined index: categoryin 6ce08f6ef210ea2912f5994301aa4e1a1abcda68.file.product.tpl.php line 554 at ErrorHandler->handleError('8', 'Undefined index: category', '/home/mole24/domains/testas.mobile24.lt/public_html/app/cache/dev/smarty/compile/layouts_layout_right_column_tpl/6c/e0/8f/6ce08f6ef210ea2912f5994301aa4e1a1abcda68.file.product.tpl.php', '554', array('_smarty_tpl' => object(Smarty_Dev_Template), '_tpl_stack' => array(), '_from' => array())) in 6ce08f6ef210ea2912f5994301aa4e1a1abcda68.file.product.tpl.php line 554 at content_5904cc51d0d498_52052731(object(Smarty_Dev_Template)) in smarty_internal_templatebase.php line 188 at Smarty_Internal_TemplateBase->fetch('catalog/product.tpl', null, 'layouts/layout-right-column.tpl', object(SmartyDev), false, true, false) in SmartyDev.php line 41 at SmartyDev->fetch('catalog/product.tpl', null, 'layouts/layout-right-column.tpl') in FrontController.php line 660 at FrontControllerCore->smartyOutputContent('catalog/product.tpl') in FrontController.php line 644 at FrontControllerCore->display() in Controller.php line 225 at ControllerCore->run() in Dispatcher.php line 369 at DispatcherCore->dispatch() in index.php line 28 Link to comment Share on other sites More sharing options...
kirubanidhi Posted July 19, 2017 Share Posted July 19, 2017 Notice: Undefined index: hazmat_fees in /var/www/html/cy_prestashop/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 384 Notice: Undefined index: poison_fees in /var/www/html/cy_prestashop/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 398 Notice: Undefined index: refrigerated_fees in /var/www/html/cy_prestashop/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 412 How to resolve this problem. I am using prestashop version 1.6.1.15 Link to comment Share on other sites More sharing options...
rocky Posted July 19, 2017 Share Posted July 19, 2017 PrestaShop doesn't have $hazmat_fees, $poison_fees or $refrigerated_fees variables, so you must have installed a third-party module that creates these variables. Find that module and contact the developer of the module for support. Link to comment Share on other sites More sharing options...
syed.obaid Posted December 9, 2017 Share Posted December 9, 2017 I have same kind of issue in my prestashop store. I have Prestashop 1.6..0.4 when i click the category so can't show a black page with this error " This page isn’t working www.apparelprime.com is currently unable to handle this request. HTTP ERROR 500 " Please help me. any solution? Link to comment Share on other sites More sharing options...
rocky Posted December 10, 2017 Share Posted December 10, 2017 Edit config/defines.inc.php and change the value of _PS_MODE_DEV_ from false to true. You should then get an error message instead of a 500 error that should help you debug the problem. Link to comment Share on other sites More sharing options...
grupostartrn Posted December 14, 2017 Share Posted December 14, 2017 ContextErrorException en 4f4a0120120279100d12a6e9be1d212162eda7e3.file.login.tpl.php línea 36 : Aviso: índice indefinido: tpl_dir en 4f4a0120120279100d12a6e9be1d212162eda7e3.file.login.tpl.php línea 36 en ErrorHandler -> handleError ('8', 'Índice no definido: tpl_dir', a content_5a3309d23148a3_66186756 ( objeto ( Smarty_Custom_Template )) en la línea 188 de smarty_internal_templatebase.php en Smarty_Internal_TemplateBase -> fetch ( objeto ( Smarty_Custom_Template ), nulo , nulo , nulo , falso , verdadero , falso ) en SmartyCustom.php línea 317 en Smarty_Custom_Template -> fetch () en Module.php línea 2241 en TrackingFront -> displayLogin () en stats.php línea 35 Me da este error al intentar acceder a la url de afiliados a traves del modulo TrackingFront Alguna sugerencia? Link to comment Share on other sites More sharing options...
rocky Posted December 15, 2017 Share Posted December 15, 2017 From the error message, it appears the problem is on line 33 (in PrestaShop v1.6.1.17) of modules/trackingfront/views/template/front/login.tpl: {include file="$tpl_dir./errors.tpl"} On your website, $tpl_dir is not defined, which is weird, since it should be defined on line 444 (in PrestaShop v1.6.1.17) of classes/FrontController.php: 'tpl_dir' => _PS_THEME_DIR_, Are you trying to use the PrestaShop v1.6 tracking module in PrestaShop v1.7? That would explain this error, since the module does not support PrestaShop v1.7. Link to comment Share on other sites More sharing options...
grupostartrn Posted December 15, 2017 Share Posted December 15, 2017 8 minutes ago, rocky said: Del mensaje de error, parece que el problema está en la línea 33 (en PrestaShop v1.6.1.17) de modules / trackingfront / views / template / front / login.tpl: {include file = "$ tpl_dir./errors.tpl"} En su sitio web, $ tpl_dir no está definido, lo cual es extraño, ya que debe definirse en la línea 444 (en PrestaShop v1.6.1.17) de clases / FrontController.php: 'tpl_dir' => _PS_THEME_DIR_, ¿Está tratando de usar el módulo de seguimiento PrestaShop v1.6 en PrestaShop v1.7? Eso explicaría este error, ya que el módulo no es compatible con PrestaShop v1.7. ok, Thanks! I have Prestashop v1.7. Link to comment Share on other sites More sharing options...
rocky Posted December 15, 2017 Share Posted December 15, 2017 Then you'll need to delete the trackingfront module, since it's not compatible. There is no version of that module that works in PrestaShop v1.7 at the moment. Link to comment Share on other sites More sharing options...
Nouha_Chouchene Posted March 21, 2019 Share Posted March 21, 2019 On 8/29/2014 at 11:09 PM, vekia said: what ps version you use and what prestashop template? Notice: Trying to get property of non-object in /var/www/cravate/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 58 any help?? Link to comment Share on other sites More sharing options...
hurray Posted March 27, 2019 Share Posted March 27, 2019 Hi, I am getting this error: Notice: Undefined index: quan in /home/savdanac/public_html/cache/smarty/compile/87/9e/e7/879ee725fa3cfb1d580be3d886242a16ff32cf72.file.product.tpl.php on line 101 Notice: Trying to get property of non-object in /home/savdanac/public_html/cache/smarty/compile/87/9e/e7/879ee725fa3cfb1d580be3d886242a16ff32cf72.file.product.tpl.php on line 101 Anyone knows what's happening? Link to comment Share on other sites More sharing options...
husein522 Posted August 1, 2019 Share Posted August 1, 2019 Hi, I am getting error while executing code: $first.product_list[0].carrier_list[0] in order-carrier.tpl error: <b>Notice</b>: Undefined offset: 0 in <b>/home/saifkvc5/public_html/mystore/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code</b> on line <b>252</b><br /> hide"> <table class="delivery_option_carrier selected resume table table-bordered"><tbody><tr><td rowspan="2" class="delivery_option_radio first_item"> <div class="radio" id="uniform-delivery_option_27_0"><span class="checked"><input id="delivery_option_27_0" class="delivery_option_radio" type="radio" name="delivery_option[27]" data-key="90,89," data-id_address="27" value="90,89," checked="checked"></span></div></td> <td class="delivery_option_logo<br /> <b>Notice</b>: Undefined offset: 0 in <b>/home/saifkvc5/public_html/mystore/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code</b> on line <b>252</b><br /> hide"> <img class="order_carrier_logo" src="/mystore/img/s/90.jpg" alt="free shipping"></td><td class="<br /> <b>Notice</b>: Undefined offset: 0 in <b>/home/saifkvc5/public_html/mystore/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code</b> on line <b>262</b><br /> hide"> <input type="hidden" value="90" name="id_carrier"> <i class="icon-info-sign"></i> 2-3 (For this product: WigOWig Long Beautiful Extension for Ladies(Washable & Curlable hair) Hair Extension)</td><td rowspan="2" class="delivery_option_price"><div class="delivery_option_price">Frees</div></td></tr><tr><td class="delivery_option_logo<br /> <b>Notice</b>: Undefined offset: 0 in <b>/home/saifkvc5/public_html/mystore/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code</b> on line <b>330</b><br /> hide"> <img class="order_carrier_logo" src="/mystore/img/s/89.jpg" alt="Free Shipping non cod"></td><td class="<br /> <b>Notice</b>: Undefined offset: 0 in <b>/home/saifkvc5/public_html/mystore/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code</b> on line <b>340</b><br /> hide"> <input type="hidden" value="90" name="id_carrier"> <i class="icon-info-sign"></i> 4-5 (For this product: Curren Men Black Decker Planet Ocean Analog Watch)</td></tr></tbody></table> Link to comment Share on other sites More sharing options...
ComanGeorge Posted January 13, 2020 Share Posted January 13, 2020 Hi...i see it's an old story with this one... I reviced the legen 500 error, and after reading all the above, all i could done, was to recive this new thing. Can someone explain how to fix it? Thanks. (1/1) ContextErrorException Notice: Undefined index: path in Smarty.class.php line 1127 at Smarty->_realpath('<!-- begin module:ps_linklist/views/templates/hook/linkblock.tpl --><!-- begin /home/aehvvxii/public_html/themes/classic/modules/ps_linklist/views/templates/hook/linkblock.tpl --><div class="col-md-6 links"> <div class="row"> </div></div><!-- end /home/aehvvxii/public_html/themes/classic/modules/ps_linklist/views/templates/hook/linkblock.tpl --><!-- end module:ps_linklist/views/templates/hook/linkblock.tpl -->', true)in smarty_internal_resource_file.php line 169 at Smarty_Internal_Resource_File->buildFilepath(object(Smarty_Template_Source), object(SmartyDevTemplate))in smarty_internal_resource_file.php line 30 at Smarty_Internal_Resource_File->populate(object(Smarty_Template_Source), object(SmartyDevTemplate))in smarty_template_source.php line 182 at Smarty_Template_Source::load(object(SmartyDevTemplate))in smarty_internal_template.php line 168 at Smarty_Internal_Template->__construct('<!-- begin module:ps_linklist/views/templates/hook/linkblock.tpl --><!-- begin /home/aehvvxii/public_html/themes/classic/modules/ps_linklist/views/templates/hook/linkblock.tpl --><div class="col-md-6 links"> <div class="row"> </div></div><!-- end /home/aehvvxii/public_html/themes/classic/modules/ps_linklist/views/templates/hook/linkblock.tpl --><!-- end module:ps_linklist/views/templates/hook/linkblock.tpl -->', object(SmartyDev), null, null, 'layouts/layout-full-width.tpl', null, null)in Smarty.class.php line 1029 at Smarty->createTemplate('<!-- begin module:ps_linklist/views/templates/hook/linkblock.tpl --><!-- begin /home/aehvvxii/public_html/themes/classic/modules/ps_linklist/views/templates/hook/linkblock.tpl --><div class="col-md-6 links"> <div class="row"> </div></div><!-- end /home/aehvvxii/public_html/themes/classic/modules/ps_linklist/views/templates/hook/linkblock.tpl --><!-- end module:ps_linklist/views/templates/hook/linkblock.tpl -->', null, 'layouts/layout-full-width.tpl', object(SmartyDev), false)in smarty_internal_templatebase.php line 189 at Smarty_Internal_TemplateBase->_execute('<!-- begin module:ps_linklist/views/templates/hook/linkblock.tpl --><!-- begin /home/aehvvxii/public_html/themes/classic/modules/ps_linklist/views/templates/hook/linkblock.tpl --><div class="col-md-6 links"> <div class="row"> </div></div><!-- end /home/aehvvxii/public_html/themes/classic/modules/ps_linklist/views/templates/hook/linkblock.tpl --><!-- end module:ps_linklist/views/templates/hook/linkblock.tpl -->', null, 'layouts/layout-full-width.tpl', null, 0)in smarty_internal_templatebase.php line 116 at Smarty_Internal_TemplateBase->fetch('<!-- begin module:ps_linklist/views/templates/hook/linkblock.tpl --><!-- begin /home/aehvvxii/public_html/themes/classic/modules/ps_linklist/views/templates/hook/linkblock.tpl --><div class="col-md-6 links"> <div class="row"> </div></div><!-- end /home/aehvvxii/public_html/themes/classic/modules/ps_linklist/views/templates/hook/linkblock.tpl --><!-- end module:ps_linklist/views/templates/hook/linkblock.tpl -->', null, 'layouts/layout-full-width.tpl', null, false, true, false)in SmartyDev.php line 40 at SmartyDev->fetch('<!-- begin module:ps_linklist/views/templates/hook/linkblock.tpl --><!-- begin /home/aehvvxii/public_html/themes/classic/modules/ps_linklist/views/templates/hook/linkblock.tpl --><div class="col-md-6 links"> <div class="row"> </div></div><!-- end /home/aehvvxii/public_html/themes/classic/modules/ps_linklist/views/templates/hook/linkblock.tpl --><!-- end module:ps_linklist/views/templates/hook/linkblock.tpl -->', null, 'layouts/layout-full-width.tpl')in FrontController.php line 683 at FrontControllerCore->smartyOutputContent('<!-- begin module:ps_linklist/views/templates/hook/linkblock.tpl --><!-- begin /home/aehvvxii/public_html/themes/classic/modules/ps_linklist/views/templates/hook/linkblock.tpl --><div class="col-md-6 links"> <div class="row"> </div></div><!-- end /home/aehvvxii/public_html/themes/classic/modules/ps_linklist/views/templates/hook/linkblock.tpl --><!-- end module:ps_linklist/views/templates/hook/linkblock.tpl -->')in FrontController.php line 667 at FrontControllerCore->display()in Controller.php line 312 at ControllerCore->run()in Dispatcher.php line 515 at DispatcherCore->dispatch()in index.php line 28 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