• Boris

    (@ispacecrusader)


    Hello,
    I’m running into a lot of deprecation warnings when updating to PHP 8.03:

    Use of "parent" in callables is deprecated

    This has first been reported by a user here 20 months ago. Link to page

    An extremely simple fix has been posted here: Link to page

    Are you planning to update the plugin with this fix?


    Also, there is a second deprecation warning:
    Passing null to parameter #1 ($string) of type string is deprecated in /simple-lightbox/includes/class.utilities.php on line 545

    Perhaps that can be fixed too?
    Thanks for your help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi there,

    I have the same issue.

    [04-Sep-2024 03:30:08 UTC] PHP Deprecated: Use of “parent” in callables is deprecated in /www/htdocs/w0136814/dogweb.fr/wp-content/plugins/simple-lightbox/includes/class.options.php on line 501
    [04-Sep-2024 03:30:08 UTC] PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /www/htdocs/w0136814/dogweb.fr/wp-content/plugins/simple-lightbox/includes/class.field_type.php on line 435
    [04-Sep-2024 03:30:08 UTC] PHP Deprecated: Use of “parent” in callables is deprecated in /www/htdocs/w0136814/dogweb.fr/wp-content/plugins/simple-lightbox/includes/class.options.php on line 501
    [04-Sep-2024 03:30:08 UTC] PHP Deprecated: Use of “parent” in callables is deprecated in /www/htdocs/w0136814/dogweb.fr/wp-content/plugins/simple-lightbox/includes/class.options.php on line 501
    [04-Sep-2024 03:30:08 UTC] PHP Deprecated: Use of “parent” in callables is deprecated in /www/htdocs/w0136814/dogweb.fr/wp-content/plugins/simple-lightbox/includes/class.options.php on line 501
    [04-Sep-2024 03:30:08 UTC] PHP Deprecated: Use of “parent” in callables is deprecated in /www/htdocs/w0136814/dogweb.fr/wp-content/plugins/simple-lightbox/includes/class.options.php on line 501
    [04-Sep-2024 03:30:08 UTC] PHP Deprecated: Use of “parent” in callables is deprecated in /www/htdocs/w0136814/dogweb.fr/wp-content/plugins/simple-lightbox/includes/class.options.php on line 501
    [04-Sep-2024 03:30:08 UTC] PHP Deprecated: Use of “parent” in callables is deprecated in /www/htdocs/w0136814/dogweb.fr/wp-content/plugins/simple-lightbox/includes/class.options.php on line 501
    [04-Sep-2024 03:30:08 UTC] PHP Deprecated: Use of “parent” in callables is deprecated in /www/htdocs/w0136814/dogweb.fr/wp-content/plugins/simple-lightbox/includes/class.options.php on line 501
    [04-Sep-2024 03:30:08 UTC] PHP Deprecated: Use of “parent” in callables is deprecated in /www/htdocs/w0136814/dogweb.fr/wp-content/plugins/simple-lightbox/includes/class.options.php on line 501
    [04-Sep-2024 03:30:08 UTC] PHP Deprecated: Use of “parent” in callables is deprecated in /www/ht

    Any update on this issue would be highly appreciated. 🙂

    Thanks for rhis nice plugin!

    All the best,

    Christian

    • This reply was modified 1 year, 6 months ago by bomdiabrasil.

    Same issue here, please rectify ASAP. It produces 56 depreciated msgs on every page of my site meaning I can’t test it with debug enabled!

    I have similar problems.
    Query Monitor shows this:

    DeprecatedUse of “parent” in callables is deprecated+

    1. wp-content/plugins/simple-lightbox/includes/class.options.php:501

    27Plugin: simple-lightboxDeprecatedtrim(): Passing null to parameter #1 ($string) of type string is deprecated+


    1. wp-content/plugins/simple-lightbox/includes/class.options.php:501
    2. SLB_Options->add()
      wp-content/plugins/simple-lightbox/includes/class.field_collection.php:360
    3. SLB_Field_Collection->add_items()
      wp-content/plugins/simple-lightbox/includes/class.field_collection.php:110
    4. SLB_Field_Collection->load()
      wp-content/plugins/simple-lightbox/includes/class.base.php:206
    5. SLB_Base->_set_options()
      wp-content/plugins/simple-lightbox/controller.php:542
    6. SLB_Lightbox->_options()
      wp-content/plugins/simple-lightbox/includes/class.base.php:148
    7. SLB_Base->_init()
      wp-content/plugins/simple-lightbox/controller.php:166
    8. SLB_Lightbox->_init()
      wp-content/plugins/simple-lightbox/includes/class.base.php:121
    9. SLB_Base->__construct()
      wp-content/plugins/simple-lightbox/controller.php:154
    10. SLB_Lightbox->__construct()
      wp-content/plugins/simple-lightbox/load.php:37
    11. slb_init()
      wp-includes/class-wp-hook.php:324
    12. do_action('init')
      wp-settings.php:700
    1. wp-content/plugins/simple-lightbox/includes/class.utilities.php:545

    1. wp-content/plugins/simple-lightbox/includes/class.options.php:501

    27Plugin: simple-lightboxDeprecatedtrim(): Passing null to parameter #1 ($string) of type string is deprecated-

    1. wp-content/plugins/simple-lightbox/includes/class.utilities.php:545
    2. trim()
      wp-content/plugins/simple-lightbox/includes/class.utilities.php:545
    3. SLB_Utilities->validate_client_object()
      wp-content/plugins/simple-lightbox/includes/class.utilities.php:523
    4. SLB_Utilities->extend_client_object()
      wp-content/plugins/simple-lightbox/includes/class.utilities.php:1016
    5. SLB_Utilities->set_client_context()
      wp-includes/class-wp-hook.php:324
    6. do_action('wp_footer')
      wp-includes/general-template.php:3081
    7. wp_footer()
      wp-includes/template-canvas.php:25

    Same here, I get 28 depreciated notices for every page load.

    27 are from /simple-lightbox/includes/class.options.php on line 501
    1 is from /simple-lightbox/includes/class.utilities.php on line 545

    Seems like it could be a relatively simple fix.

    It’s a free plugin and I appreciate the work that went into it.

    Same problems here. A lot of deprecation log lines… Please at least give an update on this issue, and have you considered allowing other people to commit? I would love to fix those errors.

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

The topic ‘Deprecation errors: Use of “parent” in callables is deprecated’ is closed to new replies.