Allowed memory size of n bytes exhausted

I’ve tried for weeks to get down to the bottom of this error and I feel like it’s going to be a matter of giving up. Reaching out here (though I know it’s probably not a Hestia issue) in the hope that someone might have a solution

Wordpress website, migrated from 20i onto my own server. Error:

“Fatal error: Allowed memory size of 4294967296 bytes exhausted (tried to allocate 4096 bytes) in /home/accountname/web/domain.com/public_html/wp-includes/class-wp-dependencies.php on line 260”

Everywhere I look, the advice/help is to increase the max. memory limit in one way or another, either by modifying the php.ini file, modifying apache or by modifying various Wordpress files and the .htaccess file but of course, if any of that worked, I wouldn’t be asking here.

I’ve increased the memory limit to as much as 4GB and still the error persists (I can’t help but feel that simply increasing the limit like this is just like brushing the issue beneath the rug anyway)

Note: I hate wordpress

Many thanks

If increasing the memory limit did not resolve the issue, I recommend disabling all plugins and themes on your WordPress site. Then, activate them one by one to identify if any of them is causing the problem.

1 Like

Thanks, though I’m way ahead of you bud. Disabling plugins (by renaming the plugins folder) was one of the first things I tried as it seems to be the go-to solution that every wordpress expert comes up with first.

Susspecting that it’s a problem with my server (courrpt PHP files) I even done a fresh install of Hestia onto a fresh install of Ubuntu and it made no difference.

Then I’m afraid I can’t help you. I hope someone on the forum can give you a hand to solve it.

1 Like

Have you tried something like query monitor?

or

You can try to diff your wordpress files with original ones using diff, wp-cli or plugin like sucuri (free is fine I guess). Maybe there’s some modified file that’s casusing memory leak.

Regards

The issue persists when the plugin folder is renamed?

Next i’d try switching the active theme

If the issue is there with default theme and no plugins, you’ll need to use tools like strace to find out what PHP is doing