Page 1 of 1

Warning: fread(): Length parameter must be greater than 0

Posted: Sat Sep 05, 2015 1:24 am
by bravobongo
Hi,

I'm getting this error on my install.

Warning: fread(): Length parameter must be greater than 0 in /home/site/public_html/system/library/cache/file.php on line 32

The lines mentioned read -

Code: Select all

	}

	public function set($key, $value) {
		$this->delete($key);

		$file = DIR_CACHE . 'cache.' . preg_replace('/[^A-Z0-9\._-]/i', '', $key) . '.' . (time() + $this->expire);

		$handle = fopen($file, 'w');

		flock($handle, LOCK_EX);

		fwrite($handle, serialize($value));

		fflush($handle);

		flock($handle, LOCK_UN);

		fclose($handle);
	}
Thanks for any help you can give. =)

Re: Warning: fread(): Length parameter must be greater than

Posted: Sun Sep 20, 2015 3:25 am
by cleansafi
Did you solve the issue because i have now with that same issue. Please someone give some light on to this.

Re: Warning: fread(): Length parameter must be greater than

Posted: Wed Oct 14, 2015 3:55 pm
by ruperi