Page 1 of 1

Massive errors in logs/error.txt

Posted: Wed Jan 18, 2012 1:56 am
by ogomo
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.

Re: Massive errors in logs/error.txt

Posted: Thu Jan 19, 2012 12:09 am
by jty
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 ?

Re: Massive errors in logs/error.txt

Posted: Thu Jan 19, 2012 1:26 am
by ogomo
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.

Re: Massive errors in logs/error.txt

Posted: Thu Jan 19, 2012 2:38 am
by tim_s
Have you tried to clear your vQmod cache and see if that corrects the issue?

Re: Massive errors in logs/error.txt

Posted: Thu Jan 19, 2012 2:48 am
by straightlight
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 ?

Re: Massive errors in logs/error.txt

Posted: Thu Jan 19, 2012 4:10 am
by ogomo
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.

Re: Massive errors in logs/error.txt

Posted: Sat Aug 25, 2012 1:57 am
by scd1982
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.