Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
in Q2A Core by

When I edit a question containing images I get a lot of warnings.

First of all, here is an example of a question containing a gif:


Logging in as Admin, and choosing to edit this question I get:

Warning: file_get_contents() [function.file-get-contents]: Unable to access fileAttachments/000/ . in/var/www/lektiesos.dk/public_html/qa-include/qa-app-blobs.php on line 140

Warning: file_get_contents(fileAttachments/000/ .) [function.file-get-contents]: failed to open stream: No such file or directory in /var/www/lektiesos.dk/public_html/qa-include/qa-app-blobs.php on line 140

Notice: Undefined index: format in /var/www/lektiesos.dk/public_html/qa-include/qa-base.php(510) : eval()'d code on line 94

Notice: Undefined index: filename in /var/www/lektiesos.dk/public_html/qa-include/qa-base.php(510) : eval()'d code on line 97

In qa-config.php I have set images to be saved to disk using

define('QA_BLOBS_DIRECTORY', 'fileAttachments');

Thanks for your help!

Q2A version: Latest
Obviously the folder "fileAttachments/000/" is missing. Have you deleted it manually? Or have you had saving to database enabled beforehand?

If not, please report the bug at https://github.com/q2a/question2answer/issues

Please log in or register to answer this question.