• Resolved roblep

    (@roblep)


    I am using a separate plugin that allows users to make a payment via PayPal “Accept PayPal Payments using Contact Form 7” by ZealousWeb. During testing, when I submit this payment form upon callback from PayPal an error within the Drag and Drop plugin is causing a fatal error.

    Fatal error: Uncaught Error: Call to a member function scan_form_tags() on null in /var/www/site/public_html/wp-content/plugins/drag-and-drop-multiple-file-upload-contact-form-7/inc/dnd-upload-cf7.php:297 Stack trace: #0 /var/www/site/public_html/wp-includes/class-wp-hook.php(289): dnd_cf7_mail_components(Array, NULL) #1 /var/www/site/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array) #2 /var/www/site/public_html/wp-content/plugins/contact-form-7/includes/mail.php(108): apply_filters(‘wpcf7_mail_comp…’, Array, NULL, Object(WPCF7_Mail)) #3 /var/www/site/public_html/wp-content/plugins/contact-form-7/includes/mail.php(19): WPCF7_Mail->compose() #4 /var/www/site/public_html/wp-content/plugins/contact-form-7-paypal-extension/inc/lib/class.cf7pe.lib.php(587): WPCF7_Mail::send(Array, ‘mail’) #5 /var/www/site/public_html/wp-content/plugins/contact-form-7-paypal-extension/inc/lib/class.cf7pe.lib.php(191): CF7PE_Lib->mail(Object(WPCF7_Submission), Array) #6 /var/www/site/ in /var/www/site/public_html/wp-content/plugins/drag-and-drop-multiple-file-upload-contact-form-7/inc/dnd-upload-cf7.php on line 297
    There has been a critical error on your website.

    Help! It’s a great plugin, but in this case it seems to be triggering an error when it’s not even being used for a particular form!

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Hello @roblep ,

    Currently, this plugin not yet tested with other extensions for Contact Form 7, specially this plugin “Accept PayPal Payments using Contact Form 7”, but I will try to install it and will see what I can do.

    Thanks

    Glen.

    Thread Starter roblep

    (@roblep)

    Thanks Glen,
    Both plugins are pretty fantastic at what they do.
    If you can resolve the issue, that would be excellent.

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    @roblep , So I installed the plugin on my server and I can replicate the issue.

    I tried to fix and the error and it doesn’t show anymore but I did not received any email.

    I saw there’s some kind customization about the plugin that override the default functionality of contact form 7, like email sending, filters which doesn’t work on my plugin.

    Have you tried try this plugin? https://ww.wp.xz.cn/plugins/contact-form-7-paypal-add-on/

    Thread Starter roblep

    (@roblep)

    Hi Glen,
    Same error occurs on the pro version of Scott’s plugin, same line number 297. 🙁

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Okay, will do a further testing.

    I will review their plugin (code structure) and I’ll see what I can do.

    I’ll let you know if theres a better solution.

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Hello @roblep ,

    I tested scott plugin recently and it’s working correctly.

    Payment was successfull and it also sent an email with attachments.

    Please make sure to deactivate the previous plugin and test again.

    Just let me know if still have any issues.

    Glen.

    Thread Starter roblep

    (@roblep)

    Hi Glen,

    Unfortunately, the error has still occurred on my server.

    Fatal error: Uncaught Error: Call to a member function scan_form_tags() on null
    cf7pp_listen_for_paypal_ipn(”) #6 /var/www/site/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, in /var/www/site/public_html/wp-content/plugins/drag-and-drop-multiple-file-upload-contact-form-7/inc/dnd-upload-cf7.php on line 336

    I’ve updated both the paypal plugin from Scott and your own plugin.

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    @roblep , please let me know if that version that I sent is working.

    So I can update the repo and close this thread.

    Thanks.

    Thread Starter roblep

    (@roblep)

    Hi Glen,
    Thanks for that – that seems to have done the trick. Seems to work perfectly – the error no longer appearing, returnURL page loading as expected when the plugin is activated.
    Thanks for taking the time to look into this and resolve.

    Thread Starter roblep

    (@roblep)

    Marked as resolved.

    Thread Starter roblep

    (@roblep)

    Glen, I’ll assume you’ll include this fix in the main build so when updates are released it’ll all be sparky. 🙂

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    @roblep , thanks.

    Yes, the fixes will be included on the next update.

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

The topic ‘Fatal error’ is closed to new replies.