Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Uncaught Type Error with Giant Image
Author « Topic »  

midvalleydrifter001
Ecommerce Template Expert

USA
936 Posts

Posted - 03/05/2022 :  11:57:54  
I just noticed the below error message when inspecting (Ctrl+Shift+I) one of my pages that has a Giant Image available.

This error appears "after" you click on "Enlarge".

I also noticed the giant image in the popup is not centered.

Here is the page:

www (DOT) slixprings.com/proddetail.php?prod=SliXshot-Black-Powder-Nipples

Using ECT v7.4.7.001
PHP 8.1.3

Patrick


Uncaught TypeError: Cannot set proddetail.php?prod=SliXshot-Black-Powder-Nipples:346
property 'innerHTML' of null
at displayprodimagenum (proddetail.php?prod=SliXshot-Black-Powder-Nipples:346)
at showgiantimage (proddetail.php?prod=SliXshot-Black-Powder-Nipples:332)
at <anonymous>:1:1



Edited by - midvalleydrifter001 on 03/05/2022 12:02:12

ITZAP
Ecommerce Template Guru

Australia
1018 Posts

Posted - 03/05/2022 :  17:04:22  
Goodaye Patrick and Vince,

Running ECT v7.4.7.001
PHP 7.4.28

Console message "Uncaught TypeError: Cannot set properties of null (setting 'innerHTML')"
Only occurs when there is just the ONE Giant Image.

Fix for Giant Image not centered:
div.giantimg {text-align: center}

Switch to PHP 8.0
This page isn’t working, currently unable to handle this request. HTTP ERROR 500

Switch to PHP 8.1.3
All good

Regards,

Gary

midvalleydrifter001
Ecommerce Template Expert

USA
936 Posts

Posted - 03/05/2022 :  17:14:32  
Thanks Gary... I got the image centered with your suggestion.

The other thing is for Vince to look at.

Patrick

Vince
Administrator

42874 Posts

Posted - 03/06/2022 :  10:28:58  
quote:
Console message "Uncaught TypeError: Cannot set properties of null (setting 'innerHTML')"
Only occurs when there is just the ONE Giant Image.
Thanks for that Gary as that was the key to the problem and made it easy to find. It doesn't seem to have been causing any problems but it's fixed now and I've added the fix to the incproddetail.php script in the updater. There is also a fix for the ARIA labels however in the incfunctions.php file and that is important as it can cause incorrect labels to be added to elements.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000