• Resolved barkster28

    (@barkster28)


    When I try to create new post I get the error below. If I deactivate the plugin everything works fine. Any help would be appreciated. Thanks

    Warning: Creating default object from empty value in /var/www/public_html/wp-admin/includes/post.php on line 642

    Warning: Invalid argument supplied for foreach() in /var/www/public_html/wp-content/plugins/wordpress-seo/admin/metabox/class-metabox.php on line 971
    Skip to main contentSkip to toolbar

    Fatal error: Uncaught TypeError: Argument 1 passed to WPSEO_Admin_Bar_Menu::get_post_focus_keyword() must be an instance of WP_Post, instance of stdClass given, called in /var/www/public_html/wp-content/plugins/wordpress-seo/inc/class-wpseo-admin-bar-menu.php on line 204 and defined in /var/www/public_html/wp-content/plugins/wordpress-seo/inc/class-wpseo-admin-bar-menu.php:474 Stack trace: #0 /var/www/public_html/wp-content/plugins/wordpress-seo/inc/class-wpseo-admin-bar-menu.php(204): WPSEO_Admin_Bar_Menu->get_post_focus_keyword(Object(stdClass)) #1 /var/www/public_html/wp-content/plugins/wordpress-seo/inc/class-wpseo-admin-bar-menu.php(61): WPSEO_Admin_Bar_Menu->add_keyword_research_submenu(Object(WP_Admin_Bar)) #2 /var/www/public_html/wp-includes/class-wp-hook.php(286): WPSEO_Admin_Bar_Menu->add_menu(Object(WP_Admin_Bar)) #3 /var/www/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #4 /var/www/public_html/wp-includes/plugin.php(515): WP_Hook-> in /var/www/public_html/wp-content/plugins/wordpress-seo/inc/class-wpseo-admin-bar-menu.php on line 474

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Michael Tiña

    (@mikes41720)

    Can you confirm you are using the latest versions of WP 4.9.8 and Yoast SEO 8.1.2?

    It could be a plugin or theme conflict. Can you try and gather as much information for us as possible? Please perform the following:

    1. Make sure the issue doesn’t persist when Yoast SEO is disabled.
    2. Check for conflicts.
    3. Check for JavaScript errors with your console.

    If you find any JavaScript errors related to Yoast SEO or if there is a conflict with a plugin or a theme, you can create a new GitHub issue for our developers. Please report the issue to a third party developer as well.

    If you didn’t find any conflicts or errors, we think the issue is specific to your site. We’d need to investigate further but are unable to do so on these forums. You can purchase Yoast SEO Premium and receive our Premium email support and we can help you further.

    Plugin Support Michael Tiña

    (@mikes41720)

    No further response, setting to resolved.

    I am facing similar problem. Error only occurs on pages produced with the plugin WP-Property.

    http://deborahcorretora.com.br/properties/residencial-maria-altair/

    Error: “Catchable fatal error: Argument 1 passed to WPSEO_Admin_Bar_Menu::get_post_focus_keyword() must be an instance of WP_Post, instance of stdClass given, called in /w01/d/deborahimoveis/deborahcorretora/wp-content/plugins/wordpress-seo/inc/class-wpseo-admin-bar-menu.php on line 204 and defined in /w01/d/deborahimoveis/deborahcorretora/wp-content/plugins/wordpress-seo/inc/class-wpseo-admin-bar-menu.php on line 474”

    I already updated the plugins
    WP-Property and Yoast SEO, but the error persists. Can you help me?

    I am facing similar problem. Error only occurs on pages produced with the plugin WP-Property.

    http://deborahcorretora.com.br/properties/residencial-maria-altair/

    Error: “Catchable fatal error: Argument 1 passed to WPSEO_Admin_Bar_Menu::get_post_focus_keyword() must be an instance of WP_Post, instance of stdClass given, called in /w01/d/deborahimoveis/deborahcorretora/wp-content/plugins/wordpress-seo/inc/class-wpseo-admin-bar-menu.php on line 204 and defined in /w01/d/deborahimoveis/deborahcorretora/wp-content/plugins/wordpress-seo/inc/class-wpseo-admin-bar-menu.php on line 474”

    I already updated the plugins
    WP-Property and Yoast SEO, but the error persists. Can you help me?

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

The topic ‘Creating default object from empty value post.php’ is closed to new replies.