• Resolved gazjuanalv

    (@gazjuanalv)


    I have installed Yoast SEO on many sites and have never seen this before…

    When starting the First Time Configuration, Yoast is telling me that ‘SEO data optimisation is disabled for non-production environments’ in Step 1? The website is Live and not in ‘non-production’.

    I’ve tried adding the Yoast Helper plugin and resetting Indexables tables & migrations, Internal link counter and Reset First time configuration progress but I’m encountering the same issue.

    I’ve also cleared site cache and also deactivated security and cache plugins and still nothing.

    Note: The website is being hosted on the same server as an additional website which has Yoast installed and SEO data optimisation was successfully completed, i.e. there is no block at server level.

    Any ideas? Many thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @gazjuanalv

    Yes, if you need to run the data optimization, you must set the WordPress environment type to ‘production‘.

    Since WordPress 5.5, the new wp_get_environment_type() function can be used to retrieve the current environment of a site. You can learn more on this from Yoast developer portal

    Thread Starter gazjuanalv

    (@gazjuanalv)

    Hi Mushrit,

    Many thanks for the quick response – very much appreciated.

    Having checked the wp-config.php file I spotted the environment WP_ENVIRONMENT_TYPE was set to ‘local’!

    Must have carried over from when I built the site using Local WP offline and didn’t update when I pushed the site to Live. Will definitely keep my eye out for that in future.

    Have changed to ‘production’ and the SEO Optimisation is now available. 🙂

    I’ll mark this as Resolved.

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

The topic ‘SEO data optimisation is disabled for non-production environments’ is closed to new replies.