johnph Posted July 10, 2015 Share Posted July 10, 2015 Hi guys New instalation on 1.6.1, all default... in the back end, when I enter the tab modules, i get a big red box with this error typed a lot of times: Notice na linha 136 do ficheiro /home/user/public_html/domain/cache/smarty/compile/ed/e9/dc/ede9dc4b1b130c47c3ca9b01be1e1730afc33d88.file.list.tpl.php[8] Undefined property: stdClass::$price any help? ty guys! Link to comment Share on other sites More sharing options...
baza3800 Posted July 10, 2015 Share Posted July 10, 2015 (edited) Hi guys I have a similar error New instalation on 1.6.1, all default... in the back end, when I enter the tab modules Notice in line 136 in file: mydomain.com\tools\smarty\sysplugins\smarty_internal_templatebase.php(157) : eval()'d code [8] Undefined property: stdClass::$price Edited July 10, 2015 by baza3800 (see edit history) Link to comment Share on other sites More sharing options...
realayumi Posted July 11, 2015 Share Posted July 11, 2015 i have the same problem. To produce error, edit: config/defines.inc.php define('_PS_MODE_DEV_', true); go to admin main menu "modules and services" where all modules listed. Then pop up show this (repeatedly): Notice on line 136 in file PS.1.6.1.0\tools\smarty\sysplugins\smarty_internal_templatebase.php(157) : eval()'d code[8] Undefined property: stdClass::$price Link to comment Share on other sites More sharing options...
Mixa_RU Posted July 11, 2015 Share Posted July 11, 2015 Same here: Prestashop 1.6.1.0 PHP Version 5.3.29 1 Link to comment Share on other sites More sharing options...
Weasel Posted July 11, 2015 Share Posted July 11, 2015 Me 2 …ah 6...Any help? Doesn't seem to give problems, more annoying. Notice on line 136 in file /home/realengopetshop/public_html/cache/smarty/compile/e6/7a/65/e67a65ba20538464a81f5b0eb9f38553db682de8.file.list.tpl.php[8] Undefined property: stdClass::$price Link to comment Share on other sites More sharing options...
realayumi Posted July 12, 2015 Share Posted July 12, 2015 (edited) Hope this help, agree with @Weasel, its not give problems, just annoying. Here is my workaround. I prefer using override. copy 3 files: content.tpl page.tpl list.tpl from: \[ADMIN FOLDER]\themes\default\template\controllers\modules to: \override\controllers\admin\templates\modules Lets edit those three files. content.tpl find: {include file='controllers/modules/page.tpl'} replace with: {* include file='controllers/modules/page.tpl' *} {include file=$smarty.const._PS_OVERRIDE_DIR_|cat:"controllers/admin/templates/modules/page.tpl"} page.tpl find: {include file='controllers/modules/list.tpl'} replace with: {* include file='controllers/modules/list.tpl' *} {include file=$smarty.const._PS_OVERRIDE_DIR_|cat:"controllers/admin/templates/modules/list.tpl"} list.tpl find <i class="icon-shopping-cart"> replace whole line (line 100) NOTE: block the whole line, then paste. <i class="icon-shopping-cart"></i> {if isset($module->id_currency) && isset($module->price)}{displayPrice price=$module->price currency=$module->id_currency}{/if} clear your smarty cache, refresh your module list in BO. Voila! Edited July 12, 2015 by realayumi (see edit history) Link to comment Share on other sites More sharing options...
Mixa_RU Posted July 12, 2015 Share Posted July 12, 2015 (edited) And also this is the thread (with solution?) in PrestaShop Issue Tracker: http://forge.prestashop.com/browse/PSCSX-6158 To get rid of this notice turn-off dev mode: config/defines.inc.php: define('PS_MODE_DEV', FALSE); And also here: https://www.prestashop.com/forums/topic/452788-error-after-upgrading-from16014-to-161-8-undefined-property-sdclassprice/ Edited July 12, 2015 by Mixa_RU (see edit history) Link to comment Share on other sites More sharing options...
realayumi Posted July 12, 2015 Share Posted July 12, 2015 @Mixa_RU turn off dev mode is not a solution. Its like when we are in the car, we didnt close the door tight, the light automatically turned on, we should not turn off the light. Right? BTW, thx for the info: http://forge.prestashop.com/browse/PSCSX-6158 and https://www.prestashop.com/forums/topic/452788-error-after-upgrading-from16014-to-161-8-undefined-property-sdclassprice/ 2 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