I suspect Amelia is reading duplicate instances of WhatsApp variables in a message template as distinct instances, meaning those messages are impossible to send.
We've set up WhatApp integration in Amelia. Some of the notifications send but some fail. The ones that fail return an error message of "(#132000) Number of parameters does not match the expected number of params".
After doing a little digging, this is apparently a problem with the variables/placeholders.
As an example, we have a message template on the WhatApp dev site of:
"Hi *{{1}}*, Your *{{2}}* appointment with *{{3}}* has now been *APPROVED*! Thank you for booking with us 😁
*{{3}}* will be in touch before you arrive at the studio, please ask any questions you may have. *Arrive prepared to train*, on successful completion of your consultation we get straight to it so you get the most out of your first session.
Details: You are booked in with *{{3}}* at *{{4}}* on *{{5}}* starting at *{{6}}*."
As you can see in the attached image am_wa1.jpg there are 6 variables (3 being used three times, making 8 instances of a variable).
In the other attached image am_wa2.jpg you can see that Amelia expects this to be eight placeholders instead of six. The messaghes with this problem fail to send.
Is this a bug in Amelia that needs to be addressed or am I missing something here?
The thing is that you cannot use the same number of parameter twice, you can only use it once.
For example.
"Hi *{{1}}*,
Your *{{2}}* appointment with *{{3}} (you have used 3 here already)* has now been *APPROVED*! Thank you for booking with us 😁
*{{3}}* (this will cause this error) will be in touch before you arrive at the studio, please ask any questions you may have. *Arrive prepared to train*, on successful completion of your consultation we get straight to it so you get the most out of your first session.
Details:
You are booked in with *{{3}}* at *{{4}}* on *{{5}}* starting at *{{6}}*."
Hello,
I suspect Amelia is reading duplicate instances of WhatsApp variables in a message template as distinct instances, meaning those messages are impossible to send.
We've set up WhatApp integration in Amelia. Some of the notifications send but some fail. The ones that fail return an error message of "(#132000) Number of parameters does not match the expected number of params".
After doing a little digging, this is apparently a problem with the variables/placeholders.
As an example, we have a message template on the WhatApp dev site of:
"Hi *{{1}}*,
Your *{{2}}* appointment with *{{3}}* has now been *APPROVED*! Thank you for booking with us 😁
*{{3}}* will be in touch before you arrive at the studio, please ask any questions you may have. *Arrive prepared to train*, on successful completion of your consultation we get straight to it so you get the most out of your first session.
Details:
You are booked in with *{{3}}* at *{{4}}* on *{{5}}* starting at *{{6}}*."
As you can see in the attached image am_wa1.jpg there are 6 variables (3 being used three times, making 8 instances of a variable).
In the other attached image am_wa2.jpg you can see that Amelia expects this to be eight placeholders instead of six. The messaghes with this problem fail to send.
Is this a bug in Amelia that needs to be addressed or am I missing something here?
Thanks,
Aidan.
Attached files: am_wa1.jpg
am_wa2.jpg
Hello Aidan,
Thank you for reaching out to us.
The thing is that you cannot use the same number of parameter twice, you can only use it once.
For example.
"Hi *{{1}}*, Your *{{2}}* appointment with *{{3}} (you have used 3 here already)* has now been *APPROVED*! Thank you for booking with us 😁
*{{3}}* (this will cause this error) will be in touch before you arrive at the studio, please ask any questions you may have. *Arrive prepared to train*, on successful completion of your consultation we get straight to it so you get the most out of your first session.
Details: You are booked in with *{{3}}* at *{{4}}* on *{{5}}* starting at *{{6}}*."
Kind Regards,
Uros Jovanovic
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables