• Resolved lumos

    (@lumos)


    Hi,

    I kindly ask for an help with my Media Library Folders installation.
    I used it for days without problems but now it stop to work.
    The Folders & Files page appear empty like in the follow screenshot.

    https://prnt.sc/5eAogkCaaDBo

    There are no console error and I already try to reset the Media Library Folders database tables that now does not contain records.
    It appear Media Library Folders does not start to populate the table when I open the Folders & Files page.
    The table remain empty.

    Any suggestion?

    Thank you

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

    (@alanp57)

    It could be that there is a PHP error occurring that prevents the page from loading. Turning on WordPress debugging can helps us understand what is happen. To turn on WordPress debugging, edit your sites wp-config.php file and replace

    define('WP_DEBUG', true);

    with

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

    With this code in place, WordPress will generate a debug.log file in the wp-content folder. Now, go to the Media Library Folders library page to generate the error. Then view the debug.log file, look for a fatal error and post what you find here. Note that not all the messages found in the debug.log file will be related to Media Library Folders.

    Thread Starter lumos

    (@lumos)

    Thank you for your quick answer.

    This could be the problem, any idea on how can I fix it?

    Thank you

    [03-Oct-2023 14:07:55 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND meta_key = '_wp_attached_file'' at line 4 for query select meta_value as attached_file
    from **************_postmeta 
    where post_id = 
    AND meta_key = '_wp_attached_file' made by do_action('toplevel_page_mlf-folders8'), WP_Hook->do_action, WP_Hook->apply_filters, MGMediaLibraryFolders->mlf_folders, require_once('/plugins/media-library-plus/includes/media-folders.php'), MGMediaLibraryFolders->media_library, require_once('/plugins/media-library-plus/includes/media-library.php'), MGMediaLibraryFolders->get_folder_path
    [03-Oct-2023 14:07:55 UTC] PHP Warning:  Attempt to read property "attached_file" on null in /var/www/html/wp-content/plugins/media-library-plus/media-library-plus.php on line 2380
    [03-Oct-2023 14:07:55 UTC] PHP Deprecated:  ltrim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wp-content/plugins/media-library-plus/media-library-plus.php on line 2380
    [03-Oct-2023 14:07:55 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 4 for query select post_title, ID, **************_mgmlp_folders.folder_id 
    from **************_posts 
    LEFT JOIN **************_mgmlp_folders ON (**************_posts.ID = **************_mgmlp_folders.post_id)
    where ID =  made by do_action('toplevel_page_mlf-folders8'), WP_Hook->do_action, WP_Hook->apply_filters, MGMediaLibraryFolders->mlf_folders, require_once('/plugins/media-library-plus/includes/media-folders.php'), MGMediaLibraryFolders->media_library, require_once('/plugins/media-library-plus/includes/media-library.php'), MGMediaLibraryFolders->get_parents
    [03-Oct-2023 14:07:55 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 4 for query select post_title, ID, **************_mgmlp_folders.folder_id 
    from **************_posts 
    • This reply was modified 2 years, 8 months ago by lumos.
    Thread Starter lumos

    (@lumos)

    I was able to fix the problem uninstalling Media Library Folders, delete the database tables, reinstalled Media Library Folders and reset the database with Media Library Folders Reset.

    Thank you for your suggestion on the debug.log

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Empty Folders & Files page’ is closed to new replies.