Tester
Tester

Reputation: 21

Fatal error: Uncaught Error: Class 'Cloudinary' not found

When I try to upload a image in cloudinary am getting "Fatal error: Uncaught Error: Class 'Cloudinary' not found" this error in my config file.

And my config file contains:

<?php

\Cloudinary::config(array( 
    "cloud_name" => 'dnxxxxxxd', 
    "api_key" => '981xxxxxxxxxxx0', 
    "api_secret" => '0wlNxxxxxxxxxxxxxxxxxxxx10g'
));
?>

Why I'm getting this ??

Upvotes: 2

Views: 1763

Answers (1)

Dexter
Dexter

Reputation: 9324

05 2021

I hope you found the solution. If not try this

Cloudinary PHP SDK v2.x.

https://github.com/cloudinary/cloudinary_php
Note: cloudinary_php require PHP 5.6. If for some ready you get the error try the version 1.x (legacy)

Cloudinary PHP (legacy)

https://github.com/cloudinary/cloudinary_php/tree/support/1.x

Upvotes: 1

Related Questions