Error while submitting the form
-
==> /var/log/apache2/error.log <== [Mon Jun 06 05:09:30.881881 2016] [:error] [pid 2551] [client 192.168.100.1:62299] PHP Fatal error: Call to a member function get_timing() on a non-object in /vagrant/wp-content/plugins/ninja-forms/includes/AJAX/Controllers/Submission.php on line 275, referer: https://192.168.100.100/
Version 3.0 (2.9.47)
Only Ninja Forms plugin installed/activated.
Only Save Form and Success Message actions activated.The issue seems to be on line:
if ( $a->get_timing() == $b->get_timing() ) {
and once it gets pass it it also get stuck on
return ( $a->get_timing() < $b->get_timing() ) ? -1 : 1;
Doing something like this (haven’t checked the logic, just simply making sure they are objects) works:
if ( is_object( $a ) && is_object( $b ) && $a->get_timing() == $b->get_timing() ) {
and
return ( is_object( $a ) && is_object( $b ) && $a->get_timing() < $b->get_timing() ) ? -1 : 1;
- The topic ‘Error while submitting the form’ is closed to new replies.