there is a carriage return after the last field added in "Extra fields Data".
This is hard to detect when looking at the UI - would be nice if the cURL plugin detected this and stripped it off when saving configuration to the database.
This is hard to detect when looking at the UI - would be nice if the cURL plugin detected this and stripped it off when saving configuration to the database.
Hi aef03,
I'll check - I though that the default textarea was empty but should be possible to clean it up before saving.
Bob
I'll check - I though that the default textarea was empty but should be possible to clean it up before saving.
Bob
Bob,
Yes, by default it was empty, but I have one value in there. I either pressed enter after typing it or I had a second value in there and I deleted it without removing the newline.
Thanks,
D.
Yes, by default it was empty, but I have one value in there. I either pressed enter after typing it or I had a second value in there and I deleted it without removing the newline.
Thanks,
D.
Hi aef03,
If you are still testing the cURL plugin here's a new beta version.
To install unzip the files then copy the cf_cURL.php file to the components/com_chronocontact/plugins folder; and the helper.php to administrator/components/com_chronocontact/helpers. In each case rename the existing file to file_name.php.old or something similar in case you need to go back.
This version:[list]Cleans up empty lines in the textareas Allows you to use name={field_name} in the 'Extra field values' textarea (useful if you have form inputs that aren't found by ChronoForms) Has an extra box on the CURL Params tabs where you can add to or over-write the CURLOPT settings. (A bit tricky to test this but CURLOPT_URL=http://example.com successfully over-rides the target URL set above.) Shows the curl_info results in the debug info - they may be helpful. [/list]
Please let me know if you find any bugs.
Bob
If you are still testing the cURL plugin here's a new beta version.
To install unzip the files then copy the cf_cURL.php file to the components/com_chronocontact/plugins folder; and the helper.php to administrator/components/com_chronocontact/helpers. In each case rename the existing file to file_name.php.old or something similar in case you need to go back.
This version:[list]
Please let me know if you find any bugs.
Bob
Thanks for doing this!
I am back working on this.
I have a question and possible bug.
Question - how should I specify fields that are on or off? In PHP I see them as "true" and/or "1".
For instance, to turn on CURLOPT_FOLLOWLOCATION, which of the following would I use:
CURLOPT_FOLLOWLOCATION=1
CURLOPT_FOLLOWLOCATION="1"
CURLOPT_FOLLOWLOCATION=true
CURLOPT_FOLLOWLOCATION="true"
Bug - when click "save" on a form I get a white screen and nothing is ever saved. Does this under both Chrome and Firefox. At first I thought it was related to adding curl opts, but I tested with just editing the curl plugin settings, changing nothing and clicking "save" and the same thing happened.
Also, doing a save of the form in the form wizard appears to work fine.
Thanks for any help,
D.
I am back working on this.
I have a question and possible bug.
Question - how should I specify fields that are on or off? In PHP I see them as "true" and/or "1".
For instance, to turn on CURLOPT_FOLLOWLOCATION, which of the following would I use:
CURLOPT_FOLLOWLOCATION=1
CURLOPT_FOLLOWLOCATION="1"
CURLOPT_FOLLOWLOCATION=true
CURLOPT_FOLLOWLOCATION="true"
Bug - when click "save" on a form I get a white screen and nothing is ever saved. Does this under both Chrome and Firefox. At first I thought it was related to adding curl opts, but I tested with just editing the curl plugin settings, changing nothing and clicking "save" and the same thing happened.
Also, doing a save of the form in the form wizard appears to work fine.
Thanks for any help,
D.
Hi aef03,
I would expect either CURLOPT_FOLLOWLOCATION=1 or CURLOPT_FOLLOWLOCATION=true to work OK (the versions with no quotes).
Do you have PHP in your Form HTML? If so then the blank screen may be caused by a quirk in the current release of ChronoForms that tries to evaluate the form code on save. The workaround is to add
Bob
I would expect either CURLOPT_FOLLOWLOCATION=1 or CURLOPT_FOLLOWLOCATION=true to work OK (the versions with no quotes).
Do you have PHP in your Form HTML? If so then the blank screen may be caused by a quirk in the current release of ChronoForms that tries to evaluate the form code on save. The workaround is to add
<?php
if ( !$mainframe->isSite() ) {return;}
. . .before any PHP in the Form HTML box.Bob
No I do not have php in the form html. Doing a regular save works fine, it is just saving curl options that white screens - so I'm pretty sure it is something in the new code.
Thanks,
D.
Thanks,
D.
Was anyone able to examine this bug - the last offered solution does not appear to be related to my problem because I do not have PHP in the form code - it is just the standard form code.
Thanks,
D.
Thanks,
D.
Hi aef03,
By all means PM or Email me the site URL and a SuperAdmin login and I'll take a quick look.
I haven't looked at the cURL code recently but it was working OK.
Bob
By all means PM or Email me the site URL and a SuperAdmin login and I'll take a quick look.
I haven't looked at the cURL code recently but it was working OK.
Bob
Hello!
I have the same blank page when saving CURL parameters AND when sending the form on the frontend.
Only CURL plugin active (last beta) and not CURLOPT parameters.
It worked fine before this beta was installed. Bug?
Thank you very much!
I have the same blank page when saving CURL parameters AND when sending the form on the frontend.
Only CURL plugin active (last beta) and not CURLOPT parameters.
It worked fine before this beta was installed. Bug?
Thank you very much!
This topic is locked and no more replies can be posted.
