Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Sign Up

Режим обслуживания


Recommended Posts

Здравствуйте. При включении режима обслуживания на сайте появляется ошибка:/
Fatal error: Uncaught Error: Call to a member function getExtensions() on null in /var/www/u1071755/data/www/blacksea.media/delivery/catalog/controller/common/header.php:73 Stack trace: #0 /var/www/u1071755/data/www/blacksea.media/delivery/system/storage/modification/system/engine/action.php(51): ControllerCommonHeader->index(Array) #1 /var/www/u1071755/data/www/blacksea.media/delivery/system/storage/modification/system/engine/loader.php(24): Action->execute(Object(Registry), Array) #2 /var/www/u1071755/data/www/blacksea.media/delivery/catalog/controller/common/maintenance.php(27): Loader->controller('common/header') #3 /var/www/u1071755/data/www/blacksea.media/delivery/system/storage/modification/system/engine/action.php(51): ControllerCommonMaintenance->index() #4 /var/www/u1071755/data/www/blacksea.media/delivery/system/engine/front.php(34): Action->execute(Object(Registry)) #5 /var/www/u1071755/data/www/blacksea.media/delivery/system/engine/front.php(29): Front->execute(Object(Action)) #6 /var/www/u1071755/data/www/bl in /var/www/u1071755/data/www/blacksea.media/delivery/catalog/controller/common/header.php on line 73


Вот 73 строка в header.php
$results = $this->model_extension_extension->getExtensions('total');

Проверил контроллер maintenance.php 
Код стандартный. В чем может быть причина?

Link to comment
Share on other sites


9 минут назад, REDDI сказал:

Вот 73 строка в header.php
$results = $this->model_extension_extension->getExtensions('total');

Проверил контроллер maintenance.php 
Код стандартный. В чем может быть причина?

 

В хэдере нет такого по-умолчанию

 

добавьте перед этой строкой

$this->load->model('extension/extension');

  • +1 1
Link to comment
Share on other sites

39 минут назад, spectre сказал:

 

В хэдере нет такого по-умолчанию

 

добавьте перед этой строкой

$this->load->model('extension/extension');

помогло. благодарю)

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
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.