SQL error if you add an image on the partal homepage with the basic HTML editor
I use the basic HTML editor and I want to add an image on the portal homepage.
I've got a SQL error
DATABASE ERROR #1064:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND path LIKE BINARY 'milo/www/chamilo.classic/home/default_platform_document/te' at line 1
SELECT id FROM `chamilo19`.`c_document` WHERE c_id = AND path LIKE BINARY 'milo/www/chamilo.classic/home/default_platform_document/template_thumb' LIMIT 1
Pb in file main/inc/lib/fckeditor/editor/plugins/ImageManager/Classes/ImageManager.php
Updated by Yannick Warnier over 7 years ago
Images that are global should not be stored in the documents table (or maybe with a c_id = 0? but I don't like that).
The images themselves should be stored in the directory wherever the already-available images (globally) are taken from. I think it's default_course_documents/images/ ...