Support » Plugin: Swift Performance Lite » Fatal error: Cannot use object of type WP_Error as array in XXX

  • Resolved rousselnc

    (@rousselnc)


    Hi,

    I am a marketing agency and I use SPL for my professional website as well as for client websites.

    I installed SPL a few weeks ago and I have a message in my logs indicating :

    Fatal error: Cannot use object of type WP_Error as array in /home/xxxx/www/wp-content/plugins/swift-performance-lite/performance.php on line 675

    xxxx is my database.

    I am not a specialist but I also have errors with Divi on another website since I installed SPL.

    Can anyone help with this fatal error ?

    Thanks for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author swte

    (@swte)

    Hi,

    It is a known issue, it happens when loopback is disabled on the server. It will be fixed in next update (within 1-2 weeks)

    Hi,

    First, thanx for great speedup module for WP 🙂

    We got the same issue (i think) on our website:

    PHP Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /home/XX/public_html/wp-content/plugins/swift-performance-lite/performance.php:675
    Stack trace:
    #0 /home/XX/public_html/wp-content/plugins/swift-performance-lite/performance.php(645): Swift_Performance_Lite::prebuild_cache_hit(false)
    #1 /home/XX/public_html/wp-includes/class-wp-hook.php(286): Swift_Performance_Lite::prebuild_page_cache(Array)
    #2 /home/XX/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
    #3 /home/XX/public_html/wp-includes/plugin.php(515): WP_Hook->do_action(Array)
    #4 /home/XX/public_html/wp-cron.php(126): do_action_ref_array(‘swift_performan…’, Array)
    #5 {main}
    thrown in /home/XX/public_html/wp-content/plugins/swift-performance-lite/performance.php on line 675

    XX=database. This same error is displayed on almost every day past two months. Swift is up to date. How can I fix it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.