Home › Forums › WoodMart support forum › Random error with PHP
Random error with PHP
- This topic has 7 replies, 2 voices, and was last updated 1 day, 14 hours ago by Artem Temos.
-
AuthorPosts
-
February 2, 2025 at 11:24 am #634768
arian.skParticipantAfter installing the theme, there was an error with php, which caused the site to crash.
[31-Jan-2025 00:30:19 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 4295229440 bytes) in /home/***/***/wp-includes/theme.php on line 189
[31-Jan-2025 22:29:00 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 4295229440 bytes) in /home/***/***.com/wp-includes/theme.php on line 325I was able to fix it by turning off all plugins through cpanel. I wasn’t running any other plugins besides litespeed and smtp, so I don’t think needing 4GB of RAM seems natural, right?
February 3, 2025 at 10:28 am #634843
Artem TemosKeymasterHello,
Thank you so much for contacting our support center.
To better assist you, could you kindly test the functionality with default WordPress themes such as TwentyTwenty or WooCommerce Storefront? This will help us determine whether the issue stems from our theme or elsewhere.
Regards
February 3, 2025 at 3:28 pm #635022
arian.skParticipantThe issues doesn’t accure on the basic themes. Right now it happened again when I updated the pictures in the slides plugin. Site crashed, fixed once I restarted the litespeed cache plugin. The php line in theme.php which shoots my resources up is:
function get_template() {
/**
* Filters the name of the active theme.
*
* @since 1.5.0
*
* @param string $template active theme’s directory name.
*/
return apply_filters( ‘template’, get_option( ‘template’ ) );
}February 3, 2025 at 4:13 pm #635039
Artem TemosKeymasterWe need to be able to reproduce this error on your website to check if the problem is caused by our theme or not.
February 3, 2025 at 5:22 pm #635060
arian.skParticipantIs there a way to troubleshoot or log this kind of infos?
February 3, 2025 at 5:57 pm #635067
Artem TemosKeymasterMost likely, it is caused by some of the installed plugins. The theme doesn’t take so much memory by itself.
February 3, 2025 at 6:00 pm #635071
arian.skParticipantI assume so too, I use the LiteSpeed Cache Plugin, nothing else besides your recommended/needed plugins. Any advice what sites to include/not include?
February 4, 2025 at 10:20 am #635172
Artem TemosKeymasterTry to disable this plugin and test your website for some time to see if it is somehow related.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register