Hi, I'm receiving the following error a lot in my system/logs/error.txt file:
2012-01-17 16:00:10 - PHP Warning: require_once(/home/mydomain/public_html/) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/mydomain/public_html/vqmod/vqcache/vq2-system_engine_front.php on line 43
Any ideas why this keeps happening? The error.txt file is already over 4MB, and it appears to only have this error repeated over and over.
2012-01-17 16:00:10 - PHP Warning: require_once(/home/mydomain/public_html/) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/mydomain/public_html/vqmod/vqcache/vq2-system_engine_front.php on line 43
Any ideas why this keeps happening? The error.txt file is already over 4MB, and it appears to only have this error repeated over and over.
The full code from that file is:
Line 43 is the line that has
It's about 2/3 of the way down the file.
Code: Select all
<?php
final class Front {
protected $registry;
protected $pre_action = array();
protected $error;
public function __construct($registry) {
$this->registry = $registry;
}
public function addPreAction($pre_action) {
$this->pre_action[] = $pre_action;
}
public function dispatch($action, $error) {
$this->error = $error;
foreach ($this->pre_action as $pre_action) {
$result = $this->execute($pre_action);
if ($result) {
$action = $result;
break;
}
}
while ($action) {
$action = $this->execute($action);
}
}
private function execute($action) {
$file = $action->getFile();
$class = $action->getClass();
$method = $action->getMethod();
$args = $action->getArgs();
$action = '';
global $vqmod; $file = $vqmod->modCheck($file);
if (file_exists($file)) {
require_once($file);
$controller = new $class($this->registry);
if (is_callable(array($controller, $method))) {
$action = call_user_func_array(array($controller, $method), $args);
} else {
$action = $this->error;
$this->error = '';
}
} else {
$action = $this->error;
$this->error = '';
}
return $action;
}
}
?>
Code: Select all
require_once($file);
Have you tried to clear your vQmod cache and see if that corrects the issue?
Tim S
OpenCart Tutorials
vQmod Extension to remove "Powered By" in Footer
This error originates from an XML file which has an error in the code. This has nothing to do with the VQMod constructor. The error you see is what is being returned from that targeted XML. If this isn't a paid contribution, could you upload your XML file as an attachment ?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I assume you mean one of the xml files in the /vqmod/xml/ folder, correct?straightlight wrote:This error originates from an XML file which has an error in the code. This has nothing to do with the VQMod constructor. The error you see is what is being returned from that targeted XML. If this isn't a paid contribution, could you upload your XML file as an attachment ?
If so, then I did pay for it, so I wouldn't want to post it here. Although now that I'm looking at it, it seems as if there is an update to it, so maybe updating the file will fix the problem.
I have had the same error in my error log:
I have 4 different files in the vqmod/xml folder, so I don't know if maybe 3 of them aren't working correctly?
What file is it trying to find anyhow? My best guess is /system/engine/front.php, which I have on my site, so it doesn't make sense why it produces the error.
However, I get it three times per page view. I tested this by first clearing my error log (this is all that shows up in the log), then refreshing my homepage, and finally refreshing the error log. For the one refresh, I have 3 identical errors. 6 errors if I refresh twice, etc, etc.No such file or directory in /home/mydomain/public_html/vqmod/vqcache/vq2-system_engine_front.php on line 43
I have 4 different files in the vqmod/xml folder, so I don't know if maybe 3 of them aren't working correctly?
What file is it trying to find anyhow? My best guess is /system/engine/front.php, which I have on my site, so it doesn't make sense why it produces the error.
I usually forget to mention I'm using OC v1.4.9.4
Who is online
Users browsing this forum: No registered users and 68 guests