Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27368
    Daphney Phillip
    Guest

    I have been getting this error message now for the last 5 weeks. I have contacted my last hosting company (inmotion) and my current hosting company (namehero) both of them didn’t fix it. Now I am asking for your support on how to fix it. I appreciated if you could fix it soon please. I want to reinstall my theme to match the updated version. Thanks.

    Hello,
    
    We were unable to create a backup of your website due to the following:
    
    Fatal error: Uncaught Error: Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY' in /home/[redacted]/public_html/wp-content/plugins/boldgrid-backup/vendor/ifsnop/mysqldump-php/src/Ifsnop/Mysqldump/Mysqldump.php:179
    Stack trace:
    #0 /home/[redacted/public_html/wp-content/plugins/boldgrid-backup/admin/class-boldgrid-backup-admin-db-dump.php(125): Ifsnop\Mysqldump\Mysqldump->__construct('mysql:host=loca...', 'redacted...', 'redacted', Array)
    #1 /home/redacted/public_html/wp-content/plugins/boldgrid-backup/admin/class-boldgrid-backup-admin-core.php(1209): Boldgrid_Backup_Admin_Db_Dump->dump('/home/redacted/...')
    #2 /home/redacted/public_html/wp-content/plugins/boldgrid-backup/admin/class-boldgrid-backup-admin-core.php(1716): Boldgrid_Backup_Admin_Core->backup_database()
    #3 /home/redacted/public_html/wp-content/plugins/boldgrid-backup/admin/class-boldgrid-backup-admin-core.php(3016): Boldgrid_Backup_Admin_Core->archive_files(true)
    #4 /home/redacted/public_html/wp-includes/class-wp-hook.php(289): Boldgrid_Backup_Ad in /home/redacted/public_html/wp-content/plugins/boldgrid-backup/vendor/ifsnop/mysqldump-php/src/Ifsnop/Mysqldump/Mysqldump.php on line 179
    
    Best regards,
    
    The Total Upkeep plugin
    #27397
    Jesse Owens
    Keymaster

    Hi Daphney-

    Thanks for the great question, and thanks for using the Total Upkeep WordPress backup plugin.

    This error occurs when the PHP PDO MySQL extension is not installed in your hosting environment. NameHero does offer a guide on enabling PHP extensions in your cPanel dashboard.

    Look for the option to enable pdo_mysql, and you should be able to avoid this error for your future backups.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Backup failed Uncaught Error: Undefined class constant ‘MYSQL_ATTR_USE_BUFFERED_QUERY’’ is closed to new replies.