[Solved] Error in campaigns

More
07 Oct 2010 01:29 #270 by Kenneth
Hello!
I'm looking for some answers. Just installed the component mailchimp on my website. Using joomla core. The version is 1.5.20. PHP version: 5.2.14. Mysql version 5.0.32-Debian_7etch8-log.

When clicking on the campaign I get this error message:

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/10/../.../administrator/components/com_joomailermailchimpintegration/views/campaignlist/view.html.php on line 74

Warning: Invalid argument supplied for foreach() in /home/10/.../..../libraries/joomla/html/html/select.php on line 68

When I click on create a campaign, the site gets white.

Do you guys have any idea what this means? I have read the information I found on your site to try to find a solution to the problem.

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

More
07 Oct 2010 01:34 #271 by chris
Replied by chris on topic [Solved] Error in campaigns
Hi,

Please go to Mailchimp and create a folder to correct this issue.

Alternatively you can perform the following code changes:

go to the file:

...administrator/components/com_joomailermailchimpintegration/models/campaignslist.php

and change the function getFolders() so that it looks like this:

function getFolders()
{
$MC = $this->MC_object();
$folders = $MC->campaignFolders();

if($folders) {
return $folders;
} else {
return array();
}
}

This fix must also be applied to ...models/campaigns.php and ...models/create.php in order to get rid of all of the array_merge errors.

We will be releasing an update tomorrow that will address these issues.

Cheers,

Chris

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

More
07 Oct 2010 02:22 #272 by Kenneth
Replied by Kenneth on topic [Solved] Error in campaigns
Hello!

I've created a folder. The errors went away. But when I'm clicking create campaign, it still get's white. No response.

Thanks for the fast answer.

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

More
07 Oct 2010 12:28 #275 by chris
Replied by chris on topic [Solved] Error in campaigns
Hi,

Do you have tinymce disabled? If you do, try enabling it. Also, right-click your screen when it goes blank and click "view-source". The error is probably in the javascript. Please paste it here.

Cheers,

Chris

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

More
07 Oct 2010 18:32 #280 by chris
Replied by chris on topic [Solved] Error in campaigns
Kenneth wrote in an email to us

I had Tiny Mce disabled. I enabled the Tiny Mce and now it works. I use the JCE editor. Shouldn't the system work with any kind of editors?


Yes it should, however, merge tags are not successfuly inserted into the editor unless tinymce is used. If this is not a problem for you then you can change the editor type. I'll explain how to do this further down.

Is it possible to create a rss campaign?


Not yet, I'm afraid.

The articlelist in the create campaign site, should be possible to sort by date. So that you very easily can choose the latest article(s). (Feature request).


Noted. We will look into this for a future release.

I use chrome web browser, by the way. It is not possible to write anything in the tiny mce editor in the create campaign site.


Ok, so here is how you can change the editor. In the file administrator/components/com_joomailermailchimpintegration/views/create/tmpl/default.php look for the following, around line 46
Code:
if ( !JPluginHelper::getPlugin( 'editor', 'tinymce') ) { $editortype = 'none'; } else { $editortype = 'tinymce'; }

Replace 'tinymce' with 'jce'. That should do the trick but let us know how it goes.

Cheers,

Chris

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

More
07 Oct 2010 18:51 #282 by chris
Replied by chris on topic [Solved] Error in campaigns
Kenneth then sent another email...

Could you guys add sort articles by date to feature request, if you don't have an easy solution to the problem.


Yes, it has been added as a feature request. In the meantime, to sort articles by "newest first" edit the file ...administrator/components/com_joomailermailchimpintegration/models/create.php. Change line 103 from
Code:
' ORDER BY a.sectionid, a.ordering ';

to
Code:
' ORDER BY a.publish_up DESC ';

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

More
07 Oct 2010 21:46 #289 by Kenneth
Replied by Kenneth on topic [Solved] Error in campaigns
To change the texteditor you had to change: (The long urls in the previous posts didn't show the full url, so i split it over two lines now)

administrator/components/com_joomailermailchimpintegration/views/
create/tmpl/default.php look for the following, around line 46. Changed the $editortype = 'tinymce'; to $editortype = 'jce';

Then everything worked fine. The tinymce editor didn't work for me. Couldn't write anything in it.


to sort articles by "newest first" edit the file ...administrator/components/com_joomailermailchimpintegration/
models/create.php. Change line 103 from ' ORDER BY a.sectionid, a.ordering '; to ' ORDER BY a.publish_up DESC ';

This works fine, except that you need to go to one section first, and then choose the "select a section" again, to get all the articles arranged by the newest first.

Thanks for the help chris

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