Website was working until recently.
This is the common error in the log:
[08-May-2024 15:59:02 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /home/khcpadmin/public_html/wp-includes/class-wp-scripts.php on line 595
Updated to the latest versions and increasing memory limit did not fix the issue.
- PHP memory limit increased to 512M via cPanel, wp-config.php, and .htaccess
- WordPress is 6.5.3
- X theme is 10.4.19
- PHP is 8.3
Switching to any other theme resolves the issue.