Title: Integrations issue CF7
Last modified: March 24, 2023

---

# Integrations issue CF7

 *  Resolved [kender](https://wordpress.org/support/users/kender/)
 * (@kender)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/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
 *     ```wp-block-code
       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)

 *  [benlamm](https://wordpress.org/support/users/benlamm/)
 * (@benlamm)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/integrations-issue-cf7/#post-16592503)
 * Came here to report this. This is an issue with the most recent update.
 * edit: Looks like this actually may be some sort of conflict with contact form
   7.
 * Full stack trace:
 * PHP Fatal error: Uncaught Error: Call to a member function id() on null in /usr/
   www/foobar.com/wp-content/plugins/popup-maker/includes/integrations/class-pum-
   cf7.php:62
   Stack trace:
 * **0 /usr/www/foobar.com/wp-includes/class-wp-hook.php(308): PUM_CF7_Integration::
   form_elements()**
 * **1 /usr/www/foobar.com/wp-includes/plugin.php(205): WP_Hook->apply_filters()**
 * **2 /usr/www/foobar.com/wp-content/plugins/contact-form-7/includes/contact-form.
   php(927): apply_filters()**
 * **3 /usr/www/foobar.com/wp-content/plugins/contact-form-7/includes/contact-form.
   php(627): WPCF7_ContactForm->form_elements()**
 * **4 /usr/www/foobar.com/wp-content/plugins/contact-form-7/includes/contact-form-
   functions.php(235): WPCF7_ContactForm->form_html()**
 * **5 [internal function]: {closure}()**
 * **6 /usr/www/foobar.com/wp-content/plugins/contact-form-7/includes/l10n.php(147):
   call_user_func()**
 * **7 /usr/www/foobar.com/wp-content/plugins/contact-form-7/includes/contact-form-
   functions.php(239): wpcf7_switch_locale()**
 * **8 /usr/www/foobar.com/wp-includes/s in /usr/www/foobar.com/wp-content/plugins/
   popup-maker/includes/integrations/class-pum-cf7.php on line 62**
    -  This reply was modified 3 years, 2 months ago by [benlamm](https://wordpress.org/support/users/benlamm/).
 *  [benlamm](https://wordpress.org/support/users/benlamm/)
 * (@benlamm)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/integrations-issue-cf7/#post-16592574)
 * Rolling back to Contact Form 7 v5.7.4 fixes this issue
 *  Plugin Support [Kim L](https://wordpress.org/support/users/kimmyx/)
 * (@kimmyx)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/integrations-issue-cf7/#post-16598846)
 * Hi [@kender](https://wordpress.org/support/users/kender/),
 * Could you tell us where you’re seeing this error? Do you have a link for us to
   check? We couldn’t reproduce the issue at the moment and it me because you’re
   using a custom function.
 * Can we take a look at your setup? Please send us a message here: [Support Request – Popup Maker](https://wppopupmaker.com/support/#submit-a-support-ticket)
 * [@benlamm](https://wordpress.org/support/users/benlamm/) seems to get the same
   issue. Can you try rolling back to the previous version of Contact Form 7? If
   the issue disappears, let us know!
   Thanks for posting about your findings as 
   well, benlamm!
 *  Thread Starter [kender](https://wordpress.org/support/users/kender/)
 * (@kender)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/integrations-issue-cf7/#post-16600007)
 * [@kimmyx](https://wordpress.org/support/users/kimmyx/)
 * I cant roll back the clients site and break it to run these tests, but I can 
   tell you that the CF7 form in question has nothing selected in the “popup maker”
   tab of the form, so maybe the error is when the form doesn’t call popup maker
   but the plugin is looking for something?
 * [@benlamm](https://wordpress.org/support/users/benlamm/) seems to have had the
   same issue and he says that it does fix the issue with rollback, perhaps he can
   test for you
 *  Plugin Support [Kim L](https://wordpress.org/support/users/kimmyx/)
 * (@kimmyx)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/integrations-issue-cf7/#post-16601896)
 * Hi [@kender](https://wordpress.org/support/users/kender/),
 * We’d need more information about the issue you’re seeing so we can troubleshoot
   it properly and safely as it’s a client site.
 * Please send us a message here: [Support Request – Popup Maker](https://wppopupmaker.com/support/#submit-a-support-ticket)
 * We’ll wait for your response!
 *  Thread Starter [kender](https://wordpress.org/support/users/kender/)
 * (@kender)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/integrations-issue-cf7/#post-16603056)
 * Submitted your support form
 *  [Bel](https://wordpress.org/support/users/belimperial/)
 * (@belimperial)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/integrations-issue-cf7/#post-16604375)
 * Hi [@kender](https://wordpress.org/support/users/kender/)
 * We saw your support request, and replied to it.
 * Can you please have a look at your inbox?
 * Let us know if you have any questions.
 *  [Bel](https://wordpress.org/support/users/belimperial/)
 * (@belimperial)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/integrations-issue-cf7/#post-16646759)
 * Hi everyone!
 * We couldn’t see anything in Contact Form 7 v5.7.5 changelogs that could affect
   Popup Maker.
 * We’re happy to do more debugging, and hopefully, we can get it narrowed down.
 * For full details, please refer to this link:
 * [https://wordpress.org/support/topic/conflict-with-contactform7-2/#post-16643741](https://wordpress.org/support/topic/conflict-with-contactform7-2/#post-16643741)
 * Let us know if you have any questions.
 *  [pajlo](https://wordpress.org/support/users/pajlo/)
 * (@pajlo)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/integrations-issue-cf7/#post-16655814)
 * Hi, i have the same problem. On local i tested it and $from variable return null
   [https://prnt.sc/vO–uRnxuO3-](https://prnt.sc/vO–uRnxuO3-) like [kender](https://wordpress.org/support/users/kender/)
   checked. But the problem is around wpcf7_get_current_contact_form() becouse in
   WP at 6.2 version return null when should return form data.
 *  [Bel](https://wordpress.org/support/users/belimperial/)
 * (@belimperial)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/integrations-issue-cf7/#post-16660187)
 * Hi [@pajlo](https://wordpress.org/support/users/pajlo/)
 * Thank you for joining the thread.
 * We checked the link, but it looks like the image is no longer available.
 * Can you send us a message through our support form, and reshare the screen capture
   so that we can forward the information to our team?
 * Please see:
   [https://wppopupmaker.com/support/#submit-a-support-ticket](https://wppopupmaker.com/support/#submit-a-support-ticket)
 * It would also be helpful if you can share the following:
    - Error log from your test site
    - WordPress version
    - PHP version
    - Web server information (Nginx or Apache)
 * Thank you!
 *  [Dale T](https://wordpress.org/support/users/dalesupport/)
 * (@dalesupport)
 * [3 years ago](https://wordpress.org/support/topic/integrations-issue-cf7/#post-16750421)
 * Hi there,
 * Since there hasn’t been any recent activity in this thread, I’m going to mark
   this as resolved.
 * Feel free to create a new thread if you have other questions.
 * Thanks!

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

The topic ‘Integrations issue CF7’ is closed to new replies.

 * ![](https://ps.w.org/popup-maker/assets/icon-256x256.gif?rev=3097653)
 * [Popup Maker - Boost Sales, Conversions, Optins, Subscribers with the Ultimate WP Popup Builder](https://wordpress.org/plugins/popup-maker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/popup-maker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/popup-maker/)
 * [Active Topics](https://wordpress.org/support/plugin/popup-maker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/popup-maker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/popup-maker/reviews/)

## Tags

 * [fatal](https://wordpress.org/support/topic-tag/fatal/)
 * [integrations](https://wordpress.org/support/topic-tag/integrations/)

 * 12 replies
 * 6 participants
 * Last reply from: [Dale T](https://wordpress.org/support/users/dalesupport/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/integrations-issue-cf7/#post-16750421)
 * Status: resolved