also I don't find the document in the attachment table: mysql> select * from xwikiattachment where XWA_AUTHOR = 'XWiki.OsnerJoseph'; +-------------+------------+----------------+----------+---------------------+-------------------+-------------+-------------+ | XWA_ID | XWA_DOC_ID | XWA_FILENAME | XWA_SIZE | XWA_DATE | XWA_AUTHOR | XWA_VERSION | XWA_COMMENT | +-------------+------------+----------------+----------+---------------------+-------------------+-------------+-------------+ | 493824533 | 1329616320 | 132795189.img | 81721 | 2006-02-10 09:45:26 | XWiki.OsnerJoseph | 1.1 | | | -1859509744 | 337185142 | nicky.jpg | 23505 | 2006-02-10 10:01:51 | XWiki.OsnerJoseph | 1.3 | | | 1870603601 | 337185142 | osner.jpg | 31151 | 2006-02-10 11:34:43 | XWiki.OsnerJoseph | 1.3 | | | -427375445 | 337185142 | hotel3.jpg | 91538 | 2006-02-10 10:18:25 | XWiki.OsnerJoseph | 1.1 | | | 1895209951 | 337185142 | joseph.bmp | 800754 | 2006-02-10 11:23:08 | XWiki.OsnerJoseph | 1.1 | | | 1612673344 | -593433723 | HatPicture.jpg | 104435 | 2006-02-11 15:23:30 | XWiki.OsnerJoseph | 1.1 | | | 444268704 | -593433723 | osner.jpg | 31151 | 2006-02-14 10:03:38 | XWiki.OsnerJoseph | 1.1 | | | 652278503 | 1329616320 | jo.jpg | 91538 | 2006-02-14 09:55:37 | XWiki.OsnerJoseph | 1.1 | | | -857322110 | -593433723 | jo.jpg | 91538 | 2006-02-14 09:58:20 | XWiki.OsnerJoseph | 1.1 | | +-------------+------------+----------------+----------+---------------------+-------------------+-------------+-------------+ 9 rows in set (0.00 sec) The problematic files are not there. How is that possible? I also tried $xwiki.flushCache() in the page where the files are attached without success.