Compatibility issue with ACF Pro

#467905
  • Resolved Kim Maisch
    Rank Math free

    Hi,
    We use ACF Pro and also RankMath.

    I have an issue where when RankMath is enabled, all our gutenberg blocks that contain ACF fields take a long time to load, and we get 500 and 503 errors on the server.

    As soon as I disable RankMath, this problem disapears.

    I have tried turning off the “ACF” setting in RankMath and this makes no difference.

    I suspect perhaps when RankMath is turned on, it’s creating extra database calls or something for each ACF field, and maxing out the server? Is there a way I can prevent this happening? Disable content AI or something else?

    Cheers,
    Kim

Viewing 15 replies - 1 through 15 (of 15 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    You can install the Query Monitor plugin to check what calls are taking longer on your website and we also recommend setting at least the following server variables:

    
    PHP Memory Limit: 512M
    Max input time: 150
    PHP time limit: 120
    PHP max input variables: 1000
    

    ​​​​​​​Hope this helps pinpoint the exact issue.

    Don’t hesitate to get in touch if you have any other questions.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Thanks Miguel,

    I’ve increased the PHP settings as below – it didn’t seem to help. We’re on PHP 7.4 at the moment (we get a critical error on 8.0 and 8.1).

    I’ve provided the dev site URL – feel free to de-actiate plugins, etc. It seemed to work better when deactivating RankMath. We do have Gravity forms installed also.
    I just tested deactivating Gravity Forms, and activating Rank Math – and that worked OK too. So it seems it can handle one of those plugins but not both at the same time with ACF.

    If you edit this page, it has a number of blocks on it so is good one to test: https://dev.the20.net.au/asoc-dev/wp-admin/post.php?post=3327&action=edit – and view the Javascript console to see the errors appear when either Gravity Forms or RankMath are enabled.

    Cheers,
    Kim

    Hello,

    Checking the post editor URL you shared, we can’t seem to notice any major difference when checking the load time of your editor. We compare it with and without Rank Math.

    Without Rank Math:
    https://i.rankmath.com/i/5vDyK6

    With Rank Math enabled:
    https://i.rankmath.com/i/5vDyK6

    Can you please try clearing your website cache and check it again on your end?

    Looking forward to helping you with this one

    I noticed those PHP errors refer to the breadcrumb module. I disabled that feature – it got rid of those errors, but the other problems still persisited.

    Cheers,
    Kim

    Hello,

    We would like to further debug the issue. Can you please share your FTP login in the sensitive data section as well?

    Looking forward to helping you with this one.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hi Jeremy,

    It’s not so much the load time – but rather the errors and ACF blocks not loading. See screenshots:

    Without Rank Math: https://www.dropbox.com/s/l0udd2vkxf46q6n/no-rank-math.png?dl=1

    With RankMath: https://www.dropbox.com/s/otkhwu08na4ovz4/rankmath.png?dl=1

    Cheers,
    Kim

    Hello,

    There’s an issue with how you implemented our breadcrumbs PHP code. You are using our filter code without returning anything so the filter is called without passing any breadcrumbs object. This will cause an error so for now, I have commented the code and the blocks are now loading.

    invalid filter

    Kindly check on your end if it’s working now.

    Hope that helps.

    Hi Jeremy,

    Thanks. I’m still getting lots of 500 and 503 errors – and the blocks aren’t loading.
    See https://dev.the20.net.au/asoc-dev/wp-admin/post.php?post=3327&action=edit

    If I disable RankMath I don’t get the errors and the blocks load again.

    Cheers,
    Kim

    Hello,

    If you enable only ACF Pro and our plugin you’ll see that the blocks load successfully on the page so the incompatibility is being introduced by another plugin.

    We recommend following the steps here to verify which plugin is causing this issue: https://rankmath.com/kb/check-plugin-conflicts/

    Don’t hesitate to get in touch if you have any other questions.

    Thanks,

    I think it may just be resource limits on the server… if look at QueryMonitor I can see RankMath and Gravity Forms both make around 26 queries each. If I disable either RankMath OR Gravity Forms, the errors go away. Or I can keep RankMath and Gravity Forms enabled and disable all other plugins except ACF, and also get no errors.
    So I think perhaps I’m just using too many plugins, and the end result is exceeding resources on the server…
    Are there any settings in RankMath that I can turn off to help reduce the number of queries?
    Cheers,
    Kim

    Hello,

    You can disable the modules that you don’t use from WP Dashboard > Rank Math > Dashboard. However, we would recommend increasing the server resources to fix the issue.

    Hope that helps. Let us know if you need any other assistance.

    We ended up modifying Cloud Linux to give the site 300% CPU (3 cores) and 3gb RAM. It was set to 200%/1gb previously. That seems to have fixed things…

    Thanks for looking into it too.
    Cheers,
    Kim

    Hello,

    Glad that helped.

    Please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

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

You must be logged in to reply to this ticket.