• Resolved phpscaresme

    (@phpscaresme)


    Using Contact Forms Conditional Fields which means some fields won’t have any value. You’re handling a dropdown selector but the stuff that’s hidden is probably causing this issue. Maybe you should check if the argument passed to your function is blank, and if so replace it with “n/a” or what have you.

    Here’s the error:

    
    [Tue Feb 23 15:08:35.904494 2021] [proxy_fcgi:error] [pid 2855:tid 140099923134208] [client 1.1.126.101:57720] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given in /home/users/user/www/domain.com/landingpage/web/app/plugins/contact-form-entries/contact-form-entries.php:1563\nStack trace:\n#0 /home/users/user/www/domain.com/landingpage/web/app/plugins/contact-form-entries/contact-form-entries.php(1563): method_exists()\n#1 /home/users/user/www/domain.com/landingpage/web/app/plugins/contact-form-entries/contact-form-entries.php(457): vxcf_form->do_actions()\n#2 /home/users/user/www/domain.com/landingpage/web/app/plugins/contact-form-entries/contact-form-entries.php(704): vxcf_form->create_entry()\n#3 /home/users/user/www/domain.com/landingpage/web/wp/wp-includes/class-wp-hook.php(289): vxcf_form->create_entry_cf()\n#4 /home/users/user/www/domain.com/landingpage/web/wp/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()\n#5 /home/users/user/www/domain.com/landingpage/web/wp/wp-includes/plugin.php(551): W...', referer: https://domain.com/contact-us/
    

    PHP 8.0.1 (php-fpm) with Apache 2 on Debian 10

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘error 500 for blank optional fields submissions’ is closed to new replies.