• Resolved meinService

    (@meinservice)


    query-monitor.js:403 

    {key: 'a81a726c4003f34455610426f0eccf16', type: 'deprecated', message: 'Use of "parent" in callables is deprecated', file: 'wp-content/plugins/simple-lightbox/includes/class.options.php', line: 501, …}
    component
    :
    "Plugin: simple-lightbox"
    file
    :
    "wp-content/plugins/simple-lightbox/includes/class.options.php"
    key
    :
    "a81a726c4003f34455610426f0eccf16"
    line
    :
    501
    message
    :
    "Use of \"parent\" in callables is deprecated"
    stack
    :
    (11) ['SLB_Options->add()', 'SLB_Field_Collection->add_items()', 'SLB_Field_Collection->load()', 'SLB_Base->_set_options()', 'SLB_Lightbox->_options()', 'SLB_Base->_init()', 'SLB_Lightbox->_init()', 'SLB_Base->__construct()', 'SLB_Lightbox->__construct()', 'slb_init()', "do_action('init')"]
    type
    :
    "deprecated"
    [[Prototype]]
    :
    Object

    1. Object
      1. component: “Plugin: simple-lightbox”
      2. file: “wp-content/plugins/simple-lightbox/includes/class.options.php”
      3. key: “a81a726c4003f34455610426f0eccf16”
      4. line: 501
      5. message: “Use of \”parent\” in callables is deprecated”
      6. stack: (11) [‘SLB_Options->add()’, ‘SLB_Field_Collection->add_items()’, ‘SLB_Field_Collection->load()’, ‘SLB_Base->_set_options()’, ‘SLB_Lightbox->_options()’, ‘SLB_Base->_init()’, ‘SLB_Lightbox->_init()’, ‘SLB_Base->__construct()’, ‘SLB_Lightbox->__construct()’, ‘slb_init()’, “do_action(‘init’)”]
      7. type: “deprecated”
      8. Prototype: Object
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter meinService

    (@meinservice)

    sing ${var} in strings is deprecated, use {$var} instead

    ivydev

    (@pinkivy)

    Yes, I get more than one deprecated error per second from this plugin! Can the author please fix the deprecated code?

    Go to line 501 and replace

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

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

    • This reply was modified 5 months, 3 weeks ago by pedjas.
    • This reply was modified 5 months, 3 weeks ago by pedjas.
    Thread Starter meinService

    (@meinservice)

    THX

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

You must be logged in to reply to this topic.