• Resolved rodneyjoyce

    (@rodneyjoyce)


    Hi,

    I am getting these errors once every few days and don’t know where to start debugging:

    WordPress version 5.6
    Current theme: My Listing (version 2.6.5) Current plugin: ShortPixel Adaptive Images (version 2.1.3)
    PHP version 8.0.0

    Error Details
    =============
    An error of type E_ERROR was caused in line 636 of the file /www/pokerdiy_125/public/wp-content/plugins/shortpixel-adaptive-images/includes/controllers/lqip.class.php. Error message: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, ShortPixel\AI\Options\Option given in /www/pokerdiy_125/public/wp-content/plugins/shortpixel-adaptive-images/includes/controllers/lqip.class.php:636
    Stack trace:
    #0 /www/pokerdiy_125/public/wp-content/plugins/shortpixel-adaptive-images/includes/controllers/lqip.class.php(636): array_filter(Object(ShortPixel\AI\Options\Option), Object(Closure))
    #1 /www/pokerdiy_125/public/wp-content/plugins/shortpixel-adaptive-images/includes/controllers/lqip.class.php(263): ShortPixel\AI\LQIP->filterWithProcessed(Object(ShortPixel\AI\Options\Option), Array)
    #2 /www/pokerdiy_125/public/wp-includes/class-wp-hook.php(287): ShortPixel\AI\LQIP->eventHandler()
    #3 /www/pokerdiy_125/public/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
    #4 /www/pokerdiy_125/public/wp-includes/plugin.php(551): WP_Hook->do_action(Array)
    #5 /www/pokerdiy_125/public/wp-cron.php(138): do_action_ref_array(‘spai_lqip_gener…’, Array)
    #6 {main}
    thrown

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support Gerard Blanco

    (@sixaxis)

    Hi, @rodneyjoyce!

    That’s interesting, I’ll consult it with our devs and will update you once we have some news ??

    Best,

    Plugin Support Gerard Blanco

    (@sixaxis)

    Hi, @rodneyjoyce,

    We are still working on having full compatibility with PHP 8, so it is normal that issues like this arise ??

    Anyway, we’ll test that and fix it in next versions.

    Thanks for reporting it!

    Thread Starter rodneyjoyce

    (@rodneyjoyce)

    Thanks for the quick response Gerard! LEt me know if you want me to beta test

    Plugin Support Gerard Blanco

    (@sixaxis)

    Sure thing, we’ll let you know if we need it ??

    Thread Starter rodneyjoyce

    (@rodneyjoyce)

    Hi Gerard

    This issue is showing as Resolved, and yet I still have the issue almost daily. How is the fix coming along?

    Error Details
    =============
    An error of type E_ERROR was caused in line 636 of the file /wp-content/plugins/shortpixel-adaptive-images/includes/controllers/lqip.class.php. Error message: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, ShortPixel\AI\Options\Option given in /wp-content/plugins/shortpixel-adaptive-images/includes/controllers/lqip.class.php:636
    Stack trace:
    #0 /wp-content/plugins/shortpixel-adaptive-images/includes/controllers/lqip.class.php(636): array_filter(Object(ShortPixel\AI\Options\Option), Object(Closure))
    #1 /www/pokerdiy_125/public/wp-content/plugins/shortpixel-adaptive-images/includes/controllers/lqip.class.php(263): ShortPixel\AI\LQIP->filterWithProcessed(Object(ShortPixel\AI\Options\Option), Array)
    #2 /www/pokerdiy_125/public/wp-includes/class-wp-hook.php(292): ShortPixel\AI\LQIP->eventHandler()
    #3 /www/pokerdiy_125/public/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters('', Array)
    #4 /www/pokerdiy_125/public/wp-includes/plugin.php(551): WP_Hook->do_action(Array)
    #5 /www/pokerdiy_125/public/wp-cron.php(138): do_action_ref_array('spai_lqip_gener...', Array)
    #6 {main}
      thrown
    Plugin Support Gerard Blanco

    (@sixaxis)

    Hi @rodneyjoyce,

    I don’t have any news unfortunately ?? We are still working on it, so as soon as we have any update we’ll let you know.

    Best,

    Thread Starter rodneyjoyce

    (@rodneyjoyce)

    Thank you – can you confirm that it WILL be fixed soon or do you recommend that we switch to a working plugin?

    I am concerned about the effect on the end user and have been trailing Optimole on other sites.

    Plugin Support Gerard Blanco

    (@sixaxis)

    It will be fixed soon, rodneyjoyce ??

    Thread Starter rodneyjoyce

    (@rodneyjoyce)

    Hi Gerard,

    Ok, thanks for confirming. Without any visibility/awareness on what the effect is to the end user with this error I’ll give it another 2 weeks before switching, thank you.

    Plugin Support Gerard Blanco

    (@sixaxis)

    rodneyjoyce, I believe you can simply go to Settings > ShortPixel AI > Behaviour and disable the option LQ image placeholders if you want that warning to disappear. If you need to keep it enabled, feel free to send me your domain and I’ll check from my side that everything is working well.

    Thank you,

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘ShortPixel throwing error (PHP 8 related?)’ is closed to new replies.