AWS Elastic Beanstalk PHP 8.2 Fix

Job ID: 38051824

Budget: $30 – $250 USD

I recently updated my AWS Elastic Beanstalk to PHP 8.2 running on 64bit Amazon Linux 2023/4.1.2. Following this update, something appears to have gone wrong, causing our website to go down.

Key issues:

- The website doesn't load after the PHP 8.2 update on AWS Elastic Beanstalk.
- Connection errors are being reported during the deployment process.
-Environment health has transitioned from Warning to Severe. 100.0 % of the requests are failing with HTTP 5xx. ELB processes are not healthy on all instances. ELB health is failing or not available for all instances.

Website is displaying - Symfony \ Component \ ErrorHandler \ Error \ FatalError - During inheritance of ArrayAccess: Uncaught ErrorException: Return type of Illuminate\Support\Collection::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/app/current/vendor/laravel/framework/src/Illuminate/Support/Collection.php:1349 Stack trace: #0 /var/app/current/vendor/laravel/framework/src/Illuminate/Support/Collection.php(11):

I'm looking for an expert on AWS, PHP 8.2, and Elastic Beanstalk who can navigate through these complexities. Your role will be to troubleshoot and fix these issues, ensuring the smooth running of our website post-update. Prior experience in resolving similar AWS issues is preferred, as is a strong understanding of websites' deployment processes.
Related categories: PHP System Admin Linux MySQL Amazon Web Services