Big bug in v. 3.0 when too many products

beholder

Avatar: beholder

2008-06-14 17:54

Using Quick Cart in heavy-duty environment can sometimes yield bugs that the original author probably didn't think of. I know, I have read the disclaimers about recommended number of products, but up until now QC worked fine, it's just this one bug that can disable some functionality in the administration.

I was trying to work with up to 4000 products; most of them have pictures, so you end up with about 2800 pictures in the files/ directory. Of course, I use a custom php script to create db files, no one adds the products by hand. I also upload the pics via FTP, not via QC administration interface.

Now, has anyone tried to edit a category or a product, when there are so many pictures in the files/ directory? I guess not, because the result on my server is this:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 5709817 bytes) in /home/html/****.cz/public_html/libraries/TplParser.php on line 228

My guess is that the big number of images is simply too much to display on the administration tab where files are added to a product or a page from the server.

I have circumvented this bug by moving the pics to files/pics/ , then moving the thumbnails to files/100/pics/ and by editing the filenames of pics in db/products_files.php to format "pics/xxx.jpg". This worked very well, although it is not an ideal solution.

» Quick.Cart v3.x

QC v3.0

treewood (OpenSolution)

Avatar: treewood

2008-06-16 08:09

beholder - in Quick.Cart v3.1 this problem will be solved. For now edit actions_admin/products.php and delete

$sFilesDir            $oFile->listFilesInDir'files.tpl'$iProduct);

and edit actions_admin/p.php and delete

$sFilesDir            $oFile->listFilesInDir'files.tpl'$iPage);



Quick.Cart is designed to max 1000 products :) We dont recommend to use to more than 1000. Best numbers for Quick.Cart is about 200-400 product

beholder

Avatar: beholder

2008-06-16 19:45

Yep, that removed the "load from server" box, now everything is working and quick (was very slow when there were for example 1600 pics in the files/ dir). Thanks.

I love QuickCart and the way how it can handle up to 4000 products in 650 categories (pages). I look forward to that day when the tag "unsuitable for more than 1000 products" will be just removed.
I'll keep testing the e-shop versions in this heavy-duty environment and will let you guys know, when something else bombs.

QC v3.0

Back to top
about us | contact