Features / Usability

Features / Usability

Cannot delete images from image galleries

posts: 20

I am using 3.2 and have updated recently. I can create image galleries and upload images but I cannot delete them, even as admin. I do not get an error nor do I see any listed PHP errors. The images can be replaced however, with a new uploaded image- once an entry is created, it be modified but cannot be removed. I have tried switching back and forth from the database to a directory and back again, creating database only galleries and vice versa, and the results are the same. I can delete the gallery, however.

Please suggest some means of troubleshooting and/or resolving this issue.

posts: 20

The resolution was to turn off search friendly URLs. This doesn't seem like a "friendly fix" (pun intended) to me, but its functional. This also fixed all sorts of issues I was having with galleries, such as sorting. It seems the tiki-browse_gallery.php script was losing its arguments. This would make sense since the rewrite rule drops anything but the id:

RewriteRule ^galleries$            tiki-galleries.php                       [L]
RewriteRule ^gallery([0-9]+)       tiki-browse_gallery.php?galleryId=$1     [QSA,L]

This translates




when it should be


A fix, as grossly applied as can be, would be something like:

RewriteRule ^gallery([0-9]+)(.*)       tiki-browse_gallery.php?galleryId=$1$2     [QSA,L]

This fixes all the issues with image galleries that require a GET method of arguments (sorting, removing, etc).

I'm no whiz at web dev but it seems like the .htaccess rewrite rules require an audit. How do I file a bug? I'm open to filing suggestions as I find them as long as I can get some constructive feedback.