• Resolved Daniram

    (@daniram)


    Hello,

    after updating the plugin to version 14.9 whenever I try to reach to the posts list (back-end) of a custom post type which makes intensive use of custom fields (ACF Pro) I get:

    “Fatal error: Allowed memory size exhausted in /public_html/wp-includes/wp-db.php”

    This issue is not present on Yoast SEO 14.8.1, please see the comparison image: https://ibb.co/hLYwfJg

    ENVIRONMENT:
    PHP version: 7.4.8
    Allocated memory: 256M

    I tried to debug a bit on localhost by:

    • increasing PHP memory limit to 2048M in .htaccess

      php_value memory_limit 2048M // minimum required to get the custom posts list to show

    • deactivating all plugins except:
    • ACF Pro 5.9.0
    • Yoast SEO 14.9
    • Query Monitor 3.6.4

    This changes allowed me to get the custom posts list to show back again on backend (https://localhost/site/wp-admin/edit.php?post_type=map) without getting the ‘memory size exhausted’ error. I could then run Query Monitor which showed a huge increase in database query time with Yoast SEO 14.9 (see: https://ibb.co/hLYwfJg).

    Are you already addressing this issue?

    Thanks in advanced,
    Dan

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support devnihil

    (@devnihil)

    @daniram Can you confirm you are using WordPress 5.4/5.5? You can check by clicking on the W in the top left and selecting About. If you need to update, please check with your host provider.

    Please know that if you are using an older version of WordPress Core you may experience unexpected behavior with Yoast. This guide explains more: https://yoast.com/why-we-dont-support-old-wordpress-versions/
    ?
    ?Also, are you able to provide details of the queries that are occurring while the ‘Fatal error: Allowed memory size exhausted’ error occurs?

    Thread Starter Daniram

    (@daniram)

    @devnihil Thanks for your reply.

    Forgot to mention that installed WordPress version is 5.5.1. Sorry for that.

    Here you can see two slow queries which shows up in Query Monitor after updating Yoast SEO to 14.9: https://ibb.co/7zFbPk6.

    Hope this helps,
    Dan

    Plugin Support Rumejan Barbarona

    (@onlyincebu)

    Hey Dan!

    This could be caused by a conflict with another plugin or your theme. Can you please make sure you’re running the latest version of your theme and ALL other plugins?

    Since the release of WordPress 5.5, we’ve seen quite a few conflicts, especially with those that are running older codes. Most plugin and theme developers released an update after the WordPress 5.5 release. Please check your other plugins if there are any that haven’t been updated for very long. If you found any, please try deactivating it and see if it fixes the issue.

    If everything’s updated, please perform a conflict check. The fastest way to do this is to deactivate all non-Yoast plugins and switch to a standard theme like Twenty Nineteen. If no issue occurs, reactivate your other plugins one at a time and see if the issue occurs for every plugin reactivated. Lastly, reactivate your theme.

    Please test this on your development or staging site, if you have one. If not, please use the Health Check & Troubleshooting plugin. This plugin allows you to run a conflict check without affecting normal visitors to your site. Steps here.

    Thread Starter Daniram

    (@daniram)

    @onlyincebu Thanks for your reply.

    ALL of installed plugins are up to date.

    On my staging site I only have 3 plugins activated (please read my first post) and the theme is a custom (very basic) one which did not give any problems or (JS/jQuery) conflicts after WordPress 5.5 update.

    Already checked Health Check & Troubleshooting plugin and nothing partcular is showing up there.

    If I revert to Yoast SEO 14.8.1 everything is working back again normally (here again, please read my first post and screenshots…).

    So the only variable here would seem to be Yoast SEO 14.9.

    Also, I noticed that in Yoast SEO 14.9 you made some modification on how DB queries are performed. Might that be the culprit?

    Thanks,
    Dan

    Hi @daniram,

    Just to summarize, you’re seeing slower queries and an error in the WordPress posts overview screen when you try to view the list of your “Map” custom post type posts (over 1K posts and showing 55 per screen). You’ve done a conflict check and found that this problem only happens with ACF Pro and Yoast SEO 14.9, but not with 14.8.1. Is that correct?

    The database query change mentioned in the 14.9 changelog should only affect updating pages. Can you confirm that you’ve allowed Yoast SEO to speed up your pages? If you go to SEO > Tools and look under SEO data, you should see a green checkmark.

    If you’re able to give us details about your custom post type and ACF setup so that we can reproduce the problem, we recommend that you create a new GitHub issue for our developers.

    If you don’t have that information, we’d like to take a closer look at your site, 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 devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Memory size exhausted after updating to 14.9’ is closed to new replies.