Post by ralphstirrat » Mon Jun 12, 2017 8:10 pm

Hi

I'm getting this error when trying to edit products (2.3.0.2)

Code: Select all

Fatal error: Call to a member function resize() on null in ***/vqmod/vqcache/vq2-system_storage_modification_admin_controller_catalog_product.php on line 1426
Line 1426 is

Code: Select all

'thumb'      => $this->model_tool_image->resize($image, 100, 100),

http://colbrook.co.uk


Active Member

Posts

Joined
Wed Aug 29, 2012 7:53 pm

Post by DeluxeEssentials » Mon Oct 30, 2017 12:57 pm

Did you get any response on this? I would be very intersted to know what the go is. I have no images on this product and I get this error.
Fatal error: Call to a member function resize() on null in /home/dessent/public_html/opencart/vqmod/vqcache/vq2-admin_controller_catalog_product.php on line 1180


Posts

Joined
Mon Oct 30, 2017 12:54 pm

Post by straightlight » Tue Oct 31, 2017 4:03 am

VQ2 errors are extension errors, not from the core of Opencart.

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

Post by ralphstirrat » Tue Oct 31, 2017 4:56 pm

I can't remember how I solved this problem, probably reinstalled any extensions and checked all file permissions.

http://colbrook.co.uk


Active Member

Posts

Joined
Wed Aug 29, 2012 7:53 pm

Post by gellieann3 » Thu Feb 10, 2022 8:30 am

If anyone encounters this error again, it's probably because the tool model was not loaded. So you need this:

Code: Select all

$this->load->model('tool/image');
before this:

Code: Select all

$this->model_tool_image->resize($image, 100, 100)

Newbie

Posts

Joined
Mon Sep 03, 2018 10:48 am
Who is online

Users browsing this forum: No registered users and 141 guests