Page 1 of 1
Upgrade from 1.4.7 to 1.4.8 Bugs/upgrade errors
Posted: Thu Jun 10, 2010 3:49 am
by shoo002
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
Re: Upgrade from 1.4.7 to 1.4.8 Bugs/upgrade errors
Posted: Thu Jun 10, 2010 3:53 am
by Qphoria
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
Re: Upgrade from 1.4.7 to 1.4.8 Bugs/upgrade errors
Posted: Thu Jun 10, 2010 4:02 am
by shoo002
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
Re: Upgrade from 1.4.7 to 1.4.8 Bugs/upgrade errors
Posted: Thu Jun 10, 2010 4:06 am
by Qphoria
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)
Re: Upgrade from 1.4.7 to 1.4.8 Bugs/upgrade errors
Posted: Thu Jun 10, 2010 4:13 am
by shoo002
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
Re: Upgrade from 1.4.7 to 1.4.8 Bugs/upgrade errors
Posted: Fri Jun 11, 2010 1:43 am
by shoo002
any other ideas on how to get round this problem.
Re: Upgrade from 1.4.7 to 1.4.8 Bugs/upgrade errors
Posted: Fri Jun 11, 2010 10:38 pm
by akarikuu
Same Problem here.
But i did not upgrade, its a fresh install, with about 5.200 Products.
Re: Upgrade from 1.4.7 to 1.4.8 Bugs/upgrade errors
Posted: Sat Jun 12, 2010 12:40 am
by i2Paq
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.
Att. I'm not sure if this is the right way to do it, maybe we need to test it some more.
Re: Upgrade from 1.4.7 to 1.4.8 Bugs/upgrade errors
Posted: Sat Jun 12, 2010 1:04 am
by Xsecrets
also unless your hosting is using suphp or similar those folders may need to be 777 instead of 755 so you may try that.
Re: Upgrade from 1.4.7 to 1.4.8 Bugs/upgrade errors
Posted: Mon Jun 14, 2010 5:24 pm
by akarikuu
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.
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.
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)
Re: Upgrade from 1.4.7 to 1.4.8 Bugs/upgrade errors
Posted: Sat Jun 19, 2010 9:08 pm
by jgw1
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.
[FIX] length parameter must be greater than 0
Posted: Wed Feb 16, 2011 4:31 pm
by cliffordski
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!