Loading...
 
Skip to main content

Features / Usability


You are viewing a reply to Cannot delete images from image galleries

Re: Cannot delete images from image galleries

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:

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

This translates

Copy to clipboard
http://sonicbuddha.com/journal/gallery2&remove101

into

Copy to clipboard
http://sonicbuddha.com/journal/tiki-browse_gallery.php?galleryId=2

when it should be

Copy to clipboard
http://sonicbuddha.com/journal/tiki-browse_gallery.php?galleryId=2&remove=101


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

Copy to clipboard
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.