Post by opensab677 » Tue Apr 03, 2018 5:13 pm

in my error log file:
2018-04-01 15:25:33 - PHP Warning: fread(): Length parameter must be greater than 0 in ......./system/library/cache/file.php on line 32.
So do I have to change something at line 32?
thanks

New member

Posts

Joined
Mon Sep 04, 2017 7:54 pm

Post by straightlight » Tue Apr 03, 2018 7:13 pm

Download this file from Github: https://github.com/opencart/opencart/bl ... e/file.php and clear your OC cache from the OC admin afterwards: viewtopic.php?f=176&p=718325#p718325 . See if that rectifies the issue.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Fabienlolo » Thu Sep 12, 2019 1:55 pm

OC: 3.0.2
theme: journal 2
url: www.vacacionandocancun.com/tours/
Hi,
just got the message in title on my OC website. Is the solution still valid for my own OC version?
It is not clearly mentioned but i guess, once you download the file, you just replace the older "file.php" one by this new one right? In /system/library/cache/?
So thanks to anyone who can confirm if the github file is the one for my OC version, and if i just replace it in my OC file system.
And if someone could tell, what may have fired up this warning as i have no clue, it would be great.
Thanks anyone again for you support

New member

Posts

Joined
Fri Jun 29, 2018 7:24 am
Location - Q.Roo, Mexico

Post by Fabienlolo » Fri Sep 13, 2019 3:16 am

Hi,
it seems that my problem got solved just as it appeared, all by itself. I guess it was server related, as did nothing about it apart from posting it here. I was about to install the "file.php" file from github mentionned in previous post, but when i checked the page again before doing it, it was all back to normal.
I am not sure i should add SOLVED in the title as i did not make any changes in my OC, and that it is not clearly written what to do with the github file even though it seems without saying. I believe what goes without saying, goes better saying it. Or writing it here in our case.
If anyone have an idea of what may fire up this warning, it could be some help i guess.
Cheers, and all the best for this OC community. Lots of sells.

New member

Posts

Joined
Fri Jun 29, 2018 7:24 am
Location - Q.Roo, Mexico

Post by CarlFogarty » Tue Aug 25, 2020 3:25 am

this might be helpful for someone

I had this error on v3, and it turned out that I was generating backups on of the site and the server ran out of space. When I deleted the older backups to create space the error went away.

Newbie

Posts

Joined
Wed Jun 24, 2020 7:16 pm

Post by siteadvice » Fri Aug 09, 2024 7:06 pm

As stated above, check your storage quota hasn't been exceeded.

inframes.com Website Design with Opencart, Wordpress, Lucee and bespoke application design and development


User avatar
New member

Posts

Joined
Mon Oct 24, 2011 8:12 pm
Who is online

Users browsing this forum: No registered users and 21 guests