Title: PHP error
Last modified: February 13, 2020

---

# PHP error

 *  Resolved [philbee](https://wordpress.org/support/users/philbee/)
 * (@philbee)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/php-error-364/)
 * With XDebug enabled, the latest version of Simplelightbox displays PHP errors`
   Warning: A non-numeric value encountered in (...)/wp-content/plugins/simplelightbox/
   simplelightbox.php on line 476`
 * Setting the Minimal Z-Index in the settings panel to some number seems to solve
   this.
 * Also, I can’t seem to get the lightbox overlay to work. Either I get an empty
   overlay without image, or the image opens directly in the browser without the
   lightbox, even though in the source everything seems to be here: `<div class="
   mgl-img-container"><a href="https://gutenberg.local/wp-content/uploads/2020/01/
   IMG_0814-scaled.jpeg" class="simplelightbox" rel="lightbox[225]"><img width="
   768" height="1024" src="https://gutenberg.local/wp-content/uploads/2020/01/IMG_0814-
   768x1024.jpeg" class="wp-image-14" alt="" srcset="https://gutenberg.local/wp-
   content/uploads/2020/01/IMG_0814-768x1024.jpeg 768w loading="lazy" /> </a></div
   ></div>`.
 * Maybe I need to set the «Source Attribute»? And if so, what is it, or how do 
   I find out what to enter here?
 * TIA for any insights! I’d really like to use this plugin, as the simplelighbox
   project looks very, very nice.

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

 *  Plugin Author [aknieriem](https://wordpress.org/support/users/aknieriem/)
 * (@aknieriem)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/php-error-364/#post-12449127)
 * Should work now again. Sorry there was a bug
 *  Thread Starter [philbee](https://wordpress.org/support/users/philbee/)
 * (@philbee)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/php-error-364/#post-12454482)
 * Perfect, works beautifully now, thanks a lot!

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

The topic ‘PHP error’ is closed to new replies.

 * ![](https://ps.w.org/simplelightbox/assets/icon-256x256.png?rev=1261511)
 * [Simplelightbox](https://wordpress.org/plugins/simplelightbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simplelightbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simplelightbox/)
 * [Active Topics](https://wordpress.org/support/plugin/simplelightbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simplelightbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simplelightbox/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [philbee](https://wordpress.org/support/users/philbee/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/php-error-364/#post-12454482)
 * Status: resolved