cloudinary-community / cloudinary-laravel

Laravel SDK for Cloudinary
MIT License
255 stars 71 forks source link

ERROR: Invalid configuration, please set up your environment #105

Open hashpilot opened 6 months ago

hashpilot commented 6 months ago

Error: Cloudinary Configuration Issue I am using the latest version "cloudinary-labs/cloudinary-laravel": "^2.0",

I've set up Cloudinary in my project, and it's working perfectly on localhost. However, upon uploading it to the server, I'm encountering the following error:

Error: Cloudinary\Exception\ConfigurationException: Invalid configuration, please set up your environment in file /var/www/api.eko.com/vendor/cloudinary/cloudinary_php/src/Configuration/Configuration.php on line 293

Here are some key points to consider:

Double-Checked Credentials: I've verified that my CLOUDINARY_URL credentials are correctly configured in the .env file.

After uploading to the server, I executed the following commands: php artisan optimize php artisan optimize:clear php artisan config:clear

PHP Version Consistency: I'm using the same PHP version (8.1) on both my local development environment and the server.

Functional .env Loading: The .env file is correctly configured and loading, as evidenced by my successful database connection.

gabo8191 commented 3 months ago

Hello @hashpilot , I have the same problem, could you find a solution?

unicodeveloper commented 3 months ago

@gabo8191 @hashpilot It was answered in this issue here https://github.com/cloudinary-community/cloudinary-laravel/issues/1