thisisphpnet Posted November 14, 2013 Share Posted November 14, 2013 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 More sharing options...
Victor Castro Contreras Posted March 6, 2017 Share Posted March 6, 2017 Suele pasar cuando llamas a una variable php que no esta definida e intentas enviar al smarty. En tu caso debe ser que basename($file, '.php') no esté llamando a ningún archivo. 'module_dir' => __PS_BASE_URI__.'modules/'.basename($file, '.php').'/', 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