tgv604
Forum Replies Created
-
Forum: Plugins
In reply to: [Eazyest Gallery] images db records still there after deleting foldersHi,
I think I’ve found it. The /album/album issue happens on LAMP only (tried two hostings), while localhost (Win7/apache 2.4/php 5.3 as module) is immune to this. Another [possible – I didn’t tried it other way] condition is that EZG root folder is inside WP uploads folder.
I suspect this bug has something to do with the _wp_relative_upload_path() [/wp-includes/post.php, line 230] used when generating metas — it returns path relative to wp_upload_dir() if no filters are registered. However, this function does not have a chance to mess things up on windows due to backslashes vs forward-slashes difference.
Example:
D:/home/footy/wp-content/uploads/albums/mugshots/img.jpgandD:\home\footy/wp-content/uploadson windows,/home2/roosfoot/public_html/dev/wp-content/uploads/albums/mugshots/img.jpgand/home2/roosfoot/public_html/dev/wp-content/uploadson linux.Saying this, I’m struggling to understand how the relative path ends up getting recorded correctly on windows
p.s. in folderbase class at line 1864 $gallery_path is not initialised — doesn’t seem to be relevant here but anyway.
Really hope all this makes sense
Cheers
Forum: Plugins
In reply to: [Eazyest Gallery] images db records still there after deleting foldersThanks,
Just hit the problem another guy had before,
with the gallery folder “wp-content/uploads/albums/” all images in back-end (when I open a folder and check thumbnail or full url in top right corner) has double “/albums/”, in this way:
http://mysite.com/wp-content/uploads/albums/albums/folderXX/imageYY.jpgIn database, image’s slug is correct, but every _wp_attached_file meta key starts with “album”: album/folderXX/imageYY.jpg
AS a result, in front-end all images either don’t show at all, or show “missing attachment.
All folders were picked up by the ajax script, my theme is a child theme of twentytwelve, wp 3.5.1, EZG 0.1.0-RC-2, active plugins – “Auto ThickBox Plus” and some definitely irrelevant tinymce enhancement.
Tried it twice, second time by deactivating plugin, removing everything EZG-related from database (options, posts and metas), deleting in filesystem and re-transferring all photos, activating EZG, saving settings, opening “all folders” and going away to let it discover photos in peace.
It died couple of times with “An error occurred while indexing your gallery. Please check your server settings to solve this error: 500 (Internal Server Error) – Internal Server Error” but that’s probably low-end hosting issue. Nothing in logs.
And another bad one.. when I edit the slug for a folder in “quick edit” mode, a new empty folder with the slug as a name is getting created and then picked up by ajax script. Didn’t test this thoroughly but it seemed like the original folder (non-empty) also loses its caption. Will
Oh and “Recent folders” widget seems not to honour “Number of folder icons to show” — displays the whole lot.
Sorry for ruining your Sunday ))
Forum: Plugins
In reply to: [Eazyest Gallery] js bugYou’re welcome, there’s more coming — thanks for your hard work.
Not sure if this is a result of me deleting actual files and folders first — in the current version, if I trash some folders, then either “empty trash” or select all then “delete permanently” – all trashed folders resurrect in the filesystem and appear as published