• Resolved greenya

    (@greenya)


    Hello. After updating from 4.2.8 to 5.0 the site always crashes when showing single posts (pages and archives works fine). If I disable the addon, all works fine. Updating to latest 5.0.1 doesn’t fix it.

    Fatal error: Uncaught TypeError: array_merge(): Argument #1 must be of type array, bool given in /XXX/web/wp-content/plugins/autodescription/inc/classes/data/plugin.class.php:207
    
    Stack trace:
    #0 /XXX/web/wp-content/plugins/autodescription/inc/classes/data/plugin.class.php(207): array_merge(false, Array)
    #1 /XXX/web/wp-content/plugins/autodescription/inc/classes/helper/query/exclusion.class.php(127): The_SEO_Framework\Data\Plugin::update_site_cache('excluded_ids', Array)
    #2 /XXX/web/wp-content/plugins/autodescription/inc/classes/front/query.class.php(90): The_SEO_Framework\Helper\Query\Exclusion::get_excluded_ids_from_cache()
    #3 /XXX/web/wordpress/wp-includes/class-wp-hook.php(324): The_SEO_Framework\Front\Query::alter_archive_query_in(Object(WP_Query)) #4 /XXX/web/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #5 /XXX/web/wordpress/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
    #6 /XXX/web/wordpress/wp-includes/class-wp-query.php(1881): do_action_ref_array('pre_get_posts', Array)
    #7 /XXX/web/wordpress/wp-includes/class-wp-query.php(3824): WP_Query->get_posts()
    #8 /XXX/web/wordpress/wp-includes/post.php(2452): WP_Query->query(Array)
    #9 ...
    #10 ...
    #11 ...
    #12 /XXX/web/wordpress/wp-includes/template.php(790): require_once('/XXX...')
    #13 /XXX/web/wordpress/wp-includes/template.php(725): load_template('/XXX...', true, Array)
    #14 /XXX/web/wordpress/wp-includes/general-template.php(48): locate_template(Array, true, true, Array)
    #15 ...: get_header()
    #16 /XXX/web/wordpress/wp-includes/template-loader.php(106): include('/XXX...')
    #17 /XXX/web/wordpress/wp-blog-header.php(19): require_once('/XXX...')
    #18 /XXX/web/index.php(17): require('/XXX...')
    #19 {main} thrown in /XXX/web/wp-content/plugins/autodescription/inc/classes/data/plugin.class.php on line 207

    Thank you for any help.

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

    (@cybr)

    Hello!

    Thank you for the report.

    This is due to an edge case where a new caching option isn’t registered in the database during the upgrade. This can be caused by an object caching plugin, a server bug/fluke, or a database cleaner plugin, and I recently committed a workaround.

    A quick DIY workaround is to downgrade TSF and upgrade again, which should reinstate the missing option, hence fixing the crash.

    It’ll be addressed in TSF v5.0.2, which I plan to release in about 24 hours.

    Thread Starter greenya

    (@greenya)

    Just updated to 5.0.2 and it seems all is working fine now.

    Thank you!

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

The topic ‘Uncaught TypeError: array_merge() … in plugin.class.php:207’ is closed to new replies.