• Resolved kender

    (@kender)


    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)
  • 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 1 year, 8 months ago by benlamm.

    Rolling back to Contact Form 7 v5.7.4 fixes this issue

    Plugin Support Kim L

    (@kimmyx)

    Hi @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

    @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

    (@kender)

    @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 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

    (@kimmyx)

    Hi @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

    We’ll wait for your response!

    Thread Starter kender

    (@kender)

    Submitted your support form

    Bel

    (@belimperial)

    Hi @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

    (@belimperial)

    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://www.ads-software.com/support/topic/conflict-with-contactform7-2/#post-16643741

    Let us know if you have any questions.

    Hi, i have the same problem. On local i tested it and $from variable return null https://prnt.sc/vO–uRnxuO3- like 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

    (@belimperial)

    Hi @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

    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

    (@dalesupport)

    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.