• Resolved joyryde

    (@joyryde)


    We tried to install the plugin and it says:

    Plugin could not be activated because it triggered a?fatal error.

    The page I need help with: [log in to see the link]

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

    (@alanp57)

    To find out the cause of this issue, you can turn on WordPress debugging by editing you site’s wp-config.php file.

    Replace

    define('WP_DEBUG', false);

    with

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

    If define(‘WP_DEBUG’, false); is not in your wp-config.php file, add the four lines above the place where it says ‘That’s all, stop editing! Happy blogging.’

    Once you have edited the wp-config.php file, try activating the plugin. Errors generated by this action should be written to a debug.log file in the wp-content folder. You can send the debug.log file to ‘support at maxfoundry’ (at = @). Mention ‘Plugin triggered a fatal error’ in the subject line.

    Thread Starter joyryde

    (@joyryde)

    Hello,

    Thanks for your help.

    It has the same error thousands of times:

    [25-Jun-2024 23:36:12 UTC] WordPress database error Duplicate entry ‘104454’ for key ‘PRIMARY’ for query INSERT INTO wpat_mgmlp_folders (post_id, folder_id) VALUES (104454, ‘105321’) made by do_action(‘activate_media-library-plus/media-library-plus.php’), WP_Hook->do_action, WP_Hook->apply_filters, MGMediaLibraryFolders->do_activation, MGMediaLibraryFolders->activate, MGMediaLibraryFolders->scan_attachments, MGMediaLibraryFolders->add_new_folder_parent

    Plugin Author AlanP57

    (@alanp57)

    Since there is a duplicate entry in the database, doing a reset of your folder data should help. Deactivate Media Library Folders. Activate the Media Library Folders Reset plugin which comes with Media Library Folders. Under Reset Media Library Folders Data, click the Reset Folder Data button. It will erase the existing folder data in the database. Then reactivate Media Library Folders which will do a fresh scan of your media library folders.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.