Title: Slideshow.php line 76: Uncaught TypeError
Last modified: January 30, 2024

---

# Slideshow.php line 76: Uncaught TypeError

 *  Resolved [Shane](https://wordpress.org/support/users/shanemarsh28/)
 * (@shanemarsh28)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/slideshow-php-line-76-uncaught-typeerror/)
 * We have has an issue with an old site that has recently been upgraded to PHP8.2.
   If gallery_height in the shortcode is set to “auto” the page exits with a fatal
   error. This appears to be a backwards compatibility issue..
 * PHP message: PHP Fatal error: Uncaught TypeError: Unsupported operand types: 
   string / string in …/nextgen-gallery/src/DisplayTypes/Slideshow.php:76
 * Reproducible when the short code is written like this: 
   [ngg src=”galleries” 
   ids=”34″ display=”basic_slideshow” gallery_width=”800″ gallery_height=”**auto”**
   show_thumbnail_link=”0″]

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Mihai Ceban](https://wordpress.org/support/users/mihaiimagely/)
 * (@mihaiimagely)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/slideshow-php-line-76-uncaught-typeerror/#post-17390344)
 * Hi [@shanemarsh28](https://wordpress.org/support/users/shanemarsh28/),
 * I appreciate your issue report here. This indeed looks like a bug that we’ll 
   have to fix.
 * Thanks
    -  This reply was modified 2 years, 4 months ago by [Mihai Ceban](https://wordpress.org/support/users/mihaiimagely/).
 *  [Pierre.Toulmonde](https://wordpress.org/support/users/pierretoulmonde/)
 * (@pierretoulmonde)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/slideshow-php-line-76-uncaught-typeerror/#post-17390642)
 * The issue is not solved since version 3.50.
   I have to use 3.41 to make it work.
    -  This reply was modified 2 years, 4 months ago by [Pierre.Toulmonde](https://wordpress.org/support/users/pierretoulmonde/).
 *  [Mihai Ceban](https://wordpress.org/support/users/mihaiimagely/)
 * (@mihaiimagely)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/slideshow-php-line-76-uncaught-typeerror/#post-17408704)
 * Hi [@pierretoulmonde](https://wordpress.org/support/users/pierretoulmonde/),
 * I apologize for the delays here. We look forward to having this one fixed, among
   the other issues that were reported in the meantime.
 * Thanks for your understanding

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Slideshow.php line 76: Uncaught TypeError’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Mihai Ceban](https://wordpress.org/support/users/mihaiimagely/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/slideshow-php-line-76-uncaught-typeerror/#post-17408704)
 * Status: resolved