Webdesigncr3ator

Your Trusted Partner

Category: Wordpress Fix

Fatal error: Allowed memory size of 41943040 bytes exhausted

Solutions:
1) It may be possible to raise your memory limit, as in the thread that mbrsolution links to – add this to your wp-config.php file:
define(‘WP_MEMORY_LIMIT’, ’64M’);

2) You could ask your web hosting company to either raise the limit, or justify it. There’s really no justification for it though – as I say, they’re easily in the bottom 1% there.

3) More technical is to go through your plugins one-by-one to find out which is the one using up most memory. Just because UpdraftPlus tips it over the limit doesn’t indicate that it’s the one using most memory – it just means that when UD gets its turn to run, it uses more memory than what’s left of the 40Mb; but “what’s left” at that stage could be anything. You can try disabling all your other plugins, and looking at the UpdraftPlus page, in the “expert” section (down the bottom) – there, it has a counter of memory used. Re-enable your plugins one-by-one and see which one causes the biggest increase in usage. I’d not really recommend spending huge amounts of time on that, though – it’d be more efficient to pursue 1) and 2) and if they won’t raise it for you, switch to a new web hosting company.

How to hide PHP Warnings and Notices in WordPress

From time to time a user comes to me and says “I see some PHP notices and warnings on my page”.

Most of the time these are nothing to worry about (though the plugin/theme developer should know about these so that they may fix them in a future release). PHP warnings and notices are nothing to worry about on a production site most of the time.
Some of these can even be generated because the developer has to keep compatibility with older versions of WordPress as well as older PHP versions.

The solution:

If you simply set WP_DEBUG to false in your wp-config.php file you should be fine. These don’t affect your site in any way.

However, the problem is that some times the above does not work.
That can happen most times on cheap shared hosts that force displaying PHP warnings and notices.
In that case, you can replace this line from your wp-config.php file:

define('WP_DEBUG', false);

with this:

ini_set('log_errors','On');
ini_set('display_errors','Off');
ini_set('error_reporting', E_ALL );
define('WP_DEBUG', false);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);

I hope that helps someone out there!

বাগ — Fatal error: Call to undefined method WPBakeryShortCode_VC_Row::getShortcode()

ফিক্স — আপডেট করুন আপনার ভিজুয়াল composer 😉

© 2018 Webdesigncr3ator

Theme by Anders NorenUp ↑