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

PHP Warning:  file_get_contents(qa-uploads/150/15015929639481993982.) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory in qa-include/qa-app-blobs.php on line 140

Got this error message today. Has somebody an idea what the reason could be and how to prevent the error the next time?

 

Line 140:

return file_get_contents(qa_get_blob_filename($blobid, $format));

Q2A version: 1.6.2
by
I'd check first if "qa-uploads/150/15015929639481993982." is a valid path on your file system and if the webserver process user has the right permissions to see it.
by
Thanks maxjtechno! Well, the image does not exist. Good advise.

I checked the database and did not find the image "15015929639481993982" (from the request). I wonder how it was possible to call it.
by
edited by
are you storing the blobs on the file system or on the database ? I though the error was reading it from a file system .....  (since the file_get_contents is used)
by
yep, file system. However, each file gets referenced - by q2a - from the qa_blobs table. Thus the blob id should be there but is not.

I checked the image within my backup files. It was an avatar image that the user deleted.

Please log in or register to answer this question.

...