Title: deprecated error
Last modified: November 1, 2023

---

# deprecated error

 *  Resolved [mrneedle](https://wordpress.org/support/users/mrneedle/)
 * (@mrneedle)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/deprecated-error-27/)
 * Hi just letting you know I get a deprecated error when upgrading to PHP 8.1
 * trim(): Passing null to parameter #1 ($string) of type string is deprecated+
 * wp-content/plugins/simple-lightbox/includes/class.utilities.php:545
 * $obj seems to be empty so if I set $obj = ”; the problem disappears. but it probably
   should be fixed with a proper solution and an update.
   Thank you for creating 
   this plugin!
    -  This topic was modified 2 years, 7 months ago by [mrneedle](https://wordpress.org/support/users/mrneedle/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Archetyped](https://wordpress.org/support/users/archetyped/)
 * (@archetyped)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/deprecated-error-27/#post-17171298)
 * Hi, you can watch [this post on PHP 8 notices](https://github.com/archetyped/simple-lightbox/issues/1038)
   on SLB’s official support forum for updates.

Viewing 1 replies (of 1 total)

The topic ‘deprecated error’ 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, 7 months ago](https://wordpress.org/support/topic/deprecated-error-27/#post-17171298)
 * Status: resolved