• Resolved siteXmedia

    (@sitexmedia)


    Getting this in the Woo error log

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Me too. It’s a bug in the performance.php file. Line 675 is in the wrong place; it should be immediately after the “Skip on error” block, not before it!

    If you choose to fix that (at your own risk!), then the error gets logged before the process is aborted, and you’ll be able to see the error in the Swift log.

    In my case, the cache pre-building is unable to fetch any pages due to an SSL issue.

    HTH, Rick.

    Plugin Author swte

    (@swte)

    Hi,

    @rickfitz this is the good answer, thank you!

    It has been already fixed, next update will contain the fix (it will release within 1-2 weeks)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Uncaught Error: Cannot use object of type WP_Error’ is closed to new replies.