• Hello,
    I have been using this plugin for PDF and Word Documents and its worked pretty great so far. I came across a problem though. For some reason when I make a folder in this far it doesn’t show the files on Library Plus only in the FTP:

    uploads/1/2/3/file.PDF

    I have other folders that far into the directory but they show the files within the plug in. I tried making a new folder with the same name without luck. How can I go about fixing this?

    https://www.ads-software.com/plugins/media-library-plus/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author AlanP57

    (@alanp57)

    Have you tried adding the folder with the ‘Sync’ function. We added the sync to help solve problems like this. Sync will check for any unlisted files or folders in the current directory and add them to the library.

    Thread Starter itskater91

    (@itskater91)

    The sync feature didn’t seem to work. The files are in the folder in the FTP and the upload works they always go to the correct folder in the FTP just never show up in the Plugin.

    Plugin Author AlanP57

    (@alanp57)

    You can try turning on debugging:

    Replace this line in your wp-config.php file:

    define('WP_DEBUG', true);

    with:

    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', false);
    @ini_set('display_errors', 0);

    This will create a debug.log file in your wp-content folder. You can can try adding files, adding a folder and syncing a folder. Then you can send me the debug.log at [email protected]

    Thread Starter itskater91

    (@itskater91)

    Just sent it. Thank you very much for the help and fast response!

    Plugin Author AlanP57

    (@alanp57)

    The log you sent shows two problems. One is that some URLs in your database are not correct for your site. I can see in the log that when the plugin tries to covert the URL to an absolute path to create a folder it is not finding the current URL and leaves the domain name in the path. The other problem is a failure to insert into the folder database table with an index of 0 when syncing folder contents. I’m not sure why this would be happening.

    One question I have, in your General Settings does your domain name begin with ‘www’ instead of ‘https://’?

    What you can do to update all the URLs in your database is the install and run the Better Search and Replace plugin. Be sure to backup your database first and when running Better Search and Replace be sure to check the option to update guids.

    If running Better Search and Replace is successful then you can reset Media Library Plus: 1. Deactivate Media Library Plus. 2. Activate and run the Media Library Plus Reset plugin that comes with Media Library Plus. 3. Deactivate Media Library Plus Reset and 4. Activate Media Library Plus which will rescan the Media Library for existing attachments and folders.

    if everything is working expected then be sure to remove the lines that turn on debugging in your wp-config.php file.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Files wont upload to one dirctory but show up on FTP’ is closed to new replies.