Greetings EE Team,
My issue could be related to these threads:
http://ellislab.com/forums/viewthread/192969/
http://ellislab.com/forums/viewthread/195320/
I’m using a recently purchased EE 2.2.1 version with the 7-05-11 hotfix, running on a localhost/XAMPP.
I’m able to upload images using the safecracker file fieldtype. My problem has to do with deleting them. After clicking the grey “X” on the image and submitting the form, it appears the image has been deleted. But the File Manager in the EE Control Panel still shows the image in the directory. This happens when editing the entry in both the Control Panel and the safecracker form.
On the pages that include a safecracker form, I’m getting the following error:
A PHP Error was encountered
Severity: Notice
Message: Use of undefined constant BASE - assumed ‘BASE’
Filename: libraries/Filemanager.php
Line Number: 842
To debug, I replaced all instances of the “BASE” constant with the value set in line 675:
$this->EE->functions->fetch_site_index(0,0).QUERY_MARKER
No PHP errors occurred after that, and the JSON seemed to be sent correcly. But the problem remained - images were not being deleted from the directory.
Also, I’m loading jquery in my html head tags and using “include_jquery=“no” in my safecracker form. I tried moving my jquery loading script to my footer but no result.
Looking forward to your response!