Status
Not open for further replies.

Mick

Customer
Getting the following Errors in my php log - not loads but quite a few...

################
[06-Mar-2014 18:38:38 Europe/London] PHP Warning: require(/forum/dbtech/vboptimise/templatecache/downloads2_postbit-94.php): failed to open stream: No such file or directory in /forum/dbtech/vboptimise_pro/hooks/template_render_output.php on line 22

[06-Mar-2014 18:38:38 Europe/London] PHP Fatal error: require(): Failed opening required '/forum/dbtech/vboptimise/templatecache/downloads2_postbit-94.php' (include_path='.:/usr/local/lib/php') in /forum/dbtech/vboptimise_pro/hooks/template_render_output.php on line 22
################

Template Render Output PHP file
PHP:
<?php
if ($vbulletin->options['vbo_cache_templates_filesystem'])
{
	// use legacy postbit if necessary
	$tmpl = ($vbulletin->options['legacypostbit'] AND $this->template == 'postbit') ? 'postbit_legacy' : $this->template;

	if (file_exists(DIR . '/dbtech/vboptimise/templatecache/' . $tmpl . '-' . STYLEID . '.php'))
	{
		// We have our template
		$actioned = true;

		if (!isset(self::$template_usage[$this->template]))
		{
			self::$template_usage[$this->template] = 1;
		}
		else
		{
			self::$template_usage[$this->template]++;
		}

		// Require our template file
		require(DIR . '/dbtech/vboptimise/templatecache/' . $tmpl . '-' . STYLEID . '.php');

		// Trick the eval into not degrading performance
		$template_code = '$final_rendered = $final_rendered;';
	}
}
?>

LINE 22:
require(DIR . '/dbtech/vboptimise/templatecache/' . $tmpl . '-' . STYLEID . '.php');
 
That can happen if the cache is flushed (either manually or automatically) between the file exists check and the actual require.
 
Status
Not open for further replies.

Legacy vB Optimise

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
1,968
Customer rating
0.00 star(s) 0 ratings
Back
Top