Bug Testing in Php 8
-
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!
- The topic ‘Bug Testing in Php 8’ is closed to new replies.