Whoops\Exception\ErrorException thrown with message "Trying to access array offset on value of type null"
Stacktrace:
#4 Whoops\Exception\ErrorException in /var/www/enginegp/system/acp/sections/tarifs/index.php:42
#3 Whoops\Run:handleError in /var/www/enginegp/system/acp/sections/tarifs/index.php:42
#2 include in /var/www/enginegp/system/acp/engine/tarifs.php:32
#1 include in /var/www/enginegp/system/acp/distributor.php:64
#0 include in /var/www/enginegp/acp/index.php:47
This change replaces the use of $_SERVER['SERVER_NAME'] with $_SERVER['HTTP_HOST'] throughout the codebase. The modification ensures consistency and compliance with best practices, since $_SERVER['HTTP_HOST'] is often used to extract the host header from an HTTP request. This update may improve compatibility and security, especially in scenarios where the Host header plays a key role in proper server configuration and routing. Please review and test the changes carefully to ensure smooth functionality in different environments.
Added support:
1. Composer for packages below;
2. symfony/polyfill to work with newer versions of php
3. filp/whoops to display php errors on screen
4. monolog/monolog for logging errors to a file and browser console
Whoops\Exception\ErrorException thrown with message "Trying to access array offset on value of type null"
Stacktrace:
#3 Whoops\Exception\ErrorException in /var/www/enginegp/data/www/demo.enginegp.com/system/engine/jobs.php:11
#2 Whoops\Run:handleError in /var/www/enginegp/data/www/demo.enginegp.com/system/engine/jobs.php:11
#1 include in /var/www/enginegp/data/www/demo.enginegp.com/system/distributor.php:90
#0 include in /var/www/enginegp/data/www/demo.enginegp.com/index.php:51
Whoops\Exception\ErrorException thrown with message "Trying to access array offset on value of type null"
Stacktrace:
#3 Whoops\Exception\ErrorException in /var/www/enginegp/data/www/demo.enginegp.com/system/engine/jobs.php:51
#2 Whoops\Run:handleError in /var/www/enginegp/data/www/demo.enginegp.com/system/engine/jobs.php:51
#1 include in /var/www/enginegp/data/www/demo.enginegp.com/system/distributor.php:90
#0 include in /var/www/enginegp/data/www/demo.enginegp.com/index.php:51