Title: 404 causing error with lightbox code
Last modified: February 3, 2024

---

# 404 causing error with lightbox code

 *  [Earthman Media](https://wordpress.org/support/users/earthman100/)
 * (@earthman100)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/404-causing-error-with-lightbox-code/)
 * Hello, I am not sure of why this 404 url is being called, but for some reason
   when a 404 page is generated with Timber at a specific url, the $_GET[‘page’]
   variable is populated with an array (?), and since your plugin code is running
   strrpos() on any value besides null, this error is being thrown: see attached
 * I wonder if I could respectfully request that you please type check that value
   in your code, to ensure it is indeed a string, prior to strrpos() being called?
 * That would sure help us a lot, while we try to also resolve the reason why that
   variable is populated in this case.
 * ![](https://lh3.googleusercontent.com/u/0/drive-viewer/AEYmBYSFTeND_oEcwTB-93LI2gJNzJK4XZMPGAIEbSM5pU5MbBTOA4P8NrzOi1X8lKxxYxCpmwFHSkLrlKORt3WK29nt_R8pDQ
   =w2591-h2134)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Archetyped](https://wordpress.org/support/users/archetyped/)
 * (@archetyped)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/404-causing-error-with-lightbox-code/#post-17411012)
 * Thanks for the details. Will look into this.

Viewing 1 replies (of 1 total)

The topic ‘404 causing error with lightbox code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-lightbox.svg)
 * [Simple Lightbox](https://wordpress.org/plugins/simple-lightbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-lightbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-lightbox/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-lightbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-lightbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-lightbox/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Archetyped](https://wordpress.org/support/users/archetyped/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/404-causing-error-with-lightbox-code/#post-17411012)
 * Status: not resolved