redoli Posted October 1, 2014 Share Posted October 1, 2014 Hello everybody I have activated debug mode in config/defines.inc.php and some errors are showing and don't know how to solve it. The first one is at BO, at modules tab it shows next: Notice: Undefined property: stdClass::$type in /var/www/vhosts/mydomain.es/httpdocs/cache/smarty/compile/5b/0b/8b/5b0b8b44b2339610fc8e3f35149aec1939cfb715.file.list.tpl.php on line 47 I have checked the file and this is what I got: This is line 47: <?php if ($_smarty_tpl->tpl_vars['module']->value->type!='addonsMustHave'){?> <?php /* Smarty version Smarty-3.1.14, created on 2014-10-01 15:45:01 compiled from "/var/www/vhosts/mydomain.es/httpdocs/admin5678/themes/default/template/controllers/modules/list.tpl" */ ?> <?php /*%%SmartyHeaderCode:1853432802542c055d0a9016-72549457%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_valid = $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '5b0b8b44b2339610fc8e3f35149aec1939cfb715' => array ( 0 => '/var/www/vhosts/mydomain.es/httpdocs/admin5678/themes/default/template/controllers/modules/list.tpl', 1 => 1406026738, 2 => 'file', ), ), 'nocache_hash' => '1853432802542c055d0a9016-72549457', 'function' => array ( ), 'variables' => array ( 'modules' => 0, 'module' => 0, ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.14', 'unifunc' => 'content_542c055d228d54_98352138', ),false); /*/%%SmartyHeaderCode%%*/?> <?php if ($_valid && !is_callable('content_542c055d228d54_98352138')) {function content_542c055d228d54_98352138($_smarty_tpl) {?> <?php if (count($_smarty_tpl->tpl_vars['modules']->value)){?> <table cellspacing="0" cellpadding="0" style="width: 100%; margin-bottom:10px;" class="table" id=""> <thead> <tr class="nodrag nodrop"> <th class="center"> <input type="checkbox" rel="false" class="noborder" id="checkme"><br> </th> <th class="center"></th> <th><?php echo smartyTranslate(array('s'=>'Module name'),$_smarty_tpl);?> </th> <th></th> </tr> <tbody> <?php $_smarty_tpl->tpl_vars['module'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['module']->_loop = false; $_from = $_smarty_tpl->tpl_vars['modules']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['module']->key => $_smarty_tpl->tpl_vars['module']->value){ $_smarty_tpl->tpl_vars['module']->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['module']->value->type!='addonsMustHave'){?> <tr> <td> <?php if ((isset($_smarty_tpl->tpl_vars['module']->value->id)&&$_smarty_tpl->tpl_vars['module']->value->id>0)||!isset($_smarty_tpl->tpl_vars['module']->value->type)||$_smarty_tpl->tpl_vars['module']->value->type!='addonsMustHave'){?> <input type="checkbox" name="modules" value="<?php echo $_smarty_tpl->tpl_vars['module']->value->name;?> " <?php if (!isset($_smarty_tpl->tpl_vars['module']->value->confirmUninstall)||empty($_smarty_tpl->tpl_vars['module']->value->confirmUninstall)){?>rel="false"<?php }else{ ?>rel="<?php echo addslashes($_smarty_tpl->tpl_vars['module']->value->confirmUninstall);?> "<?php }?> class="noborder"> <?php }?> </td> <td><img class="imgm" alt="" src="<?php if (isset($_smarty_tpl->tpl_vars['module']->value->image)){?><?php echo $_smarty_tpl->tpl_vars['module']->value->image;?> <?php }else{ ?>../modules/<?php echo $_smarty_tpl->tpl_vars['module']->value->name;?> /<?php echo $_smarty_tpl->tpl_vars['module']->value->logo;?> <?php }?>"></td> <td> <div class="moduleDesc" id="anchor<?php echo ucfirst($_smarty_tpl->tpl_vars['module']->value->name);?> " title="<?php echo $_smarty_tpl->tpl_vars['module']->value->name;?> "> <h3><?php echo $_smarty_tpl->tpl_vars['module']->value->displayName;?> <span style="display:none"><?php echo $_smarty_tpl->tpl_vars['module']->value->name;?> </span> <?php if (isset($_smarty_tpl->tpl_vars['module']->value->type)&&$_smarty_tpl->tpl_vars['module']->value->type=='addonsMustHave'){?> <span class="setup must-have"><?php echo smartyTranslate(array('s'=>'Must Have'),$_smarty_tpl);?> </span> <?php }else{ ?> <?php if (isset($_smarty_tpl->tpl_vars['module']->value->id)&&$_smarty_tpl->tpl_vars['module']->value->id>0){?> <span class="setup<?php if (isset($_smarty_tpl->tpl_vars['module']->value->active)&&$_smarty_tpl->tpl_vars['module']->value->active==0){?> off<?php }?>"><?php echo smartyTranslate(array('s'=>'Installed'),$_smarty_tpl);?> </span> <?php }else{ ?> <span class="setup non-install"><?php echo smartyTranslate(array('s'=>'Not installed'),$_smarty_tpl);?> </span> <?php }?> <?php }?> </h3> <div class="metadata"> <?php if (isset($_smarty_tpl->tpl_vars['module']->value->author)&&!empty($_smarty_tpl->tpl_vars['module']->value->author)){?> <dl class=""> <dt><?php echo smartyTranslate(array('s'=>'Developed by'),$_smarty_tpl);?> :</dt> <dd><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['module']->value->author,20,'...');?> </dd>| </dl> <?php }?> <dl class=""> <dt><?php echo smartyTranslate(array('s'=>'Version'),$_smarty_tpl);?> :</dt> <dd><?php echo $_smarty_tpl->tpl_vars['module']->value->version;?> <?php if (isset($_smarty_tpl->tpl_vars['module']->value->version_addons)){?>(<?php echo smartyTranslate(array('s'=>'Update'),$_smarty_tpl);?> <?php echo $_smarty_tpl->tpl_vars['module']->value->version_addons;?> <?php echo smartyTranslate(array('s'=>'Available on PrestaShop Addons'),$_smarty_tpl);?> )<?php }?> </dd>| </dl> <dl class=""> <dt><?php echo smartyTranslate(array('s'=>'Category'),$_smarty_tpl);?> :</dt> <dd><?php echo $_smarty_tpl->tpl_vars['module']->value->categoryName;?> </dd> </dl> </div> <p class="desc"><?php if (isset($_smarty_tpl->tpl_vars['module']->value->description)&&$_smarty_tpl->tpl_vars['module']->value->description!=''){?><?php echo smartyTranslate(array('s'=>'Description'),$_smarty_tpl);?> : <?php echo $_smarty_tpl->tpl_vars['module']->value->description;?> <?php }else{ ?> <?php }?></p> <?php if (isset($_smarty_tpl->tpl_vars['module']->value->message)&&(empty($_smarty_tpl->tpl_vars['module']->value->name)===false)&&(!isset($_smarty_tpl->tpl_vars['module']->value->type)||($_smarty_tpl->tpl_vars['module']->value->type!='addonsMustHave'||$_smarty_tpl->tpl_vars['module']->value->type!=='addonsNative'))){?><div class="conf"><?php echo $_smarty_tpl->tpl_vars['module']->value->message;?> </div><?php }?> <div class="row-actions-module"> <?php if (!isset($_smarty_tpl->tpl_vars['module']->value->not_on_disk)){?> <?php echo $_smarty_tpl->tpl_vars['module']->value->optionsHtml;?> <?php if (isset($_smarty_tpl->tpl_vars['module']->value->preferences)&&$_smarty_tpl->tpl_vars['module']->value->preferences['favorite']==1){?> <a class="action_module action_unfavorite toggle_favorite" data-module="<?php echo $_smarty_tpl->tpl_vars['module']->value->name;?> " data-value="0" href="#"><?php echo smartyTranslate(array('s'=>'Remove from Favorites'),$_smarty_tpl);?> </a> <a class="action_module action_favorite toggle_favorite" data-module="<?php echo $_smarty_tpl->tpl_vars['module']->value->name;?> " data-value="1" href="#" style="display: none;"><?php echo smartyTranslate(array('s'=>'Mark as Favorite'),$_smarty_tpl);?> </a> <?php }else{ ?> <a class="action_module action_unfavorite toggle_favorite" data-module="<?php echo $_smarty_tpl->tpl_vars['module']->value->name;?> " data-value="0" href="#" style="display: none;"><?php echo smartyTranslate(array('s'=>'Remove from Favorites'),$_smarty_tpl);?> </a> <a class="action_module action_favorite toggle_favorite" data-module="<?php echo $_smarty_tpl->tpl_vars['module']->value->name;?> " data-value="1" href="#"><?php echo smartyTranslate(array('s'=>'Mark as Favorite'),$_smarty_tpl);?> </a> <?php }?> <?php }else{ ?> <?php }?> </div> </div> </td> <td> <ul id="list-action-button"> <?php if (isset($_smarty_tpl->tpl_vars['module']->value->type)&&$_smarty_tpl->tpl_vars['module']->value->type=='addonsMustHave'){?> <li> <a href="<?php echo $_smarty_tpl->tpl_vars['module']->value->addons_buy_url;?> " target="_blank" class="button updated"><span><img src="../img/admin/cart_addons.png"> <?php if (isset($_smarty_tpl->tpl_vars['module']->value->id_currency)&&isset($_smarty_tpl->tpl_vars['module']->value->price)){?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price'=>$_smarty_tpl->tpl_vars['module']->value->price,'currency'=>$_smarty_tpl->tpl_vars['module']->value->id_currency),$_smarty_tpl);?> <?php }?></span></a> </li> <?php }else{ ?> <?php if (isset($_smarty_tpl->tpl_vars['module']->value->version_addons)&&$_smarty_tpl->tpl_vars['module']->value->version_addons){?> <li><a href="<?php echo $_smarty_tpl->tpl_vars['module']->value->options['update_url'];?> " class="button updated"><span><?php echo smartyTranslate(array('s'=>'Update it!'),$_smarty_tpl);?> </span></a></li> <?php }?> <li> <a <?php if (isset($_smarty_tpl->tpl_vars['module']->value->id)&&$_smarty_tpl->tpl_vars['module']->value->id>0&&!empty($_smarty_tpl->tpl_vars['module']->value->options['uninstall_onclick'])){?>onclick="<?php echo $_smarty_tpl->tpl_vars['module']->value->options['uninstall_onclick'];?> "<?php }?> href="<?php if (isset($_smarty_tpl->tpl_vars['module']->value->id)&&$_smarty_tpl->tpl_vars['module']->value->id>0){?><?php echo $_smarty_tpl->tpl_vars['module']->value->options['uninstall_url'];?> <?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['module']->value->options['install_url'];?> <?php }?>" class="button installed"> <span><?php if (isset($_smarty_tpl->tpl_vars['module']->value->id)&&$_smarty_tpl->tpl_vars['module']->value->id>0){?><?php echo smartyTranslate(array('s'=>'Uninstall'),$_smarty_tpl);?> <?php }else{ ?><?php echo smartyTranslate(array('s'=>'Install'),$_smarty_tpl);?> <?php }?></span> </a> </li> <?php }?> </ul> </td> </tr> <?php }?> <?php } ?> </tbody> </table> <div style="margin-top: 12px;"> <input type="button" class="button big" value="<?php echo smartyTranslate(array('s'=>'Install the selection'),$_smarty_tpl);?> " onclick="modules_management('install')"/> <input type="button" class="button big" value="<?php echo smartyTranslate(array('s'=>'Uninstall the selection'),$_smarty_tpl);?> " onclick="modules_management('uninstall')" /> </div> <?php }else{ ?> <div style="margin-top: 12px;color: #585A69;font-size: 16px;"><p align="center"><?php echo smartyTranslate(array('s'=>'No modules available in this section.'),$_smarty_tpl);?> </p></div> <?php }?> <?php [spam-filter] ?> Link to comment Share on other sites More sharing options...
PascalVG Posted October 1, 2014 Share Posted October 1, 2014 looks like they forget to check if the var is defined (strange enough they do check it a few lines later, on line 50): !isset($_smarty_tpl->tpl_vars['module']->value->type) so if you change the line 47 to something like: <?php if ( !isset($_smarty_tpl->tpl_vars['module']->value->type) || $_smarty_tpl->tpl_vars['module']->value->type!='addonsMustHave'){?> only, file is a cached file. Not sure where to find the original... but give it a try if it works after adding this. My 2 cents, pascal 1 Link to comment Share on other sites More sharing options...
redoli Posted October 1, 2014 Author Share Posted October 1, 2014 Changed as you said and working, the error dissapeared! Changed to: <?php if ( !isset($_smarty_tpl->tpl_vars['module']->value->type) || $_smarty_tpl->tpl_vars['module']->value->type!='addonsMustHave'){?> Link to comment Share on other sites More sharing options...
venditdevs Posted August 18, 2016 Share Posted August 18, 2016 Original file can be found here: /ADMINFOLDER/themes/default/template/controllers/modules/list.tpl Link to comment Share on other sites More sharing options...
sworld Posted August 26, 2016 Share Posted August 26, 2016 Notice: Undefined property: stdClass::$smarty in /home1/sworld/public_html/wholesalestationery.in/classes/module/Module.php on line 2330Fatal error: Call to a member function createTemplate() on a non-object in /home1/sworld/public_html/wholesalestationery.in/classes/module/Module.php on line 2330 Link to comment Share on other sites More sharing options...
studiophotosud Posted December 28, 2018 Share Posted December 28, 2018 (edited) Hello , can you help me please: Fatal error: Can't use method return value in write context in /home/interdit/www/cache/smarty/compile/bf/73/58/bf7358343d1de88f2d0ef786fb18975bd0b287a9.file.pixel.tpl.php on line 107 <?php if (isset($_smarty_tpl->tpl_vars['cart_obj']->value)&&!empty($_smarty_tpl->tpl_vars['cart_obj']->value->getProducts())) {?> Edited December 28, 2018 by studiophotosud (see edit history) Link to comment Share on other sites More sharing options...
Karen Sanchez R Posted May 7, 2020 Share Posted May 7, 2020 Hello, I need help please, Today appear two errors with the same 1) Trying to get property 'value' of non-object in 2) Undefined index: social_share_links in /home/u646657599/domains/listatulista.com/public_html/var/cache/prod/smarty/compile/ce/90/8e/ce908e3af500ef88d0be39d6badc82307b6995cd_2.module.pssharebuttonsviewstempla.cache.php on line 46. 46 <?php if ($_smarty_tpl->tpl_vars['social_share_links']->value) {?> Does anyone know what it means? please Thanks Link to comment Share on other sites More sharing options...
evelyng.com Posted June 20, 2020 Share Posted June 20, 2020 (edited) Hello friends If anyone can help me with this warning, I appreciate it. This error appears on the order page: Notice: Undefined index: addresses in /home/name/public_html/tienda/app/cache/prod/smarty/compile/66/6f/b3/666fb33037bdb547950d1e4f005ddfc6dd3d18d1.file.payment.tpl.php on line 305 When I go to the file I find this on line 305 <?php echo $_smarty_tpl->tpl_vars['customer']->value['addresses'][$_smarty_tpl->tpl_vars['cart']->value['id_address_delivery']]['formatted'];?> Excuse me, but I don't know much about what to adjust. Edited June 20, 2020 by evelyng.com complement (see edit history) Link to comment Share on other sites More sharing options...
evelyng.com Posted June 20, 2020 Share Posted June 20, 2020 in advanced parameters, debugging mode is NO Link to comment Share on other sites More sharing options...
evelyng.com Posted June 22, 2020 Share Posted June 22, 2020 Lo solucioné actualizando varios módulos que tenían actualizaciones nuevas. 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