• pedjas

    (@pedjas)


    My log is full of this notice messages and fills in rapidly. I see this issue is reported long time ago and only “solution” offered for users is to turn of displaying notices.

    My site does not dipsply notices but log is filled in anyways.

    [21-Jun-2024 14:24:07 UTC] PHP Deprecated: Use of "parent" in callables is deprecated in /home/webiste/public_html/wp-content/plugins/simple-lightbox/includes/class.options.php on line 501

    Can you resolve this, please.

    Fix is as simple as replacing

        $ret  = call_user_func_array( array( 'parent', 'add' ), $args );

    with

        $ret  = call_user_func_array( array( parent::class, 'add' ), $args );

    Moderator note: Please, No bumping

    https://www.ads-software.com/support/guidelines/#do-not-bump-posts

Viewing 1 replies (of 1 total)
  • Experiencing the same issue, and by the looks of it the author does not seem eager to modernize their code. Their suggested partial fix is from about two years ago. I might have to abandon this plugin if the author has as well.

Viewing 1 replies (of 1 total)
  • The topic ‘Use of “parent” in callables is deprecated’ is closed to new replies.