Hello there,
I'm reaching out regarding an issue I encountered after successfully deploying my application using PHP 8.2 on Google App Engine. It seems that my application is unable to locate any auto-loaded classes. Previously, I managed to meet PSR-4 Autoloading standards by specifying the workspace folder in the composer.json file. However, even with this setup, the issue persists.
Would you have any insights or suggestions on how I can resolve this matter within the Google App Engine environment?
Thank you in advance for your assistance.
composer.json:
Classes folder in root folder:
Namespace declaration in Sanitizer.php:
Use statement & Class/Method called in Index.php:
Error found in Google Logger:
Hi @chikondi,
Welcome to Google Cloud Community!
Mismatch between composer.json configuration and class location/naming.
Solutions:
Code Fix (depending on the cause):
Additional Tips:
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |