yoast-acf-analysis icon indicating copy to clipboard operation
yoast-acf-analysis copied to clipboard

Yoast SEO no longer performing word count. No SEO or Readability analysis

Open Shaner18 opened this issue 4 years ago • 5 comments

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

After upgrading to Yoast SEO 14.8 & WordPress 5.5, Yoast SEO no longer sees the post content, saying on both SEO & readability analysis that the word content is zero. Even going back to posts that Yoast SEO marked as good (green), when I go into edit mode, it no longer see any words. Consequently no analysis take place on the posts.

Please describe what you expected to happen and why.

How can we reproduce this behavior?

Technical info

  • WordPress version: 5.5
  • ACF Content Analysis for Yoast SEO version: 2.6
  • Yoast SEO version: 14.8.1
  • ACF type:Pro
  • ACF version: 5.9
  • Relevant plugins in case of a bug: Classic editor 1.6?

Shaner18 avatar Aug 25 '20 20:08 Shaner18

I am getting the same issue when using Classic Editor 1.6. It looks like Yoast SEO is enqueuing a different script for the classic editor. The script name is "edit-post-classic".

I added the following to my functions.php as a workaround for the time being whilst using version 2.7.

add_filter('admin_enqueue_scripts', function() {
    $yoast_acf_analysis_plugin_data = get_plugin_data( AC_SEO_ACF_ANALYSIS_PLUGIN_FILE );
    $config = Yoast_ACF_Analysis_Facade::get_registry()->get( 'config' );

    // Post page enqueue.
    if ( wp_script_is( WPSEO_Admin_Asset_Manager::PREFIX . 'post-edit-classic' ) ) {
        wp_enqueue_script(
            'yoast-acf-analysis-post',
            plugins_url( '/js/yoast-acf-analysis.js', AC_SEO_ACF_ANALYSIS_PLUGIN_FILE ),
            [ 'jquery', WPSEO_Admin_Asset_Manager::PREFIX . 'post-edit-classic', 'underscore' ],
            $yoast_acf_analysis_plugin_data['Version'],
            true
        );

        wp_localize_script( 'yoast-acf-analysis-post', 'YoastACFAnalysisConfig', $config->to_array() );
    }
}, 20, 0);

ghindle avatar Sep 01 '20 12:09 ghindle

I deactivated the Classic Editor plugin, but for me the same problem persists!

DanaIliescu avatar Sep 22 '20 16:09 DanaIliescu

I can confirm this is still an issue - we are using WP5.5.1, Plugin Version 2.7 - ACF Pro 5.9.1, Yoast 14.9... Yoast can assess everything OK such as titles / meta etc - but cannot assess anything inside the ACF fields... So word count, internal and external link, key phrase in intro, never change from red...

petervinnicombe avatar Sep 25 '20 19:09 petervinnicombe

I deactivated the Classic Editor plugin, but for me the same problem persists!

Deactivating the Classic Editor plugin fixed the issue for me.

markorapaic avatar Sep 29 '20 01:09 markorapaic

removing the classic editor plugin seems to have worked for me as well

Shaner18 avatar Sep 30 '20 17:09 Shaner18

Experiencing the same issue. Deactivating the Classic Editor plugin worked for me as well. My build is running

Wordpress 6.1.1 ACF Content Analysis for Yoast SEO 3.0.1 Advanced Custom Fields PRO 6.0.6 Yoast SEO 19.13

Which means everything is up to date as of this comment

marthmf avatar Dec 29 '22 19:12 marthmf

same issue here

stephanedemotte avatar Jan 25 '23 17:01 stephanedemotte

Duplicate of #271

jeroenrotty avatar Jun 01 '23 09:06 jeroenrotty