• Resolved chenryahts

    (@chenryahts)


    I’m getting this error when I loaded a backup of a current site into Xampp on Windows using Php 8, when I go to the pages backend.

    Looks like it’s the error described here: https://www.php.net/manual/en/language.types.declarations.php

    The error I got:

    Fatal error: Uncaught TypeError: Yoast\WP\SEO\Builders\Indexable_Hierarchy_Builder::build(): Argument #1 ($indexable) must be of type Yoast\WP\SEO\Models\Indexable, bool given, called in xampp-php8-testing-site\wp-content\plugins\wordpress-seo\src\integrations\watchers\indexable-ancestor-watcher.php on line 197 and defined in xampp-php8-testing-site\wp-content\plugins\wordpress-seo\src\builders\indexable-hierarchy-builder.php:102 Stack trace: #0 xampp-php8-testing-site\wp-content\plugins\wordpress-seo\src\integrations\watchers\indexable-ancestor-watcher.php(197): Yoast\WP\SEO\Builders\Indexable_Hierarchy_Builder->build(false) #1 [internal function]: Yoast\WP\SEO\Integrations\Watchers\Indexable_Ancestor_Watcher->update_hierarchy_and_permalink(false, 0) #2 xampp-php8-testing-site\wp-content\plugins\wordpress-seo\src\integrations\watchers\indexable-ancestor-watcher.php(126): array_walk(Array, Array) #3 xampp-php8-testing-site\wp-includes\class-wp-hook.php(303): Yoast\WP\SEO\Integrations\Watchers\Indexable_Ancestor_Watcher->reset_children(Object(Yoast\WP\SEO\Models\Indexable), Object(Yoast\WP\SEO\Models\Indexable)) #4 xampp-php8-testing-site\wp-includes\class-wp-hook.php(327): WP_Hook->apply_filters('', Array) #5 xampp-php8-testing-site\wp-includes\plugin.php(470): WP_Hook->do_action(Array) #6 xampp-php8-testing-site\wp-content\plugins\wordpress-seo\src\builders\indexable-builder.php(296): do_action('wpseo_save_inde...', Object(Yoast\WP\SEO\Models\Indexable), Object(Yoast\WP\SEO\Models\Indexable)) #7 xampp-php8-testing-site\wp-content\plugins\wordpress-seo\src\builders\indexable-builder.php(374): Yoast\WP\SEO\Builders\Indexable_Builder->save_indexable(Object(Yoast\WP\SEO\Models\Indexable), Object(Yoast\WP\SEO\Models\Indexable)) #8 xampp-php8-testing-site\wp-content\plugins\wordpress-seo\src\repositories\indexable-repository.php(505): Yoast\WP\SEO\Builders\Indexable_Builder->build(Object(Yoast\WP\SEO\Models\Indexable)) #9 [internal function]: Yoast\WP\SEO\Repositories\Indexable_Repository->upgrade_indexable(Object(Yoast\WP\SEO\Models\Indexable)) #10 xampp-php8-testing-site\wp-content\plugins\wordpress-seo\src\repositories\indexable-repository.php(384): array_map(Array, Array) #11 xampp-php8-testing-site\wp-content\plugins\wordpress-seo\src\integrations\admin\admin-columns-cache-integration.php(109): Yoast\WP\SEO\Repositories\Indexable_Repository->find_by_multiple_ids_and_type(Array, 'post', false) #12 xampp-php8-testing-site\wp-content\plugins\wordpress-seo\src\integrations\admin\admin-columns-cache-integration.php(69): Yoast\WP\SEO\Integrations\Admin\Admin_Columns_Cache_Integration->fill_cache() #13 xampp-php8-testing-site\wp-includes\class-wp-hook.php(303): Yoast\WP\SEO\Integrations\Admin\Admin_Columns_Cache_Integration->maybe_fill_cache('top') #14 xampp-php8-testing-site\wp-includes\class-wp-hook.php(327): WP_Hook->apply_filters('', Array) #15 xampp-php8-testing-site\wp-includes\plugin.php(470): WP_Hook->do_action(Array) #16 xampp-php8-testing-site\wp-admin\includes\class-wp-posts-list-table.php(604): do_action('manage_posts_ex...', 'top') #17 xampp-php8-testing-site\wp-admin\includes\class-wp-list-table.php(1339): WP_Posts_List_Table->extra_tablenav('top') #18 xampp-php8-testing-site\wp-admin\includes\class-wp-list-table.php(1273): WP_List_Table->display_tablenav('top') #19 xampp-php8-testing-site\wp-admin\edit.php(476): WP_List_Table->display() #20 {main} thrown in xampp-php8-testing-site\wp-content\plugins\wordpress-seo\src\builders\indexable-hierarchy-builder.php on line 102

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • @chenryahts

    We’re sorry you’re getting errors from Yoast SEO plugin. I imagine this can be dissapointing for you. We’d like to look a closer look.

    We expect few more information about your setup. This might help us replicate the issue on our end:

    1. Can you confirm you are using the most recent Yoast SEO 17.4? If you update, does the issue resolve?

    2. Are all your non-Yoast plugins and themes also updated?

    3. Can you confirm you are using WordPress 5.8.1? Please know that if you are using an older version of WordPress Core you may experience unexpected behavior with Yoast. This guide explains more:?https://yoast.com/why-we-dont-support-old-wordpress-versions/.

    4. Could you please confirm other plugin requirements were meet?

    5. Are you using any pagebuilder such as Elementor on your site?

    We look forward to hearing from you.

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

    Thread Starter chenryahts

    (@chenryahts)

    @devnihil Please no, it was the weekend ??

    @suascat_wp , here are the answers:

    1. Yes, its’ the latest version

    2. Yes, they are

    3. Yes, very fresh install

    4. Yes, Xampp for Windows 8.0.12 ‘Includes: Apache 2.4.51, MariaDB 10.4.21, PHP 8.0.12, phpMyAdmin 5.1.1, OpenSSL 1.1.1, XAMPP Control Panel 3.2.4,…’ looks like those meet the minimums you’ve linked to.

    5. Nope ??

    I’m really not looking for a solution per say. This is a bug that is new to PHP 8, I just wanted to give a heads up that something is typed wrong and PHP 8 cares

    Thanks for the response though. Please let me know if there are any other questions I can answer

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bug Testing in Php 8’ is closed to new replies.