logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
Joe Payne2  
#1 Posted : Wednesday, September 8, 2021 9:20:56 AM(UTC)
Joe Payne2

Rank: Advanced Member

Groups: HelpDesk, Developers
Joined: 11/9/2018(UTC)
Posts: 564

Thanks: 122 times
Was thanked: 26 time(s) in 25 post(s)
Similar to other bug reported here https://www.ablecommerce.com/for...Images-Advanced-Settings

If a gallery image file no longer exists, the admin user can no longer reach the Advanced Settings page due to page exception.

Steps to reproduce:
Edit a product
click Images tab
Upload image to the gallery at bottom
Switch to file explorer
navigate to /website/assets/productimages/
Find that image file and delete it

Refresh edit-product page. Image no longer renders. Now click the Advanced Settings button.

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

shaharyar  
#2 Posted : Wednesday, September 8, 2021 10:12:49 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 704

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
Reported.

Thanks for pointing this out.
judy at Web2Market  
#3 Posted : Thursday, October 7, 2021 8:01:03 AM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: Developers
Joined: 11/7/2018(UTC)
Posts: 303

Thanks: 21 times
Was thanked: 5 time(s) in 5 post(s)
I just ran into this issue also.
In case anyone needs to fix it, this is the only way I could think of:
Width = System.IO.File.Exists(Server.MapPath(m.ImageUrl))? System.Drawing.Image.FromFile(Server.MapPath(m.ImageUrl)).Width.ToString():"50",
Height = System.IO.File.Exists(Server.MapPath(m.ImageUrl))? System.Drawing.Image.FromFile(Server.MapPath(m.ImageUrl)).Height.ToString():"50"

Edited by user Thursday, October 7, 2021 8:12:13 AM(UTC)  | Reason: Not specified

Users browsing this topic
Guest (3)
Forum Jump  
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.