- Posts: 3
- Thank you received: 0
[Solved] Error in campaigns
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.
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.
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.
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.
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
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.
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
to
Please Log in or Create an account to join the conversation.
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.
joomlamailer uses cookies!
This website uses cookies to provide user authentication and improve your user experience. Please indicate whether you consent to our site placing these cookies on your device. We are not using cookies for marketing purposes. For more information visit our privacy policy
Joomlamailer.com is not affiliated with or endorsed by The Joomla! Project™, Open Source Matters, Inc. or Intuit Mailchimp.
Any products and services provided through this site are not supported or warrantied by The Joomla! Project, Open Source Matters, Inc. or Intuit Mailchimp.
Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.
Mailchimp® is a registered trademark of The Rocket Science Group.