Hi
I have to integrate acymailing subscription into a chronoforms form.
I did this before with chronoforms 4 and the cURL[GH] Action, and it worked.
So now i try to do the same with chronoforms 5 and the cURL - Action
my cURL entries:
But it doesn't work.
The debugger shows me this
It should look like this:
http://website.com/index.php?option=com_acymailing&ctrl=sub&task=optin&hiddenlists=1&user[email]=admin@website.com&user[name]=miller
Any Idea?
Thank you very much
Chris
I have to integrate acymailing subscription into a chronoforms form.
I did this before with chronoforms 4 and the cURL[GH] Action, and it worked.
So now i try to do the same with chronoforms 5 and the cURL - Action
my cURL entries:
ctrl=ctrl
task=optin
option=com_acymailing
hiddenlists=1
subscription={subscription}
user[name]={lastname}
user[firstname]={firstname}
user[email]={email}
But it doesn't work.
The debugger shows me this
[14] => Array
(
[Curl] => Array
(
[0] => CURL OK : the CURL function was found on this server.
[1] => $curl_values: ctrl=sub&user%5Bname%5D=miller&user%5Bfirstname%5D=john&user%5Bemail%5D=admin3%40webiste.com
[2] => curl_target_url: http://ifma.allerhand.ch
[3] => curl_errors:
[4] => curl_info: Array
(
[url] => http://website.com/
It should look like this:
http://website.com/index.php?option=com_acymailing&ctrl=sub&task=optin&hiddenlists=1&user[email]=admin@website.com&user[name]=miller
Any Idea?
Thank you very much
Chris
Hello galbur,
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
How can I use cURL with AcyMailing?
P.S: I'm just an automated service😉
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
How can I use cURL with AcyMailing?
P.S: I'm just an automated service😉
Hi Chris,
The syntax for the CFv5 cURL action is different :-( Don't ask me why - I have no idea
Constant values need to be in quotes: option="com_acymailing"
And variables with no quotes or brackets: subscription=subscription
Bob
PS Or, if you need something more complex I have an AcyMailing [GH] action that lets you subscribe or unsubscribe users to multiple lists depending on the form data
The syntax for the CFv5 cURL action is different :-( Don't ask me why - I have no idea
Constant values need to be in quotes: option="com_acymailing"
And variables with no quotes or brackets: subscription=subscription
Bob
PS Or, if you need something more complex I have an AcyMailing [GH] action that lets you subscribe or unsubscribe users to multiple lists depending on the form data
Hi Bob
Thank you so much for your incredibly fast support!
With your help, i'm almost there..
I have now cURL Values that works perfect behind
http://website.com/index.php?
But the form with a Joomla Registration won't work. The Jomla registration works, the Acy-Mailing subscription not.
Maybe i have a wrong sequenze?
Thank you..
Chris
Thank you so much for your incredibly fast support!
With your help, i'm almost there..
I have now cURL Values that works perfect behind
http://website.com/index.php?
But the form with a Joomla Registration won't work. The Jomla registration works, the Acy-Mailing subscription not.
Maybe i have a wrong sequenze?
Thank you..
Chris
and ..
I forgot to ask. Does the AcyMailing [GH] - Action work with chronoforms 5?
Where can i order it?
thanks
best regards
chris
I forgot to ask. Does the AcyMailing [GH] - Action work with chronoforms 5?
Where can i order it?
thanks
best regards
chris
Hi Galbur,
The sequence look OK to me. If you add a DeBugger does that give you any clues?
I've PM'd you a link for the action.
Bob
PS I recommend not using the On Success events of actions like the Joomla! Registration. They work OK but the extra nesting adds complexity. If you put the other actions after the Registration action that works in the same way.
The sequence look OK to me. If you add a DeBugger does that give you any clues?
I've PM'd you a link for the action.
Bob
PS I recommend not using the On Success events of actions like the Joomla! Registration. They work OK but the extra nesting adds complexity. If you put the other actions after the Registration action that works in the same way.
Hi Bob
Tahnks again!
Ok. I can't find any clue.
And thank you for the hint with the Os Success Actions: But what is the alternative to have an Joomla-User Registration (with acess to aspecific usergroup) with an acmayling Subscription at the same time?
Tahnks again!
Ok. I can't find any clue.
And thank you for the hint with the Os Success Actions: But what is the alternative to have an Joomla-User Registration (with acess to aspecific usergroup) with an acmayling Subscription at the same time?
Data Array
Array
(
[option] => com_chronoforms5
[chronoform] => 03_newsletter3
[event] => submit
[anrede] => Herr
[firstname] => Peter
[lastname] => Meier
[title_abschluss] =>
[email] => admin22@allerhand.ch
[firma_1a] =>
[firma_2a] =>
[strasse_1a] =>
[strasse_2a] =>
[land_a] =>
[plz_a] =>
[ort_a] =>
[telefon_a] =>
[mobile_a] =>
[senden_01] => Senden
[name] => Meier
[username] => admin22@allerhand.ch
[password] => VoQSSGLn
[password2] => VoQSSGLn
[_PLUGINS_] => Array
(
[joomla_registration] => Array
(
[*isRoot] =>
[id] => 2393
[name] => Meier
[username] => admin22@allerhand.ch
[email] => admin22@allerhand.ch
[password] => $2y$10$2IOha9swrDNtFvDhIojer.YgQXYrevFOTgDQBA6/alkjBW3GO1JHu
[password_clear] => VoQSSGLn
[block] => 1
[sendEmail] => 0
[registerDate] => 2016-02-03 16:34:41
[lastvisitDate] =>
[activation] => 3ceeed8326aacb87ae0c50355d01a1c5
[groups] => Array
(
[0] => 54
)
[lastResetTime] =>
[resetCount] =>
[requireReset] =>
[*_params] => Joomla\Registry\Registry Object
(
[data:protected] => stdClass Object
(
)
[separator] => .
)
[*_authGroups] => Array
(
[0] => 1
[1] => 48
)
[*_authLevels] => Array
(
[0] => 1
[1] => 1
[2] => 35
)
[*_authActions] =>
[*_errorMsg] =>
[*userHelper] => JUserWrapperHelper Object
(
)
[*_errors] => Array
(
)
[aid] => 0
[cookieLogin] =>
[option] => com_chronoforms5
[chronoform] => 03_newsletter3
[event] => submit
[anrede] => Herr
[firstname] => Peter
[lastname] => Meier
[title_abschluss] =>
[firma_1a] =>
[firma_2a] =>
[strasse_1a] =>
[strasse_2a] =>
[land_a] =>
[plz_a] =>
[ort_a] =>
[telefon_a] =>
[mobile_a] =>
[senden_01] => Senden
[password2] => VoQSSGLn
[usertype] => deprecated
)
)
[id] => 2393
[ip_address] => 85.5.35.128
[curl] => <!DOCTYPE html>
<html style="height:100%">
<head><title> 401 Unauthorized
</title></head>
<body style="color: #444; margin:0;font: normal 14px/20px Arial, Helvetica, sans-serif; height:100%; background-color: #fff;">
<div style="height:auto; min-height:100%; "> <div style="text-align: center; width:800px; margin-left: -400px; position:absolute; top: 30%; left:50%;">
<h1 style="margin:0; font-size:150px; line-height:150px; font-weight:bold;">401</h1>
<h2 style="margin-top:20px;font-size: 30px;">Unauthorized
</h2>
<p>Proper authorization is required to access this resource!</p>
</div></div></body></html>
)
Array
(
)
Errors
Array
(
)
Debug Info
Array
(
[5] => Array
(
[DB Save] => Array
(
[Queries] => Array
(
[0] => UPDATE `all_jsn_users` AS `Data` SET `anrede` = 'Herr', `firstname` = 'Peter', `lastname` = 'Meier', `title_abschluss` = '', `firma_1a` = '', `firma_2a` = '', `strasse_1a` = '', `strasse_2a` = '', `land_a` = '', `plz_a` = '', `ort_a` = '', `telefon_a` = '', `mobile_a` = '' WHERE `id` = '2393';
)
)
)
[9] => Array
(
[Email] => Array
(
[0] => An email with the details below was sent successfully:
[1] => To:admin+ifma_admin@allerhand.ch, ifma+admin@allerhand.ch
[2] => Subject:Newsletteranmeldung
[3] => From name:IFMA Schweiz Administrator
[4] => From email:webmaster@allerhand.ch
[5] => CC:
[6] => BCC:
[7] => Reply name:
[8] => Reply email:
[9] => Attachments:
[10] => Array
(
)
[11] => Body:
<table>
<tr><td>Anrede</td><td>Herr</td></tr>
<tr><td>Vorname</td><td>Peter</td></tr>
<tr><td>Nachname</td><td>Meier</td></tr>
<tr><td>Titel / Abschluss</td><td></td></tr>
<tr><td>Email</td><td>admin22@allerhand.ch</td></tr>
<tr><td></td><td></td></tr>
<tr><td>Firmenadresse</td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>Firma</td><td></td></tr>
<tr><td>Firma Zusatz</td><td></td></tr>
<tr><td>Strasse</td><td></td></tr>
<tr><td>Strasse Zusatz</td><td></td></tr>
<tr><td>Land</td><td></td></tr>
<tr><td>PLZ</td><td></td></tr>
<tr><td>Ort</td><td></td></tr>
<tr><td>Telefon</td><td></td></tr>
<tr><td>Mobile</td><td></td></tr>
<tr><td></td><td></td></tr>
</table><br /><br />IP: 85.5.35.128
)
)
[20] => Array
(
[Curl] => Array
(
[0] => CURL OK : the CURL function was found on this server.
[1] => $curl_values: ctrl=sub&task=optin&option=com_acymailing&hiddenlists=1&user%5Bname%5D=Meier&user%5Bemail%5D=admin22%40allerhand.ch
[2] => curl_target_url: http://ifma.allerhand.ch/index.php?
[3] => curl_errors:
[4] => curl_info: Array
(
[url] => http://ifma.allerhand.ch/index.php?
[content_type] => text/html
[http_code] => 401
[header_size] => 284
[request_size] => 252
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.016864
[namelookup_time] => 0.012976
[connect_time] => 0.013129
[pretransfer_time] => 0.01323
[size_upload] => 115
[size_download] => 624
[speed_download] => 37001
[speed_upload] => 6819
[download_content_length] => 624
[upload_content_length] => 115
[starttransfer_time] => 0.016808
[redirect_time] => 0
[redirect_url] =>
[primary_ip] => 194.126.200.52
[certinfo] => Array
(
)
[primary_port] => 80
[local_ip] => 194.126.200.52
[local_port] => 48789
)
)
)
)
Vielen Dank
Um Ihre Newsletter-Registrierung zu bestätigen, erhalten Sie von uns eine E-Mail mit einem Aktivierungs-Link.
Mit freundlichen Grüssen
IFMA Schweiz
Data Array
Array
(
[option] => com_chronoforms5
[chronoform] => 03_newsletter3
[event] => submit
[anrede] => Herr
[firstname] => Peter
[lastname] => Meier
[title_abschluss] =>
[email] => admin22@allerhand.ch
[firma_1a] =>
[firma_2a] =>
[strasse_1a] =>
[strasse_2a] =>
[land_a] =>
[plz_a] =>
[ort_a] =>
[telefon_a] =>
[mobile_a] =>
[senden_01] => Senden
[name] => Meier
[username] => admin22@allerhand.ch
[password] => VoQSSGLn
[password2] => VoQSSGLn
[_PLUGINS_] => Array
(
[joomla_registration] => Array
(
[*isRoot] =>
[id] => 2393
[name] => Meier
[username] => admin22@allerhand.ch
[email] => admin22@allerhand.ch
[password] => $2y$10$2IOha9swrDNtFvDhIojer.YgQXYrevFOTgDQBA6/alkjBW3GO1JHu
[password_clear] => VoQSSGLn
[block] => 1
[sendEmail] => 0
[registerDate] => 2016-02-03 16:34:41
[lastvisitDate] =>
[activation] => 3ceeed8326aacb87ae0c50355d01a1c5
[groups] => Array
(
[0] => 54
)
[lastResetTime] =>
[resetCount] =>
[requireReset] =>
[*_params] => Joomla\Registry\Registry Object
(
[data:protected] => stdClass Object
(
)
[separator] => .
)
[*_authGroups] => Array
(
[0] => 1
[1] => 48
)
[*_authLevels] => Array
(
[0] => 1
[1] => 1
[2] => 35
)
[*_authActions] =>
[*_errorMsg] =>
[*userHelper] => JUserWrapperHelper Object
(
)
[*_errors] => Array
(
)
[aid] => 0
[cookieLogin] =>
[option] => com_chronoforms5
[chronoform] => 03_newsletter3
[event] => submit
[anrede] => Herr
[firstname] => Peter
[lastname] => Meier
[title_abschluss] =>
[firma_1a] =>
[firma_2a] =>
[strasse_1a] =>
[strasse_2a] =>
[land_a] =>
[plz_a] =>
[ort_a] =>
[telefon_a] =>
[mobile_a] =>
[senden_01] => Senden
[password2] => VoQSSGLn
[usertype] => deprecated
)
)
[id] => 2393
[ip_address] => 85.5.35.128
[curl] => <!DOCTYPE html>
<html style="height:100%">
<head><title> 401 Unauthorized
</title></head>
<body style="color: #444; margin:0;font: normal 14px/20px Arial, Helvetica, sans-serif; height:100%; background-color: #fff;">
<div style="height:auto; min-height:100%; "> <div style="text-align: center; width:800px; margin-left: -400px; position:absolute; top: 30%; left:50%;">
<h1 style="margin:0; font-size:150px; line-height:150px; font-weight:bold;">401</h1>
<h2 style="margin-top:20px;font-size: 30px;">Unauthorized
</h2>
<p>Proper authorization is required to access this resource!</p>
</div></div></body></html>
)
Array
(
)
Errors
Array
(
)
Debug Info
Array
(
[5] => Array
(
[DB Save] => Array
(
[Queries] => Array
(
[0] => UPDATE `all_jsn_users` AS `Data` SET `anrede` = 'Herr', `firstname` = 'Peter', `lastname` = 'Meier', `title_abschluss` = '', `firma_1a` = '', `firma_2a` = '', `strasse_1a` = '', `strasse_2a` = '', `land_a` = '', `plz_a` = '', `ort_a` = '', `telefon_a` = '', `mobile_a` = '' WHERE `id` = '2393';
)
)
)
[9] => Array
(
[Email] => Array
(
[0] => An email with the details below was sent successfully:
[1] => To:admin+ifma_admin@allerhand.ch, ifma+admin@allerhand.ch
[2] => Subject:Newsletteranmeldung
[3] => From name:IFMA Schweiz Administrator
[4] => From email:webmaster@allerhand.ch
[5] => CC:
[6] => BCC:
[7] => Reply name:
[8] => Reply email:
[9] => Attachments:
[10] => Array
(
)
[11] => Body:
<table>
<tr><td>Anrede</td><td>Herr</td></tr>
<tr><td>Vorname</td><td>Peter</td></tr>
<tr><td>Nachname</td><td>Meier</td></tr>
<tr><td>Titel / Abschluss</td><td></td></tr>
<tr><td>Email</td><td>admin22@allerhand.ch</td></tr>
<tr><td></td><td></td></tr>
<tr><td>Firmenadresse</td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>Firma</td><td></td></tr>
<tr><td>Firma Zusatz</td><td></td></tr>
<tr><td>Strasse</td><td></td></tr>
<tr><td>Strasse Zusatz</td><td></td></tr>
<tr><td>Land</td><td></td></tr>
<tr><td>PLZ</td><td></td></tr>
<tr><td>Ort</td><td></td></tr>
<tr><td>Telefon</td><td></td></tr>
<tr><td>Mobile</td><td></td></tr>
<tr><td></td><td></td></tr>
</table><br /><br />IP: 85.5.35.128
)
)
[20] => Array
(
[Curl] => Array
(
[0] => CURL OK : the CURL function was found on this server.
[1] => $curl_values: ctrl=sub&task=optin&option=com_acymailing&hiddenlists=1&user%5Bname%5D=Meier&user%5Bemail%5D=admin22%40allerhand.ch
[2] => curl_target_url: http://ifma.allerhand.ch/index.php?
[3] => curl_errors:
[4] => curl_info: Array
(
[url] => http://ifma.allerhand.ch/index.php?
[content_type] => text/html
[http_code] => 401
[header_size] => 284
[request_size] => 252
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.016864
[namelookup_time] => 0.012976
[connect_time] => 0.013129
[pretransfer_time] => 0.01323
[size_upload] => 115
[size_download] => 624
[speed_download] => 37001
[speed_upload] => 6819
[download_content_length] => 624
[upload_content_length] => 115
[starttransfer_time] => 0.016808
[redirect_time] => 0
[redirect_url] =>
[primary_ip] => 194.126.200.52
[certinfo] => Array
(
)
[primary_port] => 80
[local_ip] => 194.126.200.52
[local_port] => 48789
)
)
)
)
Hi galbur,
This message "Proper authorization is required to access this resource!" suggests that AcyMailing permissions are set to block subscriptions like this - see this this thread from their forums. This isn't exactly the same but I think it may point in the right direction.
Also you can set a security key for Acy Mailing - I don't know if that will get round the permissions problem. See this post - the tutorial there may also be helpful,
Bob
This message "Proper authorization is required to access this resource!" suggests that AcyMailing permissions are set to block subscriptions like this - see this this thread from their forums. This isn't exactly the same but I think it may point in the right direction.
Also you can set a security key for Acy Mailing - I don't know if that will get round the permissions problem. See this post - the tutorial there may also be helpful,
Bob
Hi Bob
Thanks again.
I tried it with a much simpler form but with the same results.
I have still this "Proper authorization is required to access this resource!" message, and it doesn't work.
According to the Acymailing Forum everything seems okay.
So i will ask in the Acymailing-Forum.
See you
Chris
Thanks again.
I tried it with a much simpler form but with the same results.
I have still this "Proper authorization is required to access this resource!" message, and it doesn't work.
According to the Acymailing Forum everything seems okay.
Array
(
[option] => com_chronoforms5
[chronoform] => TEMP_newsletter
[event] => submit
[vorname] => Willi
[nachname] => Schnarwiler
[email] => admin+1234@allerhand.ch
[newsletter] => 1
[button5] => Submit
[name] => Willi Schnarwiler
[curl] => <!DOCTYPE html>
<html style="height:100%">
<head><title> 401 Unauthorized
</title></head>
<body style="color: #444; margin:0;font: normal 14px/20px Arial, Helvetica, sans-serif; height:100%; background-color: #fff;">
<div style="height:auto; min-height:100%; "> <div style="text-align: center; width:800px; margin-left: -400px; position:absolute; top: 30%; left:50%;">
<h1 style="margin:0; font-size:150px; line-height:150px; font-weight:bold;">401</h1>
<h2 style="margin-top:20px;font-size: 30px;">Unauthorized
</h2>
<p>Proper authorization is required to access this resource!</p>
</div></div></body></html>
)
So i will ask in the Acymailing-Forum.
See you
Chris
Hi Bob
Thank you.
I think the Problem is solved.
It was because of a .htaccess / .htpasswd settings on the Server.
Best regards
Chris
Thank you.
I think the Problem is solved.
It was because of a .htaccess / .htpasswd settings on the Server.
Best regards
Chris
This topic is locked and no more replies can be posted.