Hi Emanuel,
After further investigation I can tell you the following;
A. The image file and the thumbnail are being uploaded correctly but are stored in /upload/tmp in the format "32_character_hex_number_the_name_I_entered.jp g" e.g. 6c9d82721831f2a464ddc59c4c993824_Swansplash.jpg
B. The uploads appear to be correctly recorded in the DB table site_oxymall_plugin_galleries_items
C. The Gallery looks for a file matching the item_id and expects to find it in the directory /upload/galleries.
If, for example, I move the file 6c9d82721831f2a464ddc59c4c993824_Swansplash.jpg from /upload/tmp to /upload/galleries and rename it 13.jpg, the Gallery Software will find it.
D. The Gallery looks for a file matching the item_id () and expects to find it in the directory /upload/galleries/"item_cat" - in this case /upload/galleries/4 where 4 is the category Id of that particular Gallery.
Then I need to move the thumbnail file 799cec6ea4aa1817171c0469d3a56eed_Swansplash.jpg from /upload/tmp to /upload/galleries/ and rename it tn_13.jpg and the Gallery Software will find it.
E. Even after doing all that the Admin software won't find either file.
F. The POST is recorded in the Apache access_log e.g.
81.6.237.240 - - [15/Feb/2012:20:40:04 +0000] "POST /admin/index.php?mod=oxymall&sub=oxymall.plugin.gallery.i mages&action=store&module_id=53 HTTP/1.1" 200 - "http://www.eapu.eu/admin/index.php?mod=oxymall&sub=oxymall.plugin.gallery.i mages&&action=add&item_cat=0&module_id=53&returnurl=%2Fadmin%2Findex.php%3Fmod %3Doxymall%26sub%3Doxymall.plugin.gallery.images%2 6module_id%3D53%26returnurl%3D" "Mozilla/5.0 (Windows NT 6.0; rv:10.0.1) Gecko/20100101 Firefox/10.0.1"
Two things strike me about this string;Several things are now becoming clearer;
- The module_id=53 which is correct but the item_cat=0 is not. There is no item_cat of 0. In this particular case the item_cat should equal 4.
The correct item_cat was recorded in the DB table site_oxymall_plugin_galleries_items but the item_cat appears to be unknown to the software at this point in the workflow.- I apologise - I now use Firefox 10.0.1
I hope this is helpful Emanuel and I hope I have understood the architecture well enough to make some sort of sense.
- The upload of the files is not being blocked - they end up in /tmp in perfect condition.
- The data is recorded correctly in the DB - almost certainly a separate process to the actual positioning on disc of the uploaded files.
- If I perform manually the moves and renames that the admin software ought to perform automatically, the public site software finds and displays the thumbnail and image files correctly.
- It may be that the problem relates to the non-existent item_cat in the POST string. I don't know enough about the code to know if it matters. The item_cat is the cat_id which identifies the specific gallery and is also the number of the sub-directory in which thumbnail image is stored.
All the best,
Chris Marshall "CCC"



Reply With Quote
Bookmarks