Jump to content
gkartaltr

Fatal error: Class 'Smarty_Internal_Undefined' not found in

Recommended Posts

Hi everybody,

I just tryed to install prestashop 1.7.4.2 

I got this error :


Fatal error: Class 'Smarty_Internal_Undefined' not found in /var/www/vhosts/kartal.in/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php on line 164

 

Can you help me ?

Share this post


Link to post
Share on other sites
3 minutes ago, ksaan said:

What is your version of php ? Was the install successfull ?

php 5.6.37

yes, installation is complated. 

Share this post


Link to post
Share on other sites

The class missing is supposed to be in file vendor/smarty/smarty/libs/sysplugins/smarty_internal_undefined.php

Do you have the file ?

Share this post


Link to post
Share on other sites
3 minutes ago, ksaan said:

The class missing is supposed to be in file vendor/smarty/smarty/libs/sysplugins/smarty_internal_undefined.php

Do you have the file ?

yes,

 

<?php

/**
 * Smarty Internal Undefined
 *
 * Class to handle undefined method calls or calls to obsolete runtime extensions
 *
 * @package    Smarty
 * @subpackage PluginsInternal
 * @author     Uwe Tews
 */
class Smarty_Internal_Undefined
{

    /**
     * Name of undefined extension class
     *
     * @var string|null
     */
    public $class = null;

    /**
     * Smarty_Internal_Undefined constructor.
     *
     * @param null|string $class name of undefined extension class
     */
    public function __construct($class = null)
    {
        $this->class = $class;
    }

    /**
     * Wrapper for obsolete class Smarty_Internal_Runtime_ValidateCompiled
     *
     * @param  \Smarty_Internal_Template $tpl
     * @param  array                     $properties special template properties
     * @param  bool                      $cache      flag if called from cache file
     *
     * @return bool false
     */
    public function decodeProperties(Smarty_Internal_Template $tpl, $properties, $cache = false)
    {
        if ($cache) {
            $tpl->cached->valid = false;
        } else {
            $tpl->mustCompile = true;
        }
        return false;
    }

    /**
     * Call error handler for undefined method
     *
     * @param string $name unknown method-name
     * @param array  $args argument array
     *
     * @return mixed
     * @throws SmartyException
     */
    public function __call($name, $args)
    {
        if (isset($this->class)) {
            throw new SmartyException("undefined extension class '{$this->class}'");
        } else {
            throw new SmartyException(get_class($args[ 0 ]) . "->{$name}() undefined method");
        }
    }
}

Share this post


Link to post
Share on other sites

I'm sorry if you have the file I dont understand why the class is not found :(

You might need the help of a freelance developer to have a look at this and explore this issue

Share this post


Link to post
Share on other sites

In Config.inc.php ,

Set the line setlocale(LC_TYPE) as comment ( with // )

It will be solved.

Article source: https://www.prestashop.com/forums/topic/668009-%C3%A7%C3%B6z%C3%BCld%C3%BC-g%C3%BCncelleme-yap%C4%B1nca-site-ve-y%C3%B6netim-paneline-ula%C5%9Fam%C4%B1yorum/

  • Like 1
  • Thanks 1

Share this post


Link to post
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

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More