juz501
Forum Replies Created
-
Forum: Plugins
In reply to: [Media from FTP] thumbnail filter too restrictiveCool thanks
Forum: Plugins
In reply to: [Media from FTP] thumbnail filter too restrictiveIf the thumbnail exclude file filter can be modified in the settings, the user can specify their own rules…
currently if there is a file named fancy-cabinet-2×3-dimension.jpg, it is filtered out as a thumbnail as the exclude filter is triggered.
Forum: Plugins
In reply to: [Media from FTP] thumbnail filter too restrictiveTo be honest.. if the thumbnail check can be configured in the settings.. I would have no issues.
Thanks for the reply.
Thanks for getting version 7.8 so quickly Katsushi, works like a charm now
I have a feeling 7.8 fixed the issue, i checked the diff looked pretty good.
However it doesn’t fix up any damage done by using 7.7unfortunately we are the process of deploying live so we can’t test this for you.. I’ll get back to you when I have more time to look into the reason…..
But I am pretty certain the actual bug is in the input_url function in MediaFromFtp.php around line 296 and the actual culprit line is line 307 which says:
$new_url = site_url('/').str_replace(ABSPATH, '', $file);
but it really shouldn’t be appending ABSPATH with site_url.
Forum: Plugins
In reply to: [Media from FTP] registration of files failesunfortunately, the 7.7 patch pretty much killed all my live server media data (since i had a cron set up) so I had to reimport all my media after the fix by clearing the wordpress media database and doing a search and register from scratch.
If you are good at SQL you could possibility remove the orphans directly with the database, I doubt the patch would remove the errors caused by 7.7 automatically.
Forum: Plugins
In reply to: [Media from FTP] registration of files failesit’s a bug in 7.7 see my other post for temporary fix
to be honest.. all u need to do is use the basename function before you add it to the file list $list
The issue is that the absolute path (created by realpath) is appended to the original host
https://examplewordpress/var/www/testwordpress/wp-content/uploads/2015/07
when it should really just be
https://examplewordpress.com/wp-content/uploads/2015/07
I’m unsure what the realpath is meant to achieve by setting it as the document root.. you should either use the absolute path or the absolute url. not combine them together.
If you use the cron version you will also need to replace the same like in the MediaFromFtpCron.php
Forum: Plugins
In reply to: [Media from FTP] 404 files on version 7.3all good it fixed itself up in 7.4
Forum: Plugins
In reply to: [Media from FTP] installed OK, but settings page is blankBlank sounds like a folder permissions issue to me.
Forum: Plugins
In reply to: [Media from FTP] tools page tabs missingthe tabs don’t display if the search & registration times out due to either too many images or web server timeout settings (particularly if nginx is used)
as a interim, I usually just turn off the responsive tabs via comments in the Admin php file to debug.
however is it’s Multi-Site installation the paths and other things may work differently.
Forum: Plugins
In reply to: [Media from FTP] Refactored version for large number of mediaI think the main memory issue is the file list array from the glob function but it is also that the original array from the glob function contains files that were already loaded.
My version didn’t use glob, instead it used readdir and opendir