PHP Environment & Composer Autoloader Diagnostics
1. Environment
PHP Version: 8.3.6
Running as user: www-data
Current Directory (from script): /var/www/pg-api.bpm-cs.co.uk/emergency-alert-app
2. Autoloader File
Looking for autoloader at: /var/www/pg-api.bpm-cs.co.uk/emergency-alert-app/vendor/autoload.php
Autoloader file found.
Autoloader file is readable.
3. OPcache Status & Invalidation
OPcache is ENABLED. This can cause stale cache issues.
SUCCESS: Attempted to invalidate OPcache for the autoloader file. A page refresh might now work.
4. Including Autoloader & Class Check
Attempting to include the autoloader...
Autoloader included successfully.
Initial Class Check:
The class 'Google\Cloud\Firestore\FirestoreClient' is not yet loaded. Now attempting to trigger the autoloader...
SUCCESS: The class 'Google\Cloud\Firestore\FirestoreClient' was found and successfully loaded by the autoloader.
5. Composer's Internal Class Map
CRITICAL ERROR: The class 'Google\Cloud\Firestore\FirestoreClient' is NOT present in Composer's class map.
This is the core problem. The autoloader has no record of this class. If you see this, `composer dump-autoload -o` did not run correctly or is corrupted.
6. Direct File System Check (Using Path from Class Map)
Skipping direct file check because the class was not found in Composer's map.