Elementor Conflict
-
- [ x ] I’ve read and understood the contribution guidelines.
- [ x ] I’ve searched for any related issues and avoided creating a duplicate issue.
Please give us a description of what happened.
I’m getting a critical error when I try to ‘edit with Elementor’ on a custom post-type post. The Email from WP is as follows:
WordPress version 6.1.1
Active theme: Hello Elementor (version 2.6.1)
Current plugin: Yoast SEO (version 20.3)
PHP version 8.1.13Error Details
An error of type E_ERROR was caused in line 1033 of the file /www/domain.com/public/wp-content/plugins/wordpress-seo/inc/class-wpseo-meta.php. Error message: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, bool given in /www/domain.com/public/wp-content/plugins/wordpress-seo/inc/class-wpseo-meta.php:1033
Stack trace:0 /www/domain.com/public/wp-content/plugins/wordpress-seo/inc/class-wpseo-meta.php(1033): array_map(Object(Closure), false)
1 /www/domain.com/public/wp-content/plugins/wordpress-seo/admin/formatter/class-post-metabox-formatter.php(178): WPSEO_Meta::keyword_usage(‘legal translati…’, 12839)
2 /www/domain.com/public/wp-content/plugins/wordpress-seo/admin/formatter/class-post-metabox-formatter.php(159): WPSEO_Post_Metabox_Formatter->get_keyword_usage_for_current_post(‘legal translati…’)
3 /www/domain.com/public/wp-content/plugins/wordpress-seo/admin/formatter/class-post-metabox-formatter.php(72): WPSEO_Post_Metabox_Formatter->get_focus_keyword_usage()
4 /www/domain.com/public/wp-content/plugins/wordpress-seo/admin/formatter/class-metabox-formatter.php(45): WPSEO_Post_Metabox_Formatter->get_values()
5 /www/domain.com/public/wp-content/plugins/wordpress-seo/admin/metabox/class-metabox.php(289): WPSEO_Metabox_Formatter->get_values()
6 /www/domain.com/public/wp-content/plugins/wordpress-seo/admin/metabox/class-metabox.php(908): WPSEO_Metabox->get_metabox_script_data()
7 /www/domain.com/public/wp-includes/class-wp-hook.php(308): WPSEO_Metabox->enqueue(‘post.php’)
8 /www/domain.com/public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
9 /www/domain.com/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
10 /www/domain.com/public/wp-admin/admin-header.php(118): do_action(‘admin_enqueue_s…’, ‘post.php’)
11 /www/domain.com/public/wp-admin/edit-form-blocks.php(309): require_once(‘/www/domain.com…’)
12 /www/domain.com/public/wp-admin/post.php(187): require(‘/www/domain.com…’)
13 {main}
thrown
When I disabled Yoast and tried again, it worked fine, then reactivated Yoast and I’m hit with the critical error once again.
The issue doesn’t seem to be happening on other posts and pages generally, just this CPT post
Please describe what you expected to happen and why.
I expected to click ‘edit with Elementor’ and be able to edit the post
How can we reproduce this behaviour?
- Not Sure
Technical info
- WordPress version: 6.11
- Yoast SEO version: 20.3
- If relevant, which editor is affected (or editors):
- [ ] Classic Editor
- [ ] Gutenberg
- [ ] Classic Editor plugin
- [ x ] Elementor Pro
- Which browser is affected (or browsers):
- [ ] IE11
- [ ] Edge
- [ x ] Chrome
- [ ] Firefox
- [ ] Safari
- Relevant plugins in case of a bug:
- Tested with theme: Hello Elementor
The topic ‘Elementor Conflict’ is closed to new replies.