Community Forums

[solved][1.4.8b] PHP Warning: fread() after install 2 mods

Support for Modules & Sideboxes

[solved][1.4.8b] PHP Warning: fread() after install 2 mods

Postby mmrvos » Fri Aug 27, 2010 8:03 pm

Hi guys,

First of all thanx for amazing shop...it is very clean and with so many possibilities...thanx a lot... i already buy Mega options and Option Price Update because i am so loving this app...

Now,i have problem with my opencart...

I have opencart 1.4.8b and template default2...it was working very good,and than i installed Mega Option and Option Price Update...Those mods working also amazingly good...i love it,but after this installation i lost possibility to edit order in admin panel...when i click on "edit" beside some order i got empty page and in error log i get this message :

PHP Warning: fread() [<a href='function.fread'>function.fread</a>]: Length parameter must be greater than 0 in /customers/httpd.www/webwinkel/system/library/cache.php on line 27


...and i saw that if i click on module "Offers" and "Recommended" i also get same message and empty page...

Would you be so kind to help me please?

Best regards

M.Mrvos
Last edited by mmrvos on Fri Sep 10, 2010 7:34 am, edited 3 times in total.
mmrvos
 
Posts: 26
Joined: Fri Aug 27, 2010 7:18 pm

Re: [1.4.8b] PHP Warning: fread() after install 2 mods

Postby i2Paq » Fri Aug 27, 2010 8:11 pm

These 2 mods, Mega Option and Option Price Update, I think you mean: Options Plus and Option Price Update made by Qphoria?

I have them running on 1.4.8b without issues so you must have done something wrong with adding/changing code.
Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.

First Things First: Opencart Check List.
Documentation: Our Documentation section.
BUGs?: Known BUGS for All OC Versions.

Problemen met de BTW?: [How to] BTW + Verzend & betaalmethodes.
User avatar
i2Paq
Global Moderator
 
Posts: 9758
Joined: Mon Nov 09, 2009 11:00 am
Location: Winkel - The Netherlands

Re: [1.4.8b] PHP Warning: fread() after install 2 mods

Postby mmrvos » Fri Aug 27, 2010 8:27 pm

Hi Thanx a lot for fast answer...

Global Mega Options and Option Price Update are 2 of mods that i added and yes,i think they are made buy Qphoria (for Option Price Update i am sure) but Global Mega Options i have buy on other website so i am not sure (website where i buy: http://www.alreadymade.com/shop/index.p ... duct_id=82 )

This was clean install and i am bussy with adding of products ( my shop is with about 7000 articles when i am finished),so i really need to fix this problem...an new clean install is not an option because i have used many many hours on this to make it working as i want and to add products...

It could be that i messed up some code because i edited lot of code to make it as i like...but i can't remember that i changed something before i added those 2 mods,thats why i think it have something to do with it...

Can you help me to search my error please? where shuld i look with this problem ?

Thanx in advance
M.Mrvos
mmrvos
 
Posts: 26
Joined: Fri Aug 27, 2010 7:18 pm

Re: [1.4.8b] PHP Warning: fread() after install 2 mods

Postby i2Paq » Fri Aug 27, 2010 8:52 pm

I have a feeling that these 2 mods do not mix.
Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.

First Things First: Opencart Check List.
Documentation: Our Documentation section.
BUGs?: Known BUGS for All OC Versions.

Problemen met de BTW?: [How to] BTW + Verzend & betaalmethodes.
User avatar
i2Paq
Global Moderator
 
Posts: 9758
Joined: Mon Nov 09, 2009 11:00 am
Location: Winkel - The Netherlands

Re: [1.4.8b] PHP Warning: fread() after install 2 mods

Postby Qphoria » Fri Aug 27, 2010 8:58 pm

They do not. for 1.4.9 I may redesign it again to try to improve compatibility with it but not sure yet
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18200
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: [1.4.8b] PHP Warning: fread() after install 2 mods

Postby mmrvos » Fri Aug 27, 2010 9:12 pm

Thanx for answers guys...
Nice to have you here in this thread Qphoria :)

What you guys suggest ?

What shuld i do ?

Thanx in advance

M.Mrvos
mmrvos
 
Posts: 26
Joined: Fri Aug 27, 2010 7:18 pm

Re: [1.4.8b] PHP Warning: fread() after install 2 mods

Postby i2Paq » Sat Aug 28, 2010 11:43 am

As I have the 2 mods made by Qphoria and they work together so my suggestions is that you get the Options Plus as well to work with the Option Price Update you already have.

Or you leave the Option Price Update unused but I relay like it when having Options.
Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.

First Things First: Opencart Check List.
Documentation: Our Documentation section.
BUGs?: Known BUGS for All OC Versions.

Problemen met de BTW?: [How to] BTW + Verzend & betaalmethodes.
User avatar
i2Paq
Global Moderator
 
Posts: 9758
Joined: Mon Nov 09, 2009 11:00 am
Location: Winkel - The Netherlands

Re: [1.4.8b] PHP Warning: fread() after install 2 mods

Postby mmrvos » Mon Aug 30, 2010 10:32 am

Well, mega options changed my sql database also,so i am not sure if it's everything going to work ok after uninstallation of mega options and do i get options that i already made with this mod back or i need to make them all again with options plus ?

Is there any mod or addon for order edit that i maybe can install on top of everything so that my opencart became fully usable without uninstallation of mega options ?

Thanx in advance

M.Mrvos
mmrvos
 
Posts: 26
Joined: Fri Aug 27, 2010 7:18 pm

Re: [1.4.8b] PHP Warning: fread() after install 2 mods

Postby JAY6390 » Mon Aug 30, 2010 10:46 am

Why not just disable the cache? Open
Code: Select all
/system/library/cache.php

find
Code: Select all

                  $handle 
fopen($file'r');
                  
$cache fread($handlefilesize($file)); 

and change it to
Code: Select all
                  $handle fopen($file'r');
                  if(!
filesize($file)) return false;
                  
$cache fread($handlefilesize($file)); 

That should fix it. To be honest, just deleting any files in /system/cache/ with a file size of 0 should fix this too
ImageImageImage

Better Product SEO URL's - Perfectly structured product links
Better Category SEO URL's - Give subcategories the same SEO keyword
SEO URL's Route Editor - Fix all of your index.php links


Image
User avatar
JAY6390
 
Posts: 4634
Joined: Wed May 26, 2010 3:47 pm
Location: United Kingdom

Re: [1.4.8b] PHP Warning: fread() after install 2 mods

Postby mmrvos » Tue Aug 31, 2010 11:08 am

@JAY6390

I have tried your possibility but no change...page gets empty and with same message...

Thanx for try JAY

If you have any other solution i would be glad to try it....

1.4.9 is out... can i just upgrade or i need to to something before...?i am hoping toget it fixed with new version

Thanx in advance

M.Mrvos
mmrvos
 
Posts: 26
Joined: Fri Aug 27, 2010 7:18 pm

Re: [1.4.8b] PHP Warning: fread() after install 2 mods

Postby mmrvos » Sun Sep 05, 2010 9:29 pm

please guys,i need help with this...i still didn't fixed... my shop is not fully working with this problems....
Anyone any idea ?

Thank you in advance

M.Mrvos
mmrvos
 
Posts: 26
Joined: Fri Aug 27, 2010 7:18 pm

Re: [1.4.8b] PHP Warning: fread() after install 2 mods

Postby mmrvos » Mon Sep 06, 2010 12:28 pm

Have anyone a clue how could i fix this ?

I have choose for opencart over ecommerce because of comunity and now i am stuck with something that no one can fix because i buyed some modules ? Come one developers...help me fix this please...

Thanx in advance

M.Mrvos
mmrvos
 
Posts: 26
Joined: Fri Aug 27, 2010 7:18 pm

Re: [1.4.8b] PHP Warning: fread() after install 2 mods

Postby mmrvos » Wed Sep 08, 2010 7:54 am

Would developer be so kind to leave me message here if this is possible to fix or not because i need this part of shop...it is very important...

Thanx in advance

M.Mrvos
mmrvos
 
Posts: 26
Joined: Fri Aug 27, 2010 7:18 pm

[solved]Re: [1.4.8b] PHP Warning: fread() after install 2 mo

Postby mmrvos » Fri Sep 10, 2010 7:33 am

Ok,it is solved...

i tried everything but no results...so i upgraded to 1.4.9.1...it is working great again...i expected to have to fix many many things in my mods but actualy everything worked at ones...amazing work guys...thanx a lot

Now...sinds i had problems with Mega option and Price update conflict modules... i have buy Option Plus and Price update...both from Qphoria...

Price update is working great like in 1.4.8b,but Option Plus not...i am getting empty page if i wanna edit module (i can activate it in extension/module,but can not edit it (to install it automaticly)...

I have opencart 1.4.9.1 (upgraded from 1.4.8b)

Do i need to install it manualy is it going to work or i have again some wierd unfixable problem ?

Thanx for great work guys

M.Mrvos
mmrvos
 
Posts: 26
Joined: Fri Aug 27, 2010 7:18 pm


Return to Modules

Who is online

Users browsing this forum: spycentre and 11 guests

Hosted by Arvixe Web Hosting