×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Bug when using required fields and/or interests

Bug when using required fields and/or interests 10 years 3 months ago #24538

  • Dave Fisher
  • Dave Fisher's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
I have two fields that are required and one interest group. I kept receiving an error message from MailChimp (via your API call) that "FNAME" (first name) was required when submitting the subscribe request via your module interface. I tracked the issue down to a bug where this information was not being passed to CmcHelperRegistration::activateDirectUser(). See the following graphic and associated hack:



CmcHelperRegistration::activateDirectUser() expect the arrays cmc_groups and cmc_interests to be children of cmc (as 'groups' and 'interests'). I am using Joomla's registration process.

*Edit* -- graphic above was poor quality once submitted... here is a smaller cut and hopefully more legible. The PHP module in question is plugins/user/cmc/cmc.php.

Attachments:

Bug when using required fields and/or interests 10 years 3 months ago #24556

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Dave,
Have you selected the FNAME in the module settings? Is the field required in mailchimp. If it is required, then you need to select on your end as well.

Regards,
Daniel

Bug when using required fields and/or interests 10 years 3 months ago #24561

  • Dave Fisher
  • Dave Fisher's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
Yes, they are selected. But despite this, the error was generated from MailChimp as they were not being passed to the API. My plugin settings are below:

Attachments:

Bug when using required fields and/or interests 10 years 2 months ago #24806

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Dave,
I was able to confirm the issue & I think that I fixed it. Could you please try the following release:
compojoom.com/downloads/developer-releas...f/dev-cmc/git5c76699

Thanks,
Daniel
  • Page:
  • 1
Time to create page: 0.397 seconds