• Resolved stimsonm

    (@stimsonm)


    Hello, I installed the latest version of the fast and secure contact form and the contact form 7 to database extension and when i go to the admin to see a form submitted i see these errors only:

    Division by zero in /var/www/vhosts/mydomainname.org/httpdocs/wp-content/plugins/contact-form-7-to-database-extension/CF7DBPlugin.php on line 980

    and

    Fatal error: Call to undefined function mysql_set_charset() in /var/www/vhosts/mydomainname.org/httpdocs/wp-content/plugins/contact-form-7-to-database-extension/CFDBQueryResultIterator.php on line 105

    Can anyone help me out?

    Thanks

Viewing 2 replies - 16 through 17 (of 17 total)
  • To the plug-in authors:

    A quick fix for “Returned entries 1 to 0” and “Warning: Division by zero” issues.

    Add:

    $maxRows = ($maxRows > 0 ? $maxRows : 20);

    After line 733 in “/wp-content/plugins/contact-form-7-to-database-extension/CF7DBPlugin.php”

    Or, if you don’t mind excessive database calls, just change line 733 to:

    $maxRows = ($this->getOption('MaxRows') > 0 ? $this->getOption('MaxRows') : 20);

    Badabing.

    Plugin Author Michael Simpson

    (@msimpson)

    I version 1.8.2 should be available shortly and it has a fix like you suggest.
    Thanks.

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘[Plugin: Contact Form 7 to Database Extension] Errors – Division by zero’ is closed to new replies.