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
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
Fresh install?akarikuu wrote:Same Problem here.
But i did not upgrade, its a fresh install, with about 5.200 Products.
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');
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.
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
I added the products with HeidiSQl - Import CSV file.i2Paq wrote:Fresh install?akarikuu wrote:Same Problem here.
But i did not upgrade, its a fresh install, with about 5.200 Products.
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.Code: Select all
ini_set('memory_limit','-1');
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');
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)
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.
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.
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:
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!
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
}
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!
Who is online
Users browsing this forum: No registered users and 25 guests