Wordpress Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate

Check /var/log/lighttpd/error.log
2019-12-02 06:40:59: (mod_fastcgi.c.2521) FastCGI-stderr: PHP message: PHP Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 36 bytes) in /var/www/html/wordpress/wp-includes/compat.php on line 182

https://wordpress.org/support/topic/fatal-error-allowed-memory-size-of-41943040-bytes-exhausted-tried-to-allocate-4/

To solve this problem you have to increase memory limit
First you need to edit the wp-config.php file on your WordPress site. It is located in your WordPress site’s root folder, and you will need to use an FTP client or file manager in your web hosting control panel.
Next, you need to paste the following code in wp-config.php file just before the line that says ‘That’s all, stop editing! Happy blogging.’

define( 'WP_MEMORY_LIMIT', '256M' );