Integrations issue CF7
-
starting on line 59 on this file:
/popup-maker/includes/integrations/class-pum-cf7.php
I got an error:Call to a member function id() on null
I updated function like this
public static function form_elements( $elements ) { $form = wpcf7_get_current_contact_form(); if($form) { $settings = wp_json_encode(self::form_options($form->id())); return $elements . "<input type='hidden' class='wpcf7-pum' value='$settings' />"; } else { return $elements; } }
I didn’t handle the initial integration of this plugin with the site, so uncertain if that brought the form involved into pre error status, but it is loading
The form exists, so there should be a form id, I think the error is with the get_current_ function not pulling the form data properly, though
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Integrations issue CF7’ is closed to new replies.