Post by mertdogan » Wed Oct 18, 2017 4:29 pm

I want to create a custom module for database product export for my private needs.

When i use

Code: Select all

$this->db->.... 
in a model function, it generates Error 500 with this error log:

Code: Select all

[18-Oct-2017 07:57:40 UTC] PHP Fatal error:  Call to a member function get() on null in /home/ekonim/public_html/system/engine/model.php on line 21
I moved this code to the controller, it runs without error. But when i want to access another model like:

Code: Select all

$this->load->model('tool/image');
$this->model_tool_image->resize($imgurl, 500, 500);
it generates again same error log.

How can i solve this problem?

Newbie

Posts

Joined
Wed Oct 18, 2017 4:22 pm

Post by straightlight » Tue Nov 14, 2017 4:51 am

- Opencart version?
- Could you provide a sample of your custom module so to see in details what you are trying to achieve with the database?

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: No registered users and 17 guests