V4 SP3 - large number of images in Catalog folder |
Post Reply |
Author | |
grimmus
Newbie Joined: 24-April-2014 Status: Offline Points: 5 |
Post Options
Thanks(0)
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 |
|
ProductCart
Admin Group ProductCart Team Joined: 01-October-2003 Status: Offline Points: 135 |
Post Options
Thanks(0)
|
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.
|
|
Hamish
Admin Group Joined: 12-October-2006 Location: United Kingdom Status: Offline Points: 56 |
Post Options
Thanks(0)
|
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 |
|
Guests
Guest |
Post Options
Thanks(0)
|
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.
|
|
cognecy
Certified ProductCart Developers Joined: 18-March-2006 Location: United States Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Grimmus, 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: Replace that line with the following: 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. |
|
Mark Shipp
Cognecy Solutions, LLC Hosting/Design/Customization/Database Migration www.cognecy.com www.cognecy.co.uk |
|
grimmus
Newbie Joined: 24-April-2014 Status: Offline Points: 5 |
Post Options
Thanks(0)
|
Thanks, i added <% Response.Buffer = False %> to the top of the assetmanager.asp page and everything is working fine. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |