Print Page | Close Window

V4 SP3 - large number of images in Catalog folder

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Using ProductCart
Forum Description: Running your store with ProductCart
URL: https://forum.productcart.com/forum_posts.asp?TID=5877
Printed Date: 03-July-2024 at 2:48am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: V4 SP3 - large number of images in Catalog folder
Posted By: grimmus
Subject: V4 SP3 - large number of images in Catalog folder
Date Posted: 24-April-2014 at 4:43am
Hi,

We have more than 7000 images in our Catalog folder and it seems to be causing an issue with the upload image popup in the html editor. the function that writes out each row of file information seems to fail silently when there are more than 4015 images in the folder. No error is being displayed but the page stops rendering.

Anyone any ideas what the problem could be ?

Thanks in advance.



Replies:
Posted By: ProductCart
Date Posted: 24-April-2014 at 1:01pm
This feature is included with the 3rd-party HTML Editor from Innova Studio. In v4.7, there are some improvements to the Indexing script that should allow it to work with your 7,000+ images... so we recommend updating to the current version (4.7). Or, since v5 is only a few weeks away, you might want to hold off until the end of May.

-------------
The ProductCart Team

Home of ProductCart http://www.productcart.com" rel="nofollow - shopping cart software


Posted By: Hamish
Date Posted: 24-April-2014 at 3:34pm
If it's likely that a lot of the images are no longer in use then the Orphan Image Manager is worth considering. http://wiki.productcart.com/widgets/thirdparty/orphanimagemanager" rel="nofollow - http://wiki.productcart.com/widgets/thirdparty/orphanimagemanager


-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: Guests
Date Posted: 25-April-2014 at 12:05am
Also, it's worth consider out Batch Process Images extension (http://wiki.productcart.com/widgets/thirdparty/batchprocessimages).

This wouldn't get one out of the current issue with too many files PC dumps into /pc/catalog/ but it mitigates against the problem on the front end by breaking product images out into sub-directories (thumbs, general, detail) and from there has its own orphaned images clean-up feature.

Perhaps PC 5.1 might take this issue on (dumping so many files into /pc/catalog/) and establish sub-directories for various types of files moving forward.

It's not just an issue with the HTML Editor UI: it's also a page speed issues as the more files in a directory, the longer it takes IIS to find the right files (yeah, it's on the level of miliseconds, but these days that counts). It's also just better for file management, IMHO.


Posted By: cognecy
Date Posted: 25-April-2014 at 12:57am

Grimmus,

This has long been a known issue with the HTML Editor but you must keep in mind, as was already mentioned, the HTML Editor is a third party product that was not written by NetSource (or the previous Early Impact).  Basically what happens with the JavaScript popup is the buffer fills up and time's out.  Due to the way it was written, it tries to index the entire folder before anything is displayed which is fine for smaller catalogs but as you can see, once you cross a certain threshold (it varies by the way), it just stops working!

There is however a work-around ... not a perfect solution but a workaround nonetheless.

The old version of the file upload GUI was left in the code and carried forward so all you need to do is use the file in the pcadmin directory named [ ImageUploada.asp ]

What we do for our own customers that have large catalogs is alter the [pcv4_navigation_links.asp] file also located in the pcadmin directory.  If you open that file and go down to around line 34 (in v4.7), you will see the line that reads:

<li><a href="pcv4_image_upload.asp">Upload Images</a></li>

Replace that line with the following:

<li><a href="ImageUploada.asp">Upload Images</a></li>

You can now access that version of the file upload by going to [Settings-->Images & Navigation-->Upload Images]


PLEASE NOTE this does not fix the issue in the HTML editor but what it does do is give you the old interface for uploading images and files to the pc/catalog directory that will work.  You will need to manually code in the links in your descriptions however with the catalog path in mind.

I believe this issue has been addressed in V5 but for those that will be in V4.x for a while, I hope this helps.



-------------
Mark Shipp
Cognecy Solutions, LLC
Hosting/Design/Customization/Database Migration
www.cognecy.com
www.cognecy.co.uk


Posted By: grimmus
Date Posted: 25-April-2014 at 4:03am
Thanks, i added <% Response.Buffer = False %> to the top of the assetmanager.asp page and everything is working fine.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net