cloudinary / cloudinary_magento

Cloudinary's Magento extension. Upload product images to the cloud, manipulate them to match your graphic design and optimize images for better user experience
MIT License
16 stars 17 forks source link

Non existant classes #31

Closed iva-fullers closed 6 years ago

iva-fullers commented 6 years ago

When I am running:

setup:di:compile

I am getting this:

Class Cloudinary\Api does not exist

And in Admin if I try to save config I am getting that Cloudinary class is not defined, and it is used in:

/app/code/Cloudinary/Cloudinary/Core/Security/CloudinaryEnvironmentVariable.php

Am I missing some library or what is it?

I am having Magento2 Commerce Cloud solution.

idobarnoam commented 6 years ago

Hi @iva-fullers

The error might mean that Magento has not loaded the Cloudinary PHP library that the Cloudinary Magento module uses.

To install it manually run the composer require command from your Magento installation root directory:

Composer require cloudinary/cloudinary_php:1.8.0

iva-fullers commented 6 years ago

Hi, yes. All good now. One of the modules loading prior was causing an issue. All good. Thank you.