• Resolved catacaustic

    (@catacaustic)


    I’m geting this message in the optimisation page:

    SEO data optimization is disabled for non-production environments.

    I’ve looked at all of the settings that I can, and I can’t find anything that can help with this problem. The site isn’t set up as anything different then production.

    The site is a Network set up, and there’s only one site (out of 5) that has this problem. The rest are all fine. Does anyone know what can be done to let the indexing happen?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Jerlyn

    (@jerparx)

    Hi @catacaustic ,

    The message you are getting is expected to show on staging environments.

    First of all, we’d like to explain a little bit how our plugin works regarding the management of data in the WordPress database. Yoast SEO makes use of and manages an indexable table in the WordPress database where it stores all the SEO data of your website, i.e. SEO titles, meta descriptions, canonical URLs, etc. Since Yoast SEO v15.1, this table is only processed in production environments. You can read more of it here: https://yoast.com/yoast-seo-15-1/.

    Thread Starter catacaustic

    (@catacaustic)

    I do understand that, but that is the whole problem. This is not a staging site. This is a live site where your plugin thinks that it’s a staging site when it’s not.

    Where can I find the settings to change this, or is it a value/flag stored in the database somewhere?

    Plugin Support Jerlyn

    (@jerparx)

    Hi @catacaustic ,

    We are sorry to hear that this is happening on a live site.
    In WordPress 5.5, wp_get_environment_type() function was introduced. The default should have been 'production'. If this did not return true on your site, you can set the WP_ENVIRONMENT_TYPE constant to 'production' by adding the line below to the wp-config.php file.

    define( 'WP_ENVIRONMENT_TYPE', 'production' );

    You can read more about it here.

    Hope this fixes your issue.

    Thread Starter catacaustic

    (@catacaustic)

    Thanks for that information. That should point me in the right direction. I’ll see what’s not working right with that part of the site.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can’t run SEO data optimisation’ is closed to new replies.