Jump to content

erreur smarty_internal_templatebase.php(157) : eval()'d code on line 35


Recommended Posts

Bonjour,

 

j'ai un theme jms installé je viens d'ajouter mon 1 produits et voila ce qui s'affiche sur la page du produit :

Notice: Undefined index: scenes in /homepages/4/d656343442/htdocs/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 35

Notice: Trying to get property of non-object in /homepages/4/d656343442/htdocs/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 35

 

voici le code :

commence par la ligne 35

   public function fetch($template = null, $cache_id = null, $compile_id = null, $parent = null, $display = false, $merge_tpl_vars = true, $no_output_filter = false)
    {
        if ($template === null && $this instanceof $this->template_class) {
            $template = $this;
        }
        if ($cache_id !== null && is_object($cache_id)) {
            $parent = $cache_id;
            $cache_id = null;
        }
        if ($parent === null && ($this instanceof Smarty || is_string($template))) {
            $parent = $this;
        }

et la ligne 157:

 } else {
                    if (!$_template->compiled->exists || ($_template->smarty->force_compile && !$_template->compiled->isCompiled)) {
                        $_template->compileTemplateSource();
                        $code = file_get_contents($_template->compiled->filepath);
             
voici la ligne 157->        eval("?>" . $code);
                        unset($code);
                        $_template->compiled->loaded = true;
                        $_template->compiled->isCompiled = true;
                    }

J'ai remarque que la page n'avais pas ?> a la fin de la page smarty_internal_templatebase.php donc je l'ai rajouté mais aucun changement.

merci pour votre aide.

Edited by kate66 (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...