• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] i have got some error

Started by star top,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

star topTopic starter

hi

i any body help me

thanks

Warning: glob() has been disabled for security reasons in /home/breakcom/public_html/lib/class.ezsql.php on line 322

Warning: Invalid argument supplied for foreach() in /home/breakcom/public_html/lib/class.ezsql.php on line 322

Warning: glob() has been disabled for security reasons in /home/breakcom/public_html/lib/class.ezsql.php on line 322

Warning: Invalid argument supplied for foreach() in /home/breakcom/public_html/lib/class.ezsql.php on line 322


  •  

PHPVibe A.

It says your server has the glob() function disabled, glob() is a file searcher in folders http://ro1.php.net/glob
I'm guessing you have this when clearing cache?

If it's permanent and hosting won't enable it , open /home/xxxx/public_html/lib/class.ezsql.php

and change
/**********************************************************************
		*  DELETE phpVIBE's Cache
		*/
		function clean_cache() {
        $cache_dir = ABSPATH.'/cache/*';
		$log = array();
        foreach (glob($cache_dir."{*.cache*}", GLOB_BRACE) as $filename)  {
        $log[] = $this->remove_file($filename); 
		}
		return $log;
		}


to

/**********************************************************************
		*  DELETE phpVIBE's Cache
		*/
		function clean_cache() {
	//nothing
		}


But you won't be able to clear cache and that may give some headaches.
This is the first time in my life I see glob() disabled.

star topTopic starter

Quote from: Alexander on
It says your server has the glob() function disabled, glob() is a file searcher in folders http://ro1.php.net/glob
I'm guessing you have this when clearing cache?

If it's permanent and hosting won't enable it , open /home/xxxx/public_html/lib/class.ezsql.php

and change
/**********************************************************************
		*  DELETE phpVIBE's Cache
		*/
		function clean_cache() {
        $cache_dir = ABSPATH.'/cache/*';
		$log = array();
        foreach (glob($cache_dir."{*.cache*}", GLOB_BRACE) as $filename)  {
        $log[] = $this->remove_file($filename); 
		}
		return $log;
		}


to

/**********************************************************************
		*  DELETE phpVIBE's Cache
		*/
		function clean_cache() {
	//nothing
		}


But you won't be able to clear cache and that may give some headaches.
This is the first time in my life I see glob() disabled.

thanks

i have enabled glob and chmod

  •  

Similar topics (7)