Module works but no name inserted into the list.

More
05 Jun 2011 16:36 #1284 by chrisinoz
joomlamailer version: 1.7
Joomla! version:1.6.3
PHP version: 5.2.17
MySQL version: 5.0.92-community

Request first name on registering on signup module but their first name is not inserted into subscriber details.
Attached screenshot explains it best.



Thanks
Chris

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

More
06 Jun 2011 17:30 #1288 by pete
Hello Chris,

Do you really mean FIRST name? The screenshot shows that the first name was recorded. The email that your screenshot shows comes directly from MailChimp, which means the firstname is present in the MailChimp system.

Kind regards,
Pete

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

More
07 Jun 2011 03:53 #1298 by chrisinoz
Hi Pete

Thanks for quick reply.

Yes, you are correct it does show in mailChimp however not in Joomla - I have created a second screenshot for you.

No name is added and so there is no name to click on to edit.



Also, one other error appears when i click on a name in my Imported list.

Fatal error: Call to a member function getUserStateFromRequest() on a non-object in /home/chris3/public_html/administrator/components/com_joomailermailchimpintegration/models/subscriber.php on line 35

Thanks
Chris

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

More
07 Jun 2011 11:50 #1299 by pete
Hi Chris,

You will only see names in that list of those users, which are registered on your Joomla site (matched by email address). If they signed up to the list using the signup module they are not registered on the Joomla site and therefore joomlamailer can't show any further information about them.

The fatal error has already been fixed for the next version. If you don't want to wait please edit the file: /administrator/components/com_joomailermailchimpintegration/models/subscriber.php

At line 32 you'll find: global $mainframe, $option;

replace that line with: $mainframe =& JFactory::getApplication();

Kind regards,
Pete

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

More
07 Jun 2011 12:22 #1300 by chrisinoz
Now I understand Peter - thanks for your patience.

I did the above fix in subscriber.php

I now get a few more errors but if you don't have it at your finger tips, I'll wait til the next upgrade comes out.

Warning: Invalid argument supplied for foreach() in /home/chris3/public_html/administrator/components/com_joomailermailchimpintegration/models/subscriber.php on line 137

Warning: Invalid argument supplied for foreach() in /home/chris3/public_html/administrator/components/com_joomailermailchimpintegration/views/subscriber/view.html.php on line 63

Warning: Invalid argument supplied for foreach() in /home/chris3/public_html/administrator/components/com_joomailermailchimpintegration/views/subscriber/view.html.php on line 79

Warning: Invalid argument supplied for foreach() in /home/chris3/public_html/administrator/components/com_joomailermailchimpintegration/views/subscriber/tmpl/default.php on line 25

Cheers
Chris

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

More
07 Jun 2011 12:41 #1301 by pete
Sorry, my bad.

Also replace global $mainframe, $option; with $mainframe =& JFactory::getApplication(); in line 51

In line 115 you'll find function MC_object()

replace that whole function with this:
Code:
function MC_object() { $params =& JComponentHelper::getParams( 'com_joomailermailchimpintegration' ); $paramsPrefix = (version_compare(JVERSION,'1.6.0','ge')) ? 'params.' : ''; $MCapi = $params->get( $paramsPrefix.'MCapi' ); $MC = new joomailerMCAPI($MCapi); return $MC; }

Kind regards,
Pete

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

More
07 Jun 2011 13:52 #1302 by chrisinoz
Hi Pete

Thanks all fixed.

I had on Line 51 only global $mainframe; (without ,$option) but still worked fine.

Cheers
Chris

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

More
07 Jun 2011 18:25 #1306 by pete
Great! I'm glad it works now :)

Cheers,
Pete

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