-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Call to undefined function cl_image_upload_tag() in element #7
Comments
I just tried running your code under cakephp 2.4.1 and php 5.4 and it works fine (with the exception that the App::import calls should not have .php in them). What versions of php and cakephp are you using? |
I'm using 5.4.19 and 2.4.1. Note: I'm using the method inside of a CakePHP element. Also, I installed the Cloudinary files via Composer. using |
Works for me inside an element as well. Do you have the following files in your project?
Did you modify them in any way? |
Try to copy only the contents of the src directory to app/Vendor/cloudinary
|
I ended up using the following and it has gotten me passed the
Code reference in view element is below.
|
Looks like $_POST['fileName'] is null which causes an error when trying to construct the PreloadedFile from it. |
Yep, just realized that. Added
to fix the issue. Now I'm realizing that the cl_image_upload_tag doesn't allow you to pass along an id or class. So much for customizing the look of the input. :( EDIT: Man, I must be really sleepy, I just realized that all I need to do is just use existing classes that are assigned. |
BTW: Thanks for all of the help. It seems to be working now! |
You can use:
|
Beautiful, thanks again. |
Happy to help :) |
I think I should have posted the following question to this repo first.
cloudinary/cloudinary_js#12
Any ideas of what may be the issue?
The text was updated successfully, but these errors were encountered: