Jump to content

prestashop_1.5.6.0 - Fatal error: Call to undefined method Smarty_Data::assign()


Recommended Posts

Hi,

I have installed prestashop in my site but its showing

Fatal error: Call to undefined method Smarty_Data::assign() in /home/public_html/shopping/classes/module/Module.php on line 1654

 

when i opened 1654 line in module.php i found the following function.

public function display($file, $template, $cacheId = null, $compileId = null)

    {

        if (($overloaded = Module::_isTemplateOverloadedStatic(basename($file, '.php'), $template)) === null)

            return Tools::displayError('No template found for module').' '.basename($file, '.php');

        else

        {

            $this->smarty->assign(array(

                'module_dir' =>                __PS_BASE_URI__.'modules/'.basename($file, '.php').'/',

                'module_template_dir' =>    ($overloaded ? _THEME_DIR_ : __PS_BASE_URI__).'modules/'.basename($file, '.php').'/'

            ));



            if ($cacheId !== null)

                Tools::enableCache();



            $result = $this->getCurrentSubTemplate($template, $cacheId, $compileId)->fetch();



            if ($cacheId !== null)

                Tools::restoreCacheSettings();



            $this->resetCurrentSubTemplate($template, $cacheId, $compileId);



            return $result;

        }

    }

-----------------------------------------------------------------------

I hope you can help me to fix this issue.

Thanks in advance

Link to comment
Share on other sites

  • 3 years later...

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...