• Resolved ayu1

    (@ayu1)


    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]

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author Upi

    (@upi)

    hey, we’re checking it.

    I am experiencing the same, following for reply.

    Plugin Author Upi

    (@upi)

    we hope to have a remedy soon…
    Uri

    Plugin Author Upi

    (@upi)

    Hi,

    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
    Uri

    I 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) – https://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: https://blacklistedexpress.co.za/wp-admin/plugins.php?plugin_status=active

    • This reply was modified 6 years, 8 months ago by qgrobler.
    • This reply was modified 6 years, 8 months ago by qgrobler.
    Thread Starter ayu1

    (@ayu1)

    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 58

    Thread Starter ayu1

    (@ayu1)

    I have found a solution for this the issue is in
    wp-content/plugins/upi-crm-universal-crm-solution/libraries/upicrm_contact_form_7.php

    1. 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.

    Thank you for trying @ayu1, but unfortunately implementing your changes just breaks the plugin for me.

    • This reply was modified 6 years, 8 months ago by qgrobler.

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

    Plugin Author Upi

    (@upi)

    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.php

    is it exactky like this on your server?

    Q: do you have the latest CF7 version installed?

    Thanks
    Uri

    Paths are correct and filename is correct as well.Using version Version 5.0.2

    Plugin Author Upi

    (@upi)

    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
    Uri

    It 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.

    Thread Starter ayu1

    (@ayu1)

    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
    }

    Plugin Author Upi

    (@upi)

    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

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Contact form 7 conflict with UPi CRM’ is closed to new replies.