Post by ogomo » Wed Jan 18, 2012 1:56 am

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.

New member

Posts

Joined
Thu Aug 04, 2011 1:35 am

Post by jty » Thu Jan 19, 2012 12:09 am

ogomo wrote:No such file or directory in /home/mydomain/public_html/vqmod/vqcache/vq2-system_engine_front.php on line 43
what's line 43 in that file say ?

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by ogomo » Thu Jan 19, 2012 1:26 am

The full code from that file is:

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;
	}
}
?>
Line 43 is the line that has

Code: Select all

require_once($file);
It's about 2/3 of the way down the file.

New member

Posts

Joined
Thu Aug 04, 2011 1:35 am

Post by tim_s » Thu Jan 19, 2012 2:38 am

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


User avatar
New member

Posts

Joined
Thu Jan 19, 2012 1:40 am

Post by straightlight » Thu Jan 19, 2012 2:48 am

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


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ogomo » Thu Jan 19, 2012 4:10 am

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 ?
I assume you mean one of the xml files in the /vqmod/xml/ folder, correct?
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.

New member

Posts

Joined
Thu Aug 04, 2011 1:35 am

Post by scd1982 » Sat Aug 25, 2012 1:57 am

I have had the same error in my error log:
No such file or directory in /home/mydomain/public_html/vqmod/vqcache/vq2-system_engine_front.php on line 43
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.

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


New member

Posts

Joined
Tue Mar 27, 2012 3:57 am
Who is online

Users browsing this forum: No registered users and 51 guests