• Resolved pnmark

    (@pnmark)


    • [ 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.13

    Error 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?

    1. 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
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @pnmark

    Thanks for using the Yoast SEO plugin. I tried to replicate the error and was able to edit my CPT with Elementor.

    Often, we see problems occur in combination with another plugin or theme. The fastest way to rule out any conflict is to deactivate all non-Yoast plugins and switch to a standard theme like Twenty Twenty-Two.

    Please test this on your development or staging site if you have one. If not, we recommend using the Health Check & Troubleshooting plugin. This plugin has a troubleshooting mode, which does not affect normal visitors to your site.

    If you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process: How to check for plugin conflicts

    Plugin Support Maybellyne

    (@maybellyne)

    This thread was marked resolved due to a lack of activity, but you’re always welcome to re-open the topic. Please read this post before opening a new request.

    Thread Starter pnmark

    (@pnmark)

    I’ve changed theme to twentytwenty and disabled everything except CPT UI and Yoast and the error continues to occur.

    I disabled Yoast and everything works fine.

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

The topic ‘Elementor Conflict’ is closed to new replies.