Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 100248136 bytes) in /var/www/html/src/Controller/ConfiguratorsController.php on line 634

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/src/Controller/ConfiguratorsController.php:634) in /var/www/html/vendor/symfony/http-foundation/Response.php on line 322
Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 100248136 bytes) (500 Internal Server Error)

Symfony Exception

OutOfMemoryError

HTTP 500 Internal Server Error

Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 100248136 bytes)

Exception

Symfony\Component\ErrorHandler\Error\ OutOfMemoryError

Show exception properties
Symfony\Component\ErrorHandler\Error\OutOfMemoryError {#652
  -error: array:4 [
    "type" => 1
    "message" => "Allowed memory size of 134217728 bytes exhausted (tried to allocate 100248136 bytes)"
    "file" => "/var/www/html/src/Controller/ConfiguratorsController.php"
    "line" => 634
  ]
}
  1. ['curlHeaders' => $curlHeaders, 'curlBody' => $curlBody, 'curlError' => $curlError] = $this->apiService->getAPIData($request, $url);
  2. //print $url . "<pre>".print_r(['curlHeaders' => $curlHeaders, 'curlError' => $curlError, 'curlBody' => $curlBody], true)."</pre>";
  3. //exit($curlError);
  4. $curlBody = str_ireplace($baseUrl, $localBaseUrl, $curlBody);
  5. $curlBody = str_ireplace($apiBaseUrl, $localApiBaseUrl, $curlBody);
  6. $curlBody = str_ireplace($assetsBaseUrl, $localAssetsBaseUrl, $curlBody);
  7. $curlBody = str_ireplace($placesApiBaseUrl, $localPlacesApiBaseUrl, $curlBody);
  8. $curlBody = str_ireplace('api.oneweb.mercedes-benz.com', "{$localBaseDomain}/fkapi", $curlBody);

Stack Trace

OutOfMemoryError
Symfony\Component\ErrorHandler\Error\OutOfMemoryError:
Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 100248136 bytes)

  at src/Controller/ConfiguratorsController.php:634