Users not being added to lists ERROR

More
14 Feb 2024 03:56 #2727 by MrBean
Hi Guys we are having issues with Mailchimp List and adding users - plugins are all activated and subscriptions working from Module however when trying to add user to list we get:
1 Errors: Bad request (Your merge fields were invalid.) => min@gmtcj.com)
Our List in Mailchimp has following fields:
Email Address: EMAIL
First Name FNAME
Last Name LNAME
Date added (API) SIGNUPAPI
When I look at List in Joomla and look at merge fields I only see the Date added (API) field -
If I try to add a name field it says already exists in list?
Ā 

Please Log in or Create an account to join the conversation.

More
14 Feb 2024 04:13 #2728 by MrBean
Additionaly I get this error when trying to subscribe a user via user manager Newsletter tab:
Save failed with the following error: JM_BAD_REQUEST (The resource submitted could not be validated. For field-specific details, see the 'errors' array.)

Please Log in or Create an account to join the conversation.

More
14 Feb 2024 11:25 - 14 Feb 2024 11:32 #2729 by pete
Hi MrBean,

That's a weird one. It shouldn't be the case obviously and I don't see anything wrong with the merge fields setup. The Date Added (API) field is created automatically as an invisible field to keep a record when and if the user was added through Joomlamailer.

The email and name fields are not shown in the interface because they are mandatory, always exist and shouldn't be altered through Joomlamailer. So that's normal behaviour that you wouldn't see them.

Regarding the error, can you please edit this file on your server: administrator/components/com_joomailermailchimpintegration/libraries/Mailchimp/JoomlamailerMailchimp.php
Modify line 17 where is says public $debug = false;
to:
public $debug = true;

Then try again to add a user to the list and check the file
administrator/components/com_joomailermailchimpintegration/libraries/Mailchimp/mc_api.log
At the end it will show ".... Response:" and there will be the error message and details.
Let me know what it says in this line.

Set debug to false again right away as the log file grows quickly and might slow down your system after a while.
Last edit: 14 Feb 2024 11:32 by pete.

Please Log in or Create an account to join the conversation.

More
15 Feb 2024 00:27 #2730 by MrBean
Hi Pete,
thanks for quick response much appreciated - output as follows looks like date issue?
Response: {"type":" mailchimp.com/developer/marketing/docs/e...s/","title":"Invalid Resource","status":400,"detail":"Your merge fields were invalid.","instance":"c926d017-8009-4eb0-865a-94de611b8980","errors":[{"field":"SIGNUPAPI","message":"Please enter the date"}]}

Please Log in or Create an account to join the conversation.

More
16 Feb 2024 17:11 #2733 by pete
Hi MrBean,

Thanks for reporting this issue and providing details. I managed to reproduce it and it was indeed an issue with the date format of the SIGNUPAPI merge field. I have release a new version just now, which also includes a fix for this issue.
The new version is fully compatible with Joomla 5 and no longer requires the compatibility plugin. This means almost every single file had to be modified. If you come across anything that doesn't work or shows errors let me know!

Get the new version here: www.joomlamailer.com/downloads

Best regards,
Pete

Please Log in or Create an account to join the conversation.

More
19 Feb 2024 07:10 #2734 by MrBean
Yes I updated all good backend and adding users to list worked but broke front end site with 500 error. I'm presuming because the subscribe module was on all pages. I've had to revert to the older 4.01 version to get the site to load?

Please Log in or Create an account to join the conversation.

More
19 Feb 2024 15:42 #2735 by pete
Hi MrBean and thanks for reporting this. I found an issue with the signup module caused by the recent update. I also added layout improvements so the form renders nicely using bootstrap form layouts as well as form validation for URL and date fields to prevent API errors when submitting the form. Please upgrade to the latest version (4.1.1).

Best regards,
Pete

Please Log in or Create an account to join the conversation.