List Fields Not Saving

More
12 Oct 2010 21:07 #306 by daycom
I've tried to assign MailChimp's custom fields to my JomSocial fields, but every time I select the one I'd like to assign and save the edit I made, a message appears at the top that says "Group Created", and when I go back in to edit the same field, the changes I made are not saved. It goes back to saying "--Select A Field--".

Likewise, in my list on MailChimp it doesn't show any information from these fields when a new email is imported using the component.

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

More
12 Oct 2010 23:19 #307 by chris
Replied by chris on topic List Fields Not Saving
Hey,

This happens when the fields have been created from within Mailchimp as there is no record of them in the Joomailer tables. To sort this you can make the following fix to ...administrator/components/com_joomailermailchimpintegration/controllers/fields.php from line 172.

Replace line 172
Code:
// store field association in J! db if( $action == 'add' ){

with this (where it says 'new' it should be a hash and then _ but the forum won't let me write one)
Code:
//Check to see if field associations are stored locally $query = "SELECT id FROM new_joomailermailchimpintegration_custom_fields ". "WHERE `grouping_id` = '".$tag."'"; $db->setQuery($query); $cfid = $db->loadResult(); // store field association in J! db if( $action == 'add' || !$cfid ){

Let me know if this works.

Cheers,

Chris

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

More
13 Oct 2010 00:48 #308 by daycom
Replied by daycom on topic List Fields Not Saving
I made this change, but the JomSocial fields still don't seem to be saving. Registering a new user and filling out the custom fields does not transfer those fields' data to MailChimp. Neither does importing them "manually" by going to the list and selecting the user to add to the MailChimp list in the component.

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

More
13 Oct 2010 01:35 #309 by chris
Replied by chris on topic List Fields Not Saving
Did you remember to replace 'new' with 'hash_' ?

This forum does not let me write a hash symbol, therefore, if you just copy pasted the code from above it will not work.

So copy the code and where it says 'new' replace it with one of these

en.wikipedia.org/wiki/Number_sign

and then an underline _.

It worked for me when I tested it on the copy of your site you sent over.

Chris

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

More
15 Oct 2010 19:16 #313 by daycom
Replied by daycom on topic List Fields Not Saving
It looks like there was a problem with my server permissions that wasn't allowing me to alter the file directory. So the changes I thought I had made didn't even get uploaded!

Now, I was able to get past that and replace the code on the line with the one you provided (including the hash replacement), but this is the message I get now:

* Model class joomailermailchimpintegrationsModelFields not found in file.

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

More
18 Oct 2010 13:03 #323 by chris
Replied by chris on topic List Fields Not Saving
If the model class is not found this would imply that there was a problem when ..administrator/components/com_joomailermailchimpintegration/controllers/fields.php was saved. Take a look at that file and make sure it is not empty.

If it is not empty then send a copy of the file to contact at joomailer dot com.

Cheers,

Chris

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

More
18 Oct 2010 18:39 #336 by chris
Replied by chris on topic List Fields Not Saving
Sorry, I confused myself earlier. I meant to say that there is a problem with ..administrator/components/com_joomailermailchimpintegration/models/fields.php as it is the model class which appears to be missing.

Please check that file to see if it is empty.

Cheers,

Chris

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

More
18 Oct 2010 18:46 #337 by daycom
Replied by daycom on topic List Fields Not Saving
I sent that in my email. The models/fields.php file.

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

More
18 Oct 2010 18:53 #338 by chris
Replied by chris on topic List Fields Not Saving
Okay, then that explains it. The file that you sent me is the fields controller. If this is actually what your fields model contains then it is wrong and you will need to revert it back to the original either by copying the file over manually or by re-installing the component. Please be aware that the latter option will undo the changes we mentioned above.

To clarify, the fields controller should be located here ..administrator/components/com_joomailermailchimpintegration/controllers/fields.php and contains the class joomailermailchimpintegrationsControllerFields.

The fields model should be located here ..administrator/components/com_joomailermailchimpintegration/models/fields.php and contains the class joomailermailchimpintegrationsModelFields.

Cheers,

Chris

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

More
18 Oct 2010 21:22 #341 by daycom
Replied by daycom on topic List Fields Not Saving
Sorry to be such a pain!!

Okay, so I replaced that models/fields.php with the default one and pasted the code into controllers/fields.php.

It appears to save my fields on the back-end, except that it now saves the same JomSocial field for all the MailChimp fields.

I can change it for each field, but that only seems to last until I register a new user.

Also, the data from the custom fields is not showing up on my MailChimp account.

I appreciate your help on all this so far.

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