[ Поиск ] - [ Пользователи ] - [ Календарь ]
Полная Версия: Очень прошу помочь с ошибкой в Prestashop
Гость_Maksim
Всем добрый день.
Очень прошу помочь с ошибкой в движке Prestashop 1.5.4
Ни с того ни с сего стала появляться ошибка, когда пытаюсь зайти в список модулей.. Ошибка:

101

Fatal error: Call to undefined method stdClass::createData() in /home/mcadmin/public_html/store/classes/module/Module.php on line 144
[PrestaShop] Fatal error in module Module:
Call to undefined method stdClass::createData()

Никак е могу понять в чем проблема...
Очень прошу помочь...
Спасибо.

Вот кусок кода с того файла Module.php

/**
* Constructor
*
* @param string $name Module unique name
* @param Context $context
*/
public function __construct($name = null, Context $context = null)
{
// Load context and smarty
$this->context = $context ? $context : Context::getContext();
if (is_object($this->context->smarty))
$this->smarty = $this->context->smarty->createData($this->context->smarty);

// If the module has no name we gave him its id as name
if ($this->name == null)
$this->name = $this->id;

// If the module has the name we load the corresponding data from the cache
if ($this->name != null)
{
// If cache is not generated, we generate it
if (self::$modules_cache == null && !is_array(self::$modules_cache))
{
Гость_Maksim
строка, на которую ругается по середине кода:

$this->smarty = $this->context->smarty->createData($this->context->smarty);

Спасибо.
SlavaFr
по каким то причинам в объекте $this->context переменная smarty является stdClass и в свою очередь не имеет методы createData.


_____________
↓↓↓↓↓↓↓↓↓↓
ответ может быть здесь
или в mysql_error();
Быстрый ответ:

 Графические смайлики |  Показывать подпись
Здесь расположена полная версия этой страницы.
Invision Power Board © 2001-2025 Invision Power Services, Inc.