Jump to content

Undefined index


Recommended Posts

Hi,

Since this morning I've a problem with my website. Without any modification !!

Trying to get property of non-object in/home/distrisc/public_html/cache/smarty/compile

Anybody can help me please ?

The site is working in production... its very important

Thx

 

prestashop 1.6.0.6

Link to comment
Share on other sites

  • 11 months later...
  • 10 months later...

Hi everyone,

 

i have same issue. I get in php error.log always same error. It is working very fine but smarty cache causes following:

PHP Notice: Undefined index: cms in /presta/myshop/cache/smarty/compile/03/dd/f3/03ddf3fa6cee4175a3053fc70a3f25a2e94854a9.file.cms.tpl.php

on line:

<?php if ($_smarty_tpl->tpl_vars['cms']->value->id==29-'mycontactform') {?><?php echo $_smarty_tpl->getSubTemplate ("/home/presta/myshop/themes/mytheme/mysubcontactform.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

This is how i include my template into cms.tpl:

{if $cms->id==29-mycontactform}
{include file="/home/presta/myshop/themes/mytheme/mysubcontactform.tpl"}
{/if}
Edited by Tahsin_85 (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...