Post by SenerK » Mon Mar 21, 2022 7:07 pm

Hello,

While it was running, Opencart user page gave this error. But I can login to the admin panel. User face does not open.

Code: Select all

[21-Mar-2022 13:20:09 Europe/Istanbul] PHP Fatal error:  Uncaught Exception: Error: Could not load model tool/image! in /home/xxxxxx/misssystem/modification/system/engine/loader.php:89
Stack trace:
#0 /home/xxxxxx/public_html/catalog/controller/extension/module/ptproducts.php(9): Loader->model('tool/image')
#1 /home/xxxxxx/misssystem/modification/system/engine/action.php(79): ControllerExtensionModulePtproducts->index(Array)
#2 /home/xxxxxx/misssystem/modification/system/engine/loader.php(48): Action->execute(Object(Registry), Array)
#3 /home/xxxxxx/public_html/catalog/controller/extension/module/ptlayoutbuilder.php(45): Loader->controller('extension/modul...', Array)
#4 /home/xxxxxx/misssystem/modification/system/engine/action.php(79): ControllerExtensionModulePtlayoutbuilder->index(Array)
#5 /home/xxxxxx/misssystem/modification/system/engine/loader.php(48): Action->execute(Object(Registry), Array)
#6 /home/xxxxxx/misssystem/modification/catalog/controller/common/content_top.php(92): Loader->controller('extension/modul...', Array)
#7 /home/ in /home/xxxxxx/misssystem/modification/system/engine/loader.php on line 89
Opencart Version 3.0.3.8

What could be the problem?

I'm waiting for your help.

Thanks.

Newbie

Posts

Joined
Wed Oct 09, 2019 3:21 am

Post by OSWorX » Mon Mar 21, 2022 7:15 pm

SenerK wrote:
Mon Mar 21, 2022 7:07 pm
What could be the problem?
The additional installed extension(s).

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by SenerK » Mon Mar 21, 2022 7:21 pm

Thanks for the answer.

But it was working with plugins. All of a sudden it happened without installing any extra extension(s).

Is it definitely an add-on?

Newbie

Posts

Joined
Wed Oct 09, 2019 3:21 am

Post by by mona » Mon Mar 21, 2022 7:33 pm

SenerK wrote:
Mon Mar 21, 2022 7:21 pm
Thanks for the answer.

But it was working with plugins. All of a sudden it happened without installing any extra plugins.

Is it definitely an add-on?
Maybe your modification file cleared .. but if you read the errors the “plug-ins’” are clearly stated.
Why not disable those extensions, clear your modifications and check yourself ?

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by JNeuhoff » Mon Mar 21, 2022 7:35 pm

Is it definitely an add-on?
Yes, most likely. See catalog/controller/extension/module/ptlayoutbuilder.php near line 9.

You should ask the extension author to fix it.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by SenerK » Mon Mar 21, 2022 7:44 pm

by mona wrote:
Mon Mar 21, 2022 7:33 pm
SenerK wrote:
Mon Mar 21, 2022 7:21 pm
Thanks for the answer.

But it was working with plugins. All of a sudden it happened without installing any extra plugins.

Is it definitely an add-on?
Maybe your modification file cleared .. but if you read the errors the “plug-ins’” are clearly stated.
Why not disable those extensions, clear your modifications and check yourself ?
Hello,

I understand you but the modules you mentioned are the main modules of the theme. If I turn them off, the theme files will not work anyway.

Newbie

Posts

Joined
Wed Oct 09, 2019 3:21 am

Post by by mona » Mon Mar 21, 2022 7:46 pm

well there is your answer - you must contact your theme developer.

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by SenerK » Mon Mar 21, 2022 7:54 pm

JNeuhoff wrote:
Mon Mar 21, 2022 7:35 pm
Is it definitely an add-on?
Yes, most likely. See catalog/controller/extension/module/ptlayoutbuilder.php near line 9.

You should ask the extension author to fix it.
It said line 45 of the module you mentioned. I am passing that code structure below.

Error Line:
/public_html/catalog/controller/extension/module/ptlayoutbuilder.php(45): Loader->controller('extension/modul...', Array)

Code: Select all

41                        if (isset($part[1])) {
42                                         $setting_info = $this->model_setting_module->getModule($part[1]);
43
44                                            if ($setting_info && $setting_info['status']) {
45                                                $module_data = $this->load->controller('extension/module/' . $part[0], $setting_info);
46
47                                                if ($module_data) {
48                                                   $module_in_col[] = $module_data;
49                                                }
50                                            }
51                                        }
52                                       $sub_col_info['info'] = $module_in_col;
53                                    }
54
55                                }
Error Line
/public_html/catalog/controller/extension/module/ptproducts.php(9): Loader->model('tool/image')

Code: Select all

4    public function index($setting) {
5        $this->load->language('plaza/module/ptproducts');
6
7        $this->load->model('catalog/product');
8        $this->load->model('plaza/catalog');
9        $this->load->model('tool/image');
10        $this->load->model('plaza/rotateimage');
11        $this->load->model('plaza/swatches');


Newbie

Posts

Joined
Wed Oct 09, 2019 3:21 am

Post by xxvirusxx » Mon Mar 21, 2022 7:57 pm

SenerK wrote:
Mon Mar 21, 2022 7:54 pm

9 $this->load->model('tool/image');
And the file is there?

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by SenerK » Mon Mar 21, 2022 7:59 pm

xxvirusxx wrote:
Mon Mar 21, 2022 7:57 pm
SenerK wrote:
Mon Mar 21, 2022 7:54 pm

9 $this->load->model('tool/image');
And the file is there?
If the file path is correct, yes there is image.php file here.

Code: Select all

/catalog/model/localisation/tool

Newbie

Posts

Joined
Wed Oct 09, 2019 3:21 am

Post by xxvirusxx » Mon Mar 21, 2022 8:03 pm

in /model/tool/image.php ....

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by SenerK » Mon Mar 21, 2022 8:14 pm

xxvirusxx wrote:
Mon Mar 21, 2022 8:03 pm
in /model/tool/image.php ....
When you asked about it, I realized an absurd situation that I wrote above!

I noticed that the tool folder is in localisation. Once I fixed that, everything was fine.

Thanks for your answers and help.

Newbie

Posts

Joined
Wed Oct 09, 2019 3:21 am

Post by straightlight » Mon Mar 21, 2022 8:22 pm

SenerK wrote:
Mon Mar 21, 2022 8:14 pm
xxvirusxx wrote:
Mon Mar 21, 2022 8:03 pm
in /model/tool/image.php ....
When you asked about it, I realized an absurd situation that I wrote above!

I noticed that the tool folder is in localisation. Once I fixed that, everything was fine.

Thanks for your answers and help.
Now that the issue has been solved, please add: [SOLVED] at the beginning of the subject line on your first post.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: khnaz35, sidclel and 69 guests