Contact form 7 conflict with UPi CRM
-
Hello i am using contact form 7 plugin and today i installed UPi CRM plugin but after installing that my contact form doesn’t work and when i deactivate it then again it works fine.
There is a possible issue with Contact form 7.
PLease fix it and you can even try to submit form. The rotating wheel keeps rotating but doesn’t load the ajax.
In the console i found this error
Failed to load resource: wp-json/contact-form-7/v1/contact-forms/6/feedback:1 the server responded with a status of 500 ()The page I need help with: [log in to see the link]
-
hey, we’re checking it.
I am experiencing the same, following for reply.
we hope to have a remedy soon…
UriHi,
we couldn’t recreate the issue.
What we suggest:
disable AJAX in cf7 –As per the CF7 Documentation, you can disable AJAX form submission by placing the following code in your wp-config.php
define(‘WPCF7_LOAD_JS’, false);
send more error message form php log / http log if possible
Thanks
UriI have disabled AJAX via your method above, still receiving this error only when UPI is enabled along with the spinning wheel and no redirection or error/success message.
The enquiry is captured by UPI and in the database, but the contact form does not redirect, so there is no way for the user knowing the submission was successful.
Error message in console:
Failed to load resource: the server responded with a status of 500 (Internal Server Error) – http://blacklistedexpress.co.za/wp-json/contact-form-7/v1/contact-forms/1041/feedback
{“code”:”rest_no_route”,”message”:”No route was found matching the URL and request method”,”data”:{“status”:404}}
This is from the error log:
[Tue Jul 03 14:23:44.995307 2018] [fcgid:warn] [pid 11352] [client 154.119.60.207:61123] mod_fcgid: stderr: PHP Warning: opendir(/wp-content/uploads/upicrm): failed to open dir: No such file or directory in /var/www/clients/client45/web305/web/wp-content/plugins/upi-crm-universal-crm-solution/classes/privacy_class.php on line 30, referer: http://blacklistedexpress.co.za/wp-admin/plugins.php?plugin_status=active
After disabling Ajax and then submitting form it gives this error
Fatal error: Uncaught Error: Call to undefined function is_plugin_active() in /home/public_html/wp-content/plugins/upi-crm-universal-crm-solution/libraries/upicrm_contact_form_7.php:58 Stack trace: #0 /home/public_html/wp-content/plugins/upi-crm-universal-crm-solution/classes/upicrm_leads.php(229): UpiCRMwpcf7->is_active() #1 /home/public_html/wp-content/plugins/upi-crm-universal-crm-solution/classes/upicrm_ui_builder.php(54): UpiCRMLeads->get_source_form_name('6', '2') #2 /home/public_html/wp-content/plugins/upi-crm-universal-crm-solution/classes/upicrm_mails.php(56): UpiCRMUIBuilder->lead_routing(Object(stdClass), 'leads', 'source_id', Array, true) #3 /home/public_html/wp-content/plugins/upi-crm-universal-crm-solution/classes/upicrm_leads.php(93): UpiCRMMails->send(20, 'new_lead') #4 /home/public_html/wp-content/plugins/upi-crm-universal-crm-solution/libraries/upicrm_contact_form_7.php(25): UpiCRMLeads->add(Array, 2, '6') #5 /home/public_html/w in /home/public_html/wp-content/plugins/upi-crm-universal-crm-solution/libraries/upicrm_contact_form_7.php on line 58I have found a solution for this the issue is in
wp-content/plugins/upi-crm-universal-crm-solution/libraries/upicrm_contact_form_7.php1. Go to line 56 and remove this function
function is_active() { //is wpcf7 active return is_plugin_active('contact-form-7/wp-contact-form-7.php'); }Next go to wp-content/plugins/upi-crm-universal-crm-solution/classes/upicrm_leads.php
1. Go to line 229 and remove this line and line 231 or you can just disable them like this.
`//if ($UpiCRMwpcf7->is_active()) {
$form_name = $UpiCRMwpcf7->form_name($source_id);
//}`After doing that Form submission with or without Ajax will work fine but the mails you receive will be labeled as no-reply. It will work great BTW.
I hope if @upi can tell a fix on this.@upi, we are using your system on 2 sites and we are trying to get this 3rd site connected. If we are unable to do this we may need to switch systems, so please try and assist here?
Hi ..we’re on it.
Q: did you perhaps change path/files names ?
CF7 needs to reside under
/wp-content/plugins/contact-form-7/
and file name should be: wp-contact-form-7.phpis it exactky like this on your server?
Q: do you have the latest CF7 version installed?
Thanks
UriPaths are correct and filename is correct as well.Using version Version 5.0.2
OK. thanks.
we’ll try and release a new version today / tomorrow.
Still –
Q: is using another contact form plugin an option?
you can also use Caldera forms, ninja forms, Gravity forms …thanks
UriIt will be an option, but I will have to look into it first. Using CF7 on site 1 and 2, and site 3 is using ninja forms. CF 7 working fine on the other site with identical setups, so really weird issue this.
Edit to my solution: After doing those steps go to /public_html/wp-content/plugins/upi-crm-universal-crm-solution/admin/upicrm_settings.php
and go to line 56 and remove this line
if ($UpiCRMwpcf7->is_active()) {
and line 71
}Hey,
we’ve had this issue on one of our dev servers, turns out after upgrading plugins / wordpress to latest versions, issue disappeared.Marking issue as “closed”, please report if you still face this issue.
Thanks
Uri
The topic ‘Contact form 7 conflict with UPi CRM’ is closed to new replies.