Class 'Cloudinary\Error' not found
Hi, I'm trying to use cloudinary and currently integrating with codeigniter.
Well, it worked when I try to use the cl_image_tag with sample.jpg called. But when I'm trying to upload a file, it keeps give me an error "Class 'Cloudinary\Error' not found". So I want to ask something:
1. Do Cloudinary still only support PHP 5.3? since I've used PHP 7
2. Why does it keep giving me an error when Cloudinary is calling the call_api method?
-
Hi,
To answer your questions in order:
1. PHP 7 is supported by our SDK.
2. There is a chance there may be an error with your upload call so the 'error.php' file is being looked for and not found. This file should be located in the src folder so you can include it like so:
require 'src/Error.php';Hope this helps!
-
Good day, I trust you are doing great? Sorry, I am integrating cloudinary into a web application using PHP. I have been able to sucessfully upload files to the Cloudinary account via the website. But I cannot delete files via the website.
(new UploadApi())->upload('images/png3.png'): This is the code that works for uploading the file.$cloudinary = (new UploadApi())->uploadApi->destroy('fospit5jdyahwyuhz1ci'); I try using this to delete files, but I keep getting the error: Warning: Undefined property: Cloudinary\Api\Upload\UploadApi::$uploadApi in C:\xampp\htdocs\Branded\config-cloud.php on line 22
Fatal error: Uncaught Error: Call to a member function destroy() on null in C:\xampp\htdocs\Branded\config-cloud.php:22 Stack trace: #0 {main} thrown in C:\xampp\htdocs\Branded\config-cloud.php on line 22.Please, what is the way out
Please sign in to leave a comment.
Comments
5 comments