mizzkalanit
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7: Zoho Leads integration] Submit does nothing. Js error maybe?Mine is working now. I did quite a few things to get it up and running, but the suggestion to turn on WP_DEBUG and WP_DEBUG_LOG was especially helpful. Here’s what I did:
Using WP_DEBUG and WP_DEBUG_LOG set to true, I saw in my debug.log file that the call to Zoho to insert the record was failing.
‘`[07-Mar-2017 20:23:51 UTC] Building CF7 form HTML
[07-Mar-2017 20:23:55 UTC] Entered function: /home/micki/shop.youneedtix.com/wp-content/plugins/cf7-zoho-leads/cf7-zoho-leads.php:cf7zl_cf7_email_hook()
[07-Mar-2017 20:23:55 UTC] PHP Notice: Undefined offset: 1 in /home/micki/shop.youneedtix.com/wp-content/plugins/cf7-zoho-leads/cf7-zoho-leads.php on line 71
[07-Mar-2017 20:23:55 UTC] PHP Notice: Undefined index: company in /home/micki/shop.youneedtix.com/wp-content/plugins/cf7-zoho-leads/cf7-zoho-leads.php on line 78
[07-Mar-2017 20:23:55 UTC] PHP Notice: Undefined index: first-name in /home/micki/shop.youneedtix.com/wp-content/plugins/cf7-zoho-leads/cf7-zoho-leads.php on line 78
[07-Mar-2017 20:23:55 UTC] PHP Notice: Undefined index: last-name in /home/micki/shop.youneedtix.com/wp-content/plugins/cf7-zoho-leads/cf7-zoho-leads.php on line 78
[07-Mar-2017 20:23:55 UTC] PHP Notice: Undefined index: email in /home/micki/shop.youneedtix.com/wp-content/plugins/cf7-zoho-leads/cf7-zoho-leads.php on line 78
[07-Mar-2017 20:23:55 UTC] PHP Notice: Undefined index: phone in /home/micki/shop.youneedtix.com/wp-content/plugins/cf7-zoho-leads/cf7-zoho-leads.php on line 78
[07-Mar-2017 20:23:55 UTC] PHP Notice: Undefined index: title in /home/micki/shop.youneedtix.com/wp-content/plugins/cf7-zoho-leads/cf7-zoho-leads.php on line 78
[07-Mar-2017 20:23:55 UTC] Inserting record in Zoho Leads
[07-Mar-2017 20:23:55 UTC] Zoho API request: Array
(
[Company] =>
[First Name] =>
[Last Name] =>
[Email] =>
[Phone] =>
[Title] =>
[Lead Source] => troubleshooting
)[07-Mar-2017 20:23:56 UTC] PHP Fatal error: Uncaught exception ‘ZohoException’ with message ‘Unable to process your request. Please verify if the name and value is appropriate for the “authtoken” parameter.’ in /home/micki/shop.youneedtix.com/wp-content/plugins/cf7-zoho-leads/libs/zoho-crm-api.php:193`
Right off the bat I saw that I’d been using the wrong “AuthToken”. D’oh! I should’ve just clicked the link in the plug-in settings but instead I’d used the one from Zoho. Big mistake. Once corrected, I stopped getting the AuthToken error but still could not insert a record.
In my current form, I only really want to capture the email address and phone number, but there are other fields required to send the form’s information to Zoho. For my purpose I don’t need fields like Company or even First Name. So I installed an additional plugin called Contact Form 7 Dynamic Text Fields or something like that, set default values for the hidden form fields and that was that!
Once I got the fields in correctly, I noticed that although I am now getting an email from Contact Form 7 successfully, but unfortunately I had the dreaded spinning arrows issue. To combat that I set
define( 'WPCF7_LOAD_JS', false);
and life was good!No more issues. Data is flowing into Zoho correctly now. Thanks!
- This reply was modified 7 years, 8 months ago by mizzkalanit.
Forum: Plugins
In reply to: [Plugin: Maintenance Mode] Stay away from this the maintenance mode pluginfound it. did it . solved the issue.
Forum: Plugins
In reply to: [Plugin: Maintenance Mode] Stay away from this the maintenance mode pluginthe new version seems to be throwing some error with my buddy press installation:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/xxxxx/xxxxx/xxxxx/wp-content/mu-plugins/bp-core/bp-core-catchuri.php on line 112
i’m downgrading if i can find the old version.