cloudinary-laravel icon indicating copy to clipboard operation
cloudinary-laravel copied to clipboard

ERROR: Invalid configuration, please set up your environment

Open hashpilot opened this issue 1 year ago • 2 comments

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.

hashpilot avatar Nov 03 '23 21:11 hashpilot

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

gabo8191 avatar Feb 06 '24 16:02 gabo8191

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

unicodeveloper avatar Feb 06 '24 17:02 unicodeveloper