• When I submit a CF7 form It goes to a error window. When checking my logs I see the following issue:

    [14-Jun-2023 17:55:47 UTC] PHP Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /home/tuvescl/qa.tuves.cl/wp-content/plugins/contact-form-7-to-database-extension/CF7DBPlugin.php:848
    Stack trace:

    Im not quite sure why this is happening. I have a site with the same config and it works perfectly. But this site is having this issue any help would be amazing.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    I think the issues is that your version of the plugin is outdated and this line is not compatible with more recent versions of PHP. Check that you have version 2.10.37. If not download from GitHub: https://github.com/mdsimpson/contact-form-7-to-database-extension/releases

    Vanoisbe

    (@lepapefrancois)

    Hi Michael,

    Same here, it’s related to the file field, everytime I try to send a form with a file uploaded:

    PHP Fatal error:  Uncaught TypeError: file_get_contents(): Argument #1 ($filename) must be of type string, array given in ../wp-content/plugins/contact-form-7-to-database-extension/CF7DBPlugin.php:858

    Console report an error 500

    https://[mywebsite]/wp-json/contact-form-7/v1/contact-forms/3749/feedback 500

    Disabling Contact Form DB resolve the situation.
    My setup:

    Apache Server, PHP 8.0
    WordPress 6.3.1 (latest)
    Contact Form DB : 2.10.37 (latest)

    Thanks for your precious help

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CF7DBPlugin.php:848 error’ is closed to new replies.