Jump to content

Fatal error: Class 'Smarty_Internal_Undefined' not found in


gkartaltr

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 ?

Link to comment
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");
        }
    }
}

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...

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 2
  • Thanks 2
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...