Post by CedSha » Tue Apr 01, 2025 11:14 pm

Hello there :)

Using OC V4.1.0.0

I made a simple backup of the DB then restore it which broke my website at the home page.
There I found the culprit module 'HTML Content'. Removing it manually from the oc_layout_module
solve the problem to display the main page. However I cannot access any more the module configuration
always got an error message. (I can however add a new one).

Code: Select all

	Error: Opencart\Admin\Model\Setting\Module::getModule(): Return value must be of type array, null returned 
	File: /var/www/magasin.exemple.net/sysad/model/setting/module.php 
	Line: 119 Backtrace: 0  

	File: /var/www/magasin.exemple.net/system/engine/loader.php 
	Line: 343 Class: Opencart\Admin\Model\Setting\Module Function: getModule Backtrace: 1  

	File: /var/www/magasin.exemple.net/system/engine/proxy.php 
	Line: 87 Class: Opencart\System\Engine\Loader Function: Opencart\System\Engine\{closure} Backtrace: 2  

	File: /var/www/magasin.exemple.net/extension/opencart/admin/controller/module/html.php 
	Line: 57 Class: Opencart\System\Engine\Proxy Function: __call Backtrace: 3  

	File: /var/www/magasin.exemple.net/system/engine/action.php 
	Line: 96 Class: Opencart\Admin\Controller\Extension\Opencart\Module\HTML Function: index Backtrace: 4  

	File: /var/www/magasin.exemple.net/system/framework.php 
	Line: 259 Class: Opencart\System\Engine\Action Function: execute Backtrace: 5  

	File: /var/www/magasin.exemple.net/sysad/index.php 
	Line: 20 Function: require_once 

Image


User avatar
New member

Posts

Joined
Mon Sep 18, 2023 1:01 am


Post by ADD Creative » Wed Apr 02, 2025 12:31 am

The backup is still broken in OpenCart 4.x. Could be this issue that was fixed in 3.0.x. https://github.com/opencart/opencart/issues/13706

Do you have a proper hosting backup you can restore from? If you you could try and fix your oc_module table.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by CedSha » Wed Apr 02, 2025 2:14 am

This is definitively the same mistake...
There Briuri user describe it well
After I removed the line break from the oc_module description string everything went to work well !

Image


User avatar
New member

Posts

Joined
Mon Sep 18, 2023 1:01 am

Who is online

Users browsing this forum: No registered users and 3 guests