Support » Plugin: Media from FTP » Mistakenly registering files outside of uploads directory?

  • Hi Katsushi,

    I am experiencing an odd issue with my WordPress, where a lot of system files outside of the uploads folder are being registered into the media library, even though the files dont exist at the url registered in the library.

    Here is an example URL of one that has been registered:
    http://www.domain.org.au/wp-content/uploads/home/www/public_html/php.ini
    I have no ‘home’ folder within my uploads folder, but that is obviously the full filesystem path to a file that exists in my WordPress install *outside* of the uploads folder.

    I am not 100% sure that it is your plugin doing it, but the last time all these files were added was about the same time that the plugin says it ran (scheduled to run hourly). Do you think it is possibly looking outside the uploads folder? A possible misconfiguration? Both the upload_path and the upload_url_path settings are empty in the /wp-admin/options.php page… should they have a value set?

    I have checked the ‘create log’ option to see if it is this working, but it doesn’t seem to record anything for me, even when it adds a file that is definitely within the uploads directory.

    Thanks,
    Michael

    https://wordpress.org/plugins/media-from-ftp/

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter michaelroper

    (@michaelroper)

    Okay, I deleted all those file entries via the database, and they were re-added on the scheduled hour again, so it looks like it is definitely this plugin adding them.

    Any ideas if it could be a configuration issue, and what I need to do to fix it?

    Plugin Author Katsushi Kawamori

    (@katsushi-kawamori)

    Hi,

    How it happened will from which version?
    Where is the folder location of the Search & Register screen?

    Plugin Author Katsushi Kawamori

    (@katsushi-kawamori)

    Hi,

    About Log.

    In the case of multi-site, to activate the network for Media from FTP, there are things you do not want to create a database for the log. At present, from deactivated at once network, please activate for each site.

    Thread Starter michaelroper

    (@michaelroper)

    Hi Katsushi,

    WordPress is v4.4.2, and your plugin is v9.20, both latest versions? I think it may have been doing this for at least a month or two.

    The folder location on the Search & Register looks like this screenshot.

    I’m not using multi-site, so is there anything else I need to do to make the log work?

    Thankyou!

    Plugin Author Katsushi Kawamori

    (@katsushi-kawamori)

    Hi,

    I do not understand.

    When the screen shot is more, it might be understand.

    One idea.
    Once, the Media from FTP, uninstall, also please try to re-install.

    Thread Starter michaelroper

    (@michaelroper)

    There is not much more too see in the screenshot – there is no files listed that havent been registered to the library…
    https://www.dropbox.com/s/wv2wzx6y4n6lbow/Screenshot%202016-04-13%2001.05.22.png?dl=0

    I did remove the plugin completely, cleared the entries from the database, and reinstalled the plugin, but it still added all the file entries back in to the media library after it ran as scheduled on the hour. And still no log file created…

    I have tried changing the schedule to twice daily, and will see if it still happens then.

    Plugin Author Katsushi Kawamori

    (@katsushi-kawamori)

    I do not understand.
    When the screen shot is more, it might be understand.

    Please try in the old version.
    From about 9.17 would be good.
    Or, it might other plug-ins and themes have been affected. Please try with or change to stop them.

    Thread Starter michaelroper

    (@michaelroper)

    I uninstalled the 9.20 plugin, and installed the 9.17 plugin, and it did not add the unwanted file entries. I upgraded the plugin to 9.20 again, and it did add the files again.

    So I guess I will downgrade back to 9.17 for now? Any idea what changed between the versions that might be causing this?

    Thread Starter michaelroper

    (@michaelroper)

    I also tried 9.18, and it did have the issue. So, the change was introduced between 9.17 and 9.18.

    Plugin Author Katsushi Kawamori

    (@katsushi-kawamori)

    Do you have to activate a plugin to change the roles and capabilities in your site?

    Thread Starter michaelroper

    (@michaelroper)

    Not entirely sure what you mean, but I do have this plugin in use…
    https://wordpress.org/plugins/members/
    My user is the admin login though…

    Plugin Author Katsushi Kawamori

    (@katsushi-kawamori)

    It contains the same code with the following three sources. Please try fix it. The four lines and commented out.(for Version 9.18)

    rec/MediaFromFtpRegist.php(Line 38-42)
    rec/MediaFromFtpAdimn.php(Line 1199-1203)
    rec/MediaFromFtpCron.php(Line 32-36)

    Before

    if ( current_user_can('administrator') ) {
    	$wp_options_name = 'mediafromftp_settings';
    } else {
    	$wp_options_name = 'mediafromftp_settings'.'_'.$cron_user;
    }

    After

    //if ( current_user_can('administrator') ) {
    	$wp_options_name = 'mediafromftp_settings';
    //} else {
    //	$wp_options_name = 'mediafromftp_settings'.'_'.$cron_user;
    //}

    Thread Starter michaelroper

    (@michaelroper)

    The settings now say “Next Schedule: None”, even after I re-save the settings, is that right?

    I have the same problem. Is there any solution for the current version in sight?

    in the log files I can see the error:
    mod_fcgid: stderr: PHP Warning: current() expects parameter 1 to be array, boolean given in /var/www/(…)/httpdocs/wp/wp-includes/plugin.php on line 523, referer: http://jensarbogast.de/wp/wp-admin/admin.php?page=mediafromftp-search-register

    and

    mod_fcgid: stderr: PHP Warning: next() expects parameter 1 to be array, boolean given in /var/www/(…)/httpdocs/wp/wp-includes/plugin.php on line 527, referer: http://jensarbogast.de/wp/wp-admin/admin.php?page=mediafromftp-search-register

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Mistakenly registering files outside of uploads directory?’ is closed to new replies.