This is the error:
Notice: Undefined variable: vqmod in /home/nnnnn/public_html/nnnnnn/vqmod/vqcache/vq2-system_engine_controller.php on line 76
Fatal error: Call to a member function modCheck() on a non-object in /home/nnnnn/public_html/nnnnn/vqmod/vqcache/vq2-system_engine_controller.php on line 76
I do have a lot of other vqmods installed but the rest of the site works, so I don't think it has to do with the mods but i could be wrong. I do have openstock and openbaypro running on the site.
I've searched all over the forums and Google and had no luck finding any solution to fix it.
Any thoughts / suggestions would be greatly appreciated.
DL
This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.
Thanks!
DL
This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.
Thanks!
Code: Select all
Fatal error: Call to a member function modCheck() on a non-object in /home/mysite/public_html/vqmod/vqcache/vq2-system_engine_controller.php on line 56
Yesterday I installed new 1.5.5.1 (july 22 2013, sha1:99e5b9) with newest vqmod and I just noticed I can't access order details.
Any workarounds?
walkinparts wrote:I have a similar problem. I just upgraded to 1.5.5.1 and re-installed VQMod. I can still edit an order but when I try and view it, I get:Code: Select all
Fatal error: Call to a member function modCheck() on a non-object in /home/mysite/public_html/vqmod/vqcache/vq2-system_engine_controller.php on line 56
That's basically the same issue I had. Can you roll your site back to an earlier version? I don't know why they've put this new version as the main download with such an issue at hand. I know the code causing the error but I ran out of time and patience to try and solve it.
DL
This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.
Thanks!
I deleted every cache file I had (browser and website) and it didn't change it. It was only causing an error for one page, but a very important page!butte wrote:Going back to the top here, it is possible that not all of the .xml are getting along together, but it's also possible that this (these) raise need just to flush the /vqmod/vacache/ and the /system/cache/ files so that OC isn't remembering anything, and for good measure also the browser's cache. The combination of cache files can raise no incident for a while and then suddenly make mincemeat of it all. Barring that, slipping the last few .xml out of the way into a setaside/ subdir in order to retry them one at a time may help to find the cause(s). (Cache files can likewise be lipped into a setaside/ subdir as self-same backups)
DL
This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.
Thanks!
protected function hasAction($child, $args = array()) {
$action = new Action($child, $args);
if (file_exists($action->getFile())) {
require_once($action->getFile());
$class = $action->getClass();
$controller = new $class($this->registry);
if(method_exists($controller, $action->getMethod())){
return true;
}else{
return false;
}
} else {
trigger_error('Error: Could not load controller ' . $child . '!');
exit();
}
}
DL
This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.
Thanks!
SIlly as this may be, I wonder if there's a difference, in this instance, between require_once and require, or between "}else{" and "} else {" before it "Could not load controller" and stopped. If so, then seems most likely caused by "}else{" for syntax. Quick edits to lop _once and insert spaces for trial would say.
I don't see anything in (;;) or not in (;) the snippet to cause the Semicolon Monster to attack.
All I know is that I'm not going to risk the update on the site again and spend all the time messing with it! I was up all night trying to figure it out (that probably didn't help because I was falling asleep).butte wrote:Since it's fussing about the same line 76 over both "Undefined variable" and fatal call to function on non-object, specifically in "vqcache/vq2-system_engine_controller.php" on line 76, I'd hoped that the cache did it, but seems not and is affecting "only" view order.
SIlly as this may be, I wonder if there's a difference, in this instance, between require_once and require, or between "}else{" and "} else {" before it "Could not load controller" and stopped. If so, then seems most likely caused by "}else{" for syntax. Quick edits to lop _once and insert spaces for trial would say.
I don't see anything in (;;) or not in (;) the snippet to cause the Semicolon Monster to attack.
DL
This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.
Thanks!
DL
This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.
Thanks!
https://github.com/opencart/opencart/bl ... roller.php
This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.
Thanks!
Edit vqmod/xml/vqmod_opencart.xml
For <file name="system/engine/controller.php">
Change:
Code: Select all
<search position="before" index="1"><![CDATA[$vqmod->modCheck($action->getFile()]]></search>
Code: Select all
<search position="before"><![CDATA[if (file_exists($vqmod->modCheck($action->getFile()))) {]]></search>
pprmkr wrote:New function hasAction in system/engine/controller.php missing global $vqmod;
Edit vqmod/xml/vqmod_opencart.xml
For <file name="system/engine/controller.php">
Change:Into:Code: Select all
<search position="before" index="1"><![CDATA[$vqmod->modCheck($action->getFile()]]></search>
Code: Select all
<search position="before"><![CDATA[if (file_exists($vqmod->modCheck($action->getFile()))) {]]></search>
Thanks for the insight. I wish I had this the other day but better late than never. I might attempt the upgrade again.
Thanks,
DL
This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.
Thanks!
butte wrote:If pprmkr's solution didn't work for you while you've been quiet since, cwswebdesign, you might try backstepping to a known good 1.5.5.1 issue and to a known good vqmod issue or version. SInce you went for the very newest of both, but didn't have this excitement earlier on, reverting will presumably put you where you wanted to be.
I did go back to 1.5.5.1 for now.
DL
This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.
Thanks!
Thanks @pprmkr you saved my day!pprmkr wrote:New function hasAction in system/engine/controller.php missing global $vqmod;
Edit vqmod/xml/vqmod_opencart.xml
For <file name="system/engine/controller.php">
Change:Into:Code: Select all
<search position="before" index="1"><![CDATA[$vqmod->modCheck($action->getFile()]]></search>
Code: Select all
<search position="before"><![CDATA[if (file_exists($vqmod->modCheck($action->getFile()))) {]]></search>
I saw the new function 'hasAction' but didn't know this could be solved so easy, with no updates.
Andrei
andrei.opencart[at]yahoo.com
Themes and Extensions
Postby pprmkr » Thu Jul 25, 2013 12:12 pm
New function hasAction in system/engine/controller.php missing global $vqmod;
Edit vqmod/xml/vqmod_opencart.xml
For <file name="system/engine/controller.php">
Change:
Code: Select all
<search position="before" index="1"><![CDATA[$vqmod->modCheck($action->getFile()]]></search>
Into:
Code: Select all
<search position="before"><![CDATA[if (file_exists($vqmod->modCheck($action->getFile()))) {]]></search>
Users browsing this forum: No registered users and 26 guests