ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Using ProductCart
  New Posts New Posts RSS Feed - V4 SP3 - large number of images in Catalog folder
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

V4 SP3 - large number of images in Catalog folder

 Post Reply Post Reply
Author
Message
grimmus View Drop Down
Newbie
Newbie


Joined: 24-April-2014
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote grimmus Quote  Post ReplyReply Direct Link To This Post Topic: V4 SP3 - large number of images in Catalog folder
    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.


Edited by grimmus - 24-April-2014 at 4:57am
Back to Top
ProductCart View Drop Down
Admin Group
Admin Group

ProductCart Team

Joined: 01-October-2003
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote ProductCart Quote  Post ReplyReply Direct Link To This Post 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 shopping cart software
Back to Top
Hamish View Drop Down
Admin Group
Admin Group


Joined: 12-October-2006
Location: United Kingdom
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hamish Quote  Post ReplyReply Direct Link To This Post 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


Edited by Hamish - 24-April-2014 at 3:35pm
Back to Top
Guests View Drop Down
Guest
Guest
Post Options Post Options   Thanks (0) Thanks(0)   Quote Guests Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
cognecy View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 18-March-2006
Location: United States
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote cognecy Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
grimmus View Drop Down
Newbie
Newbie


Joined: 24-April-2014
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote grimmus Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.078 seconds.