PHP Fatal error and 500 server error

Has anyone faced this. Server logs show below error :

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 8026310038574424992 bytes) in C:\vhosts\domain[dot]com\httpdocs\blog\wp-includes\option.php on line 1247

The status code is 500.

How to resolve the issue?

1 Like

To fix, increase PHP memory limit. You can search on Google how to do this.

1 Like

Unfortunately this didn’t work. Changing theme, disabling plugins, replacing core files, nothing worked. It was trying to allocate insane amount of memory! (8026310038574424992 bytes).

The issue get resolved currently by changing PHP version from 7.2 to 7.1. It might be something related to running WordPress on Windows server.