Configuration error on CMS preview
Opened this issue · 0 comments
joshlcronin commented
When editing a page in the CMS with the edit form and preview side-by-side I get the following error:
Uncaught Cloudinary\Exception\ConfigurationException: Invalid configuration, please set up your environment
In Chrome, if I right click "Reload frame" the error goes away. However, when I click to edit another page the same error comes back, again I can reload the frame to get rid of it.
I have added the following line to my public/index.php file to try and resolve this but still no success:
putenv("CLOUDINARY_URL=cloudinary://API_KEY:API_SECRET@CLOUD_NAME");
The website works normally when not in the CMS.
SilverStripe 4.11
PHP 7.4.9
Any ideas?