Forums

ChronoForms v4 + Joomla 163 + Vtiger and CURL

dgoran 21 Apr, 2011
As the topic said i am trying to create web to lead using cf v4 and latest Joomla to import lead in to latest vtiger as of April 21 2011.

I was trying to follow http://www.digitalbuz.com/2010/02/04/joomla-vtiger-crm-integration-using-chronoforms/ but chronoforms user interface has changed so It is quite difficult to recreate following instructions for cf v3.

Whats puzzling to me is debug is showing blank curl values although I have enthered following params under curl:
moduleName=Leads
firstname=firstname
lastname=lastname
company=company
leadsource=Web Site



CURL OK : the CURL function was found on this server.
$curl_values:
curl_target_url: http://127.0.0.1/vtigercrm/modules/WebForms/post.php


Is curl still buggy under v4?

Thanks for all your help...
GreyHead 21 Apr, 2011
Hi dgoran,

Basic cURL works OK in my tests in CFv4 on Joomla! 1.5. Not tested by me on Joomla! 1.6.

Looks like the input name Web Site has a space in it - that will break the form; please rename to website or web_site.

Bob
dgoran 21 Apr, 2011
I removed Web Site param altogether this is what I got now

CURL OK : the CURL function was found on this server.
$curl_values: company=AS
curl_target_url: http://127.0.0.1/vtigercrm/modules/WebForms/post.php


This is with following params

moduleName=Leads
firstname=firstname
lastname=lastname
company=company
GreyHead 21 Apr, 2011
Hi dgoran,

Are you on localhost? If so please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.

If the form is online then please post a link to the form so we can take a quick look.

Bob
dgoran 21 Apr, 2011
Just PM-ed you. I am on localhost...

-G
dgoran 21 Apr, 2011
Just PM-ed you. I am on localhost...

-G
GreyHead 21 Apr, 2011
Hi dgoran,

It looks as though the standard CURL action isn't working correctly. I don't have time to debug it now - and I'm not sure that it will do what you need.

Please try the cURL [GH] action attached here. Unzip the file and copy the folder to the administrator/components/com_chronoforms/form_actions folder.

Then open the CURL actions group and drag over a Curl [GH] action. The boxes are the same but the Params/Fields map box behaves differently. Use the syntat param=value to set a fixed value e.g. moduleName=Leads and param={input_name} to get a variable value from the form results e.g. lastname={lastname}

Here are the settings I tested
firstname={firstname}
lastname={lastname}
company={company}
moduleName=Leads
and the Debug results (I don't have VTiger installed so there is no confirmation)[quote]curl_gh

cURL OK : the cURL function was found on this server.
$curl_values: firstname=firstname&lastname=lastname&company=compnay&moduleName=Leads
curl_gh_target_url: http://127.0.0.1/vtigercrm/modules/WebForms/post.php
cURL : Resource id #166
cURL info: Array ( [url] => [url=http://127.0.0.1/vtigercrm/modules/WebForms/post.php]http://127.0.0.1/vtigercrm/modules/WebForms/post.php[/url] [content_type] => text/html; charset=iso-8859-1 [http_code] => 404 [header_size] => 369 [request_size] => 223 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 0 [namelookup_time] => 0 [connect_time] => 0 [pretransfer_time] => 0 [size_upload] => 70 [size_download] => 1184 [speed_download] => 1184 [speed_upload] => 70 [download_content_length] => -1 [upload_content_length] => -1 [starttransfer_time] => 0 [redirect_time] => 0 )[/quote]
Bob
Max_admin 21 Apr, 2011
Hi,

Just found a problem in the CURL action, you may contact me through the "Contact Us" page to get it, it will be available in the next release of course.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
dgoran 22 Apr, 2011
HI

Thanks Bob

I tried below quoted suggestion but no go...
GreyHead 23 Apr, 2011
Hi dgoran,

"no go" . . . how exactly?? Do you get any result? Do you have the Debug turned on?

Bob
dgoran 24 Apr, 2011
Hey Bob

Thanks a lot. Your Curl Worked...what I did wrong initially is that I did not realize that your Curl GH created another "draggable" curl form event that I had to use instead of Curl Event that was already there. So initially I tested curly bracket syntax with existing curl event. Sorry for my mistake.

Anyhow now it works, I owe you a beer🙂 on Monday...(I am not in my office ATM...)

-Goran
GreyHead 25 Apr, 2011
Hi Goran,

Glad it worked, thanks for letting us know.

Bob
Max_admin 27 Apr, 2011
Hi Goran,

If possible please show us a screenshot for your CURL configuration now (the one you are using/made by Bob) ?

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.