Page 1 of 1

Fatal Error controller.php on line 10

Posted: Sun Jan 31, 2016 11:14 pm
by andyd92
Hi all

I setting up a new Opencart 2.1.0.1 site and have installed a few extensions and the journal theme.

One of the extensions (which imports products / cats from a supplier) hangs. The extension error log shows this

PHP Fatal error: Call to a member function get() on a non-object in ******/public_html/t4nb/system/engine/controller.php on line 10

I have tried replacing the controller.php with the original in case it was modified by an extension but still does not work.

Any ideas??

Thanks

Andy

Re: Fatal Error controller.php on line 10

Posted: Sun Jan 31, 2016 11:18 pm
by OSWorX
This controller file calls only those function requested by the extension.
Replacing the file will help .. nothing.
Either contact the author of that extension to fix the bug or check the extension controller by yourself and see what is called there.

Re: Fatal Error controller.php on line 10

Posted: Mon Feb 01, 2016 12:59 am
by andyd92
Hi,

Thanks for the reply.

The strange thing is I installed the extension which hangs onto a clean install of Opencart 2.1.0.1 and it works fine.

So I guess there must be a conflict with another extension or the theme?

Unfortunately the extension author simply told me my Opencart install must be corrupt, which is not correct as everything else is working fine. They not being much help other than that.

If I search the site for the call, what am I looking for exactly. Could it just be typo in code?

Sorry very advanced at this.....

Re: Fatal Error controller.php on line 10

Posted: Mon Feb 01, 2016 9:38 am
by Randem
Hi andyd92,

Unfortunately there is no quality control in the OpenCart extension store and many extension are flawed due t lack of good testing so you purchase them at your own risk and as you know support may be fleeting after they get your money...

Every third party theme I have tested is flawed. Aslo check to see if the extension & theme that you are using is for the current version of OpenCart that you are using.

More Helpful Information

Re: Fatal Error controller.php on line 10

Posted: Sat Apr 23, 2016 3:34 pm
by napok
I have the same problem.
What was the solution, please?

Re: Fatal Error controller.php on line 10

Posted: Sun Apr 24, 2016 4:11 am
by Randem
napok wrote:I have the same problem.
What was the solution, please?
Testing... There are no shortcuts. Remove your theme and test. remove your extentions and test. Test, Test and test again until you find the problem gone and it will be the solution.

2016 - Why are there so many Terrible themes?!
Remove item issues in Checkout Cart when changing to third party themes

That should help...