Post by anastamir » Sat Apr 02, 2011 6:48 pm

hi,
after upgrade to new version,after open my website ,in the top show this error :

Warning: touch() has been disabled for security reasons in /home/pixelchn/public_html/system/library/cache.php on line 14Warning: touch() has been disabled for security reasons in /home/pixelchn/public_html/system/library/cache.php on line 14Warning: touch() has been disabled for security reasons in /home/pixelchn/public_html/system/library/cache.php on line 14Warning: touch() has been disabled for security reasons in /home/pixelchn/public_html/system/library/cache.php on line 14Warning: touch() has been disabled for security reasons in /home/pixelchn/public_html/system/library/cache.php on line 14Warning: touch() has been disabled for security reasons in /home/pixelchn/public_html/system/library/cache.php on line 14Warning: touch() has been disabled for security reasons in /home/pixelchn/public_html/system/library/cache.php on line 14Warning: touch() has been disabled for security reasons in /home/pixelchn/public_html/system/library/cache.php on line 14Warning: touch() has been disabled for security reasons in /home/pixelchn/public_html/system/library/cache.php on line 14Warning: touch() has been disabled for security reasons in /home/pixelchn/public_html/system/library/cache.php on line 14Warning: touch() has been disabled for security reasons in /home/pixelchn/public_html/system/library/cache.php on line 14


but after click to another like this error not show,but for open some page again show this error.
Last edited by i2Paq on Sat Apr 02, 2011 11:55 pm, edited 1 time in total.
Reason: Split, renamed and moved

New member

Posts

Joined
Wed Oct 27, 2010 7:38 pm

Post by mcamca » Sat Apr 02, 2011 7:22 pm

anastamir wrote:hi,
after upgrade to new version,after open my website ,in the top show this error :
---
but after click to another like this error not show,but for open some page again show this error.
------------------
Have'nt the foggiest whats causing this!
But try this:
In Admin/System/Server
Set "Display Errors" to: No
Make sure that "Log errors" is set to Yes
Errors should stop displaying on your store but you'll be able to check whats happening in:
Admin/System/Error Logs

This is really a question for Qphoria or Daniel.
-------------------

Active Member

Posts

Joined
Fri Aug 06, 2010 5:57 pm

Post by jang1200 » Sat Apr 02, 2011 8:34 pm

anastamir wrote:Warning: touch() has been disabled for security reasons in /home/pixelchn/public_html/system/library/cache.php on line 14

Code: Select all

<?php
final class Cache {
	private $expire = 7200;

	public function get($key) {
		$files = DIR_CACHE . 'cache.' . $key;

		if(file_exists($files) AND filemtime($files) > (time() - $this->expire)) {
			$cache = file_get_contents($files);
			clearstatcache();
			return unserialize($cache);
		}
	}

	public function set($key, $value) {
		$file = DIR_CACHE . 'cache.' . $key;
		file_put_contents($file, serialize($value));
	}

	public function delete($key) {
		$files = glob(DIR_CACHE . 'cache.' . $key . '*');

		if ($files) {
			foreach ($files as $file) {
				if(is_writable($file)) {
					file_put_contents($file, '');
					@unlink($file);
					clearstatcache();
				}
			}
		}
	}

}

$email = filter_var(filter_var($email, FILTER_SANITIZE_EMAIL), FILTER_VALIDATE_EMAIL);
if($email === false) {
// Houston, we have a problem....
}


Newbie

Posts

Joined
Mon Apr 12, 2010 4:17 pm

Post by i2Paq » Sat Apr 02, 2011 11:57 pm

From what version did you upgrade?
Did you follow the upgrade instructions.
Please check your file and folder rights.
Did you upload all the correct files?

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands
Who is online

Users browsing this forum: No registered users and 4 guests