• Resolved GetWebCreative

    (@getwebcreative)


    Getting a fatal error when trying to download a pdf. Works fine on my local server. This is on SiteGround.
    Fatal error: Uncaught Exception: Unable to insert log item in WordPress database in /wp-content/plugins/download-monitor/src/Logs/WordPressLogItemRepository.php:237 Stack trace: #0 /wp-content/plugins/download-monitor/src/DownloadHandler.php(368): DLM_WordPress_Log_Item_Repository->persist(Object(DLM_Log_Item)) #1 \ /wp-content/plugins/download-monitor/src/DownloadHandler.php(481): DLM_Download_Handler->log(‘download’, ‘redirected’, ‘Redirected to f…’, Object(DLM_Download), Object(DLM_Download_Version)) #2 /wp-content/plugins/download-monitor/src/DownloadHandler.php(316): DLM_Download_Handler->trigger(Object(DLM_Download)) #3 /wp-includes/class-wp-hook.php(286): DLM_Download_Handler->handler(Object(WP)) #4 /wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #5 /home/sindigi in /wp-content/plugins/download-monitor/src/Logs/WordPressLogItemRepository.php on line 237

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter GetWebCreative

    (@getwebcreative)

    RESOLVED.

    The logging database table wasn’t installed on activation. I installed the plugin via ManageWP initially. When I deactivated then reactivated the plugin within WordPress it worked.

    Thread Starter GetWebCreative

    (@getwebcreative)

    Now getting 403 errors for the pdfs stored in the dlm_uploads folder. PDFs uploaded via the media library work fine. Folder permissions are 755, files are 644 and the folder’s .htaccess contains:

    # Apache 2.4 and up
    <IfModule mod_authz_core.c>
    Require all denied
    </IfModule>

    # Apache 2.3 and down
    <IfModule !mod_authz_core.c>
    Order Allow,Deny
    Deny from all
    </IfModule>

    Thread Starter GetWebCreative

    (@getwebcreative)

    SOLVED AGAIN.

    Deleted the .htaccess file. Not sure if that’s the best solution but at least I can access the downloads.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal Error: Unable to insert log item’ is closed to new replies.