Post by shoo002 » Thu Jun 10, 2010 3:49 am

Hello all,

Not sure if its something i've done or if others are having the same issue but please could someone help with the following errors i'm receiving. I followed the upgrade.txt and got the success message.

admin-sales-orders then i click [edit] on any of the orders and i get this error message

Warning: fread() [function.fread]: Length parameter must be greater than 0 in /home/brockha1/public_html/system/library/cache.php on line 27
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 4361865 bytes) in /home/brockha1/public_html/system/library/cache.php on line 43


and the following error when i click admin-sales-mail

Warning: fread() [function.fread]: Length parameter must be greater than 0 in /home/brockha1/public_html/system/library/cache.php on line 27
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 4730150 bytes) in /home/brockha1/public_html/system/library/cache.php on line 43


Also the import export module does not show up it says undefined variable in the admin-setting dropdown

Hope someone can help

Thanks
Stewart

Active Member

Posts

Joined
Sat Jul 04, 2009 9:40 pm


Post by Qphoria » Thu Jun 10, 2010 3:53 am

Looks like your cache folder is not writable. Set it to 755 or 777 depending on what your server requires.
Do the same for
system/logs
image
image/data
image/cache
image/data/cache (if exists)
download


Import/Export will likely need to be updated for it to work as there are new product fields

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by shoo002 » Thu Jun 10, 2010 4:02 am

thanks for your reply Q.

All those files that you have listed seem to be set to 755 permissions already.

Any more suggestions Q

Thanks
Stewart

Active Member

Posts

Joined
Sat Jul 04, 2009 9:40 pm


Post by Qphoria » Thu Jun 10, 2010 4:06 am

its a strange issue. It looks like it is trying to read an empty cache file. Try deleting all cache files from that directory (Don't delete the index.html file tho)

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by shoo002 » Thu Jun 10, 2010 4:13 am

I've deleted all files from the system-cache except system-cache/index.html

I'm sorry Q but i'm still receiving the same errors. Odd that no one has reported the same errors.

Thanks so much
Stewart

Active Member

Posts

Joined
Sat Jul 04, 2009 9:40 pm


Post by shoo002 » Fri Jun 11, 2010 1:43 am

any other ideas on how to get round this problem.

Active Member

Posts

Joined
Sat Jul 04, 2009 9:40 pm


Post by akarikuu » Fri Jun 11, 2010 10:38 pm

Same Problem here.

But i did not upgrade, its a fresh install, with about 5.200 Products.

Newbie

Posts

Joined
Sat Jun 05, 2010 3:53 pm

Post by i2Paq » Sat Jun 12, 2010 12:40 am

akarikuu wrote:Same Problem here.

But i did not upgrade, its a fresh install, with about 5.200 Products.
Fresh install?

And how did you add the 5200 products?


As this error also sometimes occur to PrestaShop installations try to add the following to the system\startup.php, arround line 14.

Code: Select all

ini_set('memory_limit','-1');
Att. I'm not sure if this is the right way to do it, maybe we need to test it some more.

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

Post by Xsecrets » Sat Jun 12, 2010 1:04 am

also unless your hosting is using suphp or similar those folders may need to be 777 instead of 755 so you may try that.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by akarikuu » Mon Jun 14, 2010 5:24 pm

i2Paq wrote:
akarikuu wrote:Same Problem here.

But i did not upgrade, its a fresh install, with about 5.200 Products.
Fresh install?

And how did you add the 5200 products?


As this error also sometimes occur to PrestaShop installations try to add the following to the system\startup.php, arround line 14.

Code: Select all

ini_set('memory_limit','-1');
Att. I'm not sure if this is the right way to do it, maybe we need to test it some more.
I added the products with HeidiSQl - Import CSV file.

First time i try to open an order in backend it says only:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1325896 bytes)

Trying another time i get:
Warning: fread() [function.fread]: Length parameter must be greater than 0 in /var/www/vhosts/...it/subdomains/shop/httpdocs/system/library/cache.php on line 27
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1325896 bytes) in /var/www/vhosts/...it/subdomains/shop/httpdocs/system/library/cache.php on line 43

Maybe this means that the first time the cache file could not be written or written with lenght 0?

Adding this line did not change anything.

Code: Select all

ini_set('memory_limit','-1');
I also pathed to 1.4.8b an removed the files from system/cahce several times.

EDIT:
All folders an files required to be 755 or 777 during installation are 777.

On phpinfo() memory_limit is 32M (Local Value and Master Value)

Newbie

Posts

Joined
Sat Jun 05, 2010 3:53 pm

Post by jgw1 » Sat Jun 19, 2010 9:08 pm

I had this error come up (not with an upgrade) but because I had done a full backup of my site through cpanel. This saved the backup in my root folder and I went over my storage quota. This was causing the error.

So did you do a backup when you upgraded and if so check your quota.

What happened to me was that with the backup pushing me over my quota trying to ftp files appeared to work but in fact the new files on the server had 0 filesize.

So what I was actually trying to do was replace the folders in my store that start with a "_" and the other miscellaneous files (index.php etc) because some of these were showing as 0kb. So what I actually did was delete the backup file and replace these, so I actually can't tell you which of these was the culprit.

New member

Posts

Joined
Tue Apr 20, 2010 5:22 pm

Post by cliffordski » Wed Feb 16, 2011 4:31 pm

Background: I'm using GoGrid.com and have nearly 4,300 products which I store as a 3rd normal form relational model in an Microsoft Access 2010 database and use an ODBC connection to populate the OpenCart database remotely on my cloud instance. This enables me to enforce referential integrity on the product listing.

I've been puzzling over this problem for the last few hours -- started at 02:17 and it's now 08:12 -- so quite a thorny issue there, until it finally occurred to me that unserialize would be truncating the output over a certain memory threshold.

On my server my register globals is set to Off by default, so I used the following mod in system/startup.php as per akarikuu's and i2Paq's posts above:

Code: Select all

// Register Globals

ini_set('memory_limit','-1');

if (ini_get('register_globals')) {
    ini_set('session.use_cookies', 'On');
    ini_set('session.use_trans_sid', 'Off');
        
    session_set_cookie_params(0, '/');
    session_start();

// ...code continues to closing curly
}

I also listed my system/cache in my ftp client and it shows the following entry in the directory listing:

cache.product.1.1297847176 10,167,993 16/02/2011 08:06:16 rw-r--r-- apache

so you can see how quickly the product listing cache grows according to the number of products in the database!

This fix/mod applies to a clean install on Version 1.4.9.3 and assumes you have no disk quotas set up on the site.

This is my first experience with OpenCart and this is the only problem I've encountered so far. Happy days!

Newbie

Posts

Joined
Wed Feb 16, 2011 1:07 pm
Who is online

Users browsing this forum: No registered users and 25 guests