I used the installation profile with the standard Drupal 6.4 distribution. It cam back with warnings that a number of modules were expected, but not installed. I installed all of them and the warning disappeared.

The installation was successful, but on the last screen when Drupal said it was successful it also showed the following messages:

Innovation News installation complete

* warning: array_map() [function.array-map]: Argument #2 should be an array in /hermes/web04/b1927/pow.ruediklein/htdocs/mag/htdocs/modules/system/system.module on line 975.
* warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /hermes/web04/b1927/pow.ruediklein/htdocs/mag/htdocs/modules/system/system.module on line 1013.
* warning: array_keys() [function.array-keys]: The first argument should be an array in /hermes/web04/b1927/pow.ruediklein/htdocs/mag/htdocs/modules/system/system.module on line 990.
* warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /hermes/web04/b1927/pow.ruediklein/htdocs/mag/htdocs/modules/system/system.module on line 1013.
* warning: array_keys() [function.array-keys]: The first argument should be an array in /hermes/web04/b1927/pow.ruediklein/htdocs/mag/htdocs/modules/system/system.module on line 990.
* warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /hermes/web04/b1927/pow.ruediklein/htdocs/mag/htdocs/modules/system/system.module on line 1013.
* warning: array_keys() [function.array-keys]: The first argument should be an array in /hermes/web04/b1927/pow.ruediklein/htdocs/mag/htdocs/modules/system/system.module on line 990.

Congratulations, Innovation News has been successfully installed.

Please review the messages above before continuing on to your new site.

The site is just text, not menus etc. It consistently displays the following messages:

* warning: array_map() [function.array-map]: Argument #2 should be an array in /hermes/web04/b1927/pow.ruediklein/htdocs/mag/htdocs/modules/system/system.module on line 975.
* warning: array_keys() [function.array-keys]: The first argument should be an array in /hermes/web04/b1927/pow.ruediklein/htdocs/mag/htdocs/includes/theme.inc on line 1720.
* warning: Invalid argument supplied for foreach() in /hermes/web04/b1927/pow.ruediklein/htdocs/mag/htdocs/includes/theme.inc on line 1720.

Is this a bug or something I'm doing? I'm new to Drupal and would like to run a magazine with it.

Regards,

Ruedi

Comments

john.karahalis’s picture

Project: Innovation News » Innovation News Installation Profile
Version: 6.x-1.2-beta4 » 6.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

Thank you very much for the report. It's great to hear you are trying to run a magazine, as that is exactly the kind of thing Innovation News was built for.

You submitted this as a bug report for the Innovation News module, but seem to describe a problem with the Innovation News installation profile. To confirm, you are describing a bug in the Innovation News installation profile, right?

First and foremost, you did nothing wrong. The error you are receiving relates to either the profile's code or the code of a contributed module which the profile uses. I have an idea as to the cause of this bug, but before I can be certain, I need to know the following:
-What version of the Innovation News installation profile are you using (most likely either -beta2 or -dev)
-What version of the Innovation News module are you using (most likely either -beta4 or -dev)
-What version of CCK are you using (most likely either -rc6 or -dev)

ruediklein’s picture

Yes, correct, this occurred during installation using the profile.

I just re-ran my steps and still am getting the same results. It is not clear to me that all pre-requisite modules have been installed. Is there a check-list? For example, CCK doesn't seem to come with the standard Drupal 6.4 distribution. So, how would one know that it's needed for this module and profile to work properly?

The versions I used were all the beta versions, not development. In the new installation run I installed CCK -rc6. Still the same results.

Here are my installation notes:

Uploaded Drupal 6.4 distribution
Copied default.settings.php and changed permissions
Created database tialea_mag
Uploaded innovationsnewsprofile to /htdocs/mag/htdocs/profiles/
Uploaded
captcha
cck
contemplate
image
innovationnews
pathauto
token
views to modules directory
Ran Install Script
Profile Innovation News
Successfull with Warnings
Site appears to be broken: http://mag.tialea.com

Thanks,

Ruedi

john.karahalis’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

Thanks for the info. I'll be sure to resolve this issue with you.

To answer your question, you only need to upload the modules that are listed on the Innovation News Installation Profile project page (http://drupal.org/project/innovationnewsprofile). If you were missing any modules, Drupal would not let you even begin to install the profile.

It appears that you are in fact using a development version of the Innovation News profile. On your website, the line "No published stories have been promoted to the front page yet." is an indication that the Views module is being used. Only the development version of the profile makes use of Views.

Because development versions of software are unsupported, bugs like the one you have run into are not uncommon. That said, I was not aware of the bug and will resolve it in the next development versions of the software. However, the updated development version will still have other bugs which are beyond our control.

To avoid this bug, you should install a stable version of the profile. Your options are as follows:
1. You could upload the the beta2 version of the profile to your /htdocs/mag/htdocs/profiles/ directory and then reinstall. This would most likely resolve any issues you are running into, but you would always be limited by the features of beta2.
2. The other option is to wait for the final 1.0 version of the profile. I recommend this because once you have installed the beta version of the profile, you will always be limited by the features of the beta2 version. You can't "upgrade" an installation like you can upgrade a module. The final version of the profile will be out very soon, hopefully some time this week.

I hope this information helps. Please keep me posted and let me know if you have any other questions or concerns.

ruediklein’s picture

Thanks. I now feel rather dense as the list couldn't clearer. I was still missing the required theme. Installing it after the fact didn't solve the problem, but I also did not re-run the profile yet.

I was using innovationnewsprofile-6.x-1.0-beta2.tar, which I understand not to be the development version.

Since the 1.0 release is so close, I think I might save some time on both ends by waiting for it.

Thanks again for the quick responses. It made me more certain about the choice of Drupal and this particular module/profile for my purposes.

Best Regards,

Ruedi

john.karahalis’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Aah, you are using Beta2. After checking the code again I realize that Beta2 does in fact use Views. As you point out, the bug seems to be due to the fact that you were using the incorrect theme and not a bug with the development version of the profile. Drupal's profile capabilities are still rather new, so unfortunately Drupal does not warn the user if he/she is not using the correct theme.

1.0 final could be released literally at any time. We're all done coding on our end, but we cannot release the final version of the profile until CCK RC7 is released. CCK RC6 has a bug which makes it unusable in installation profiles. Almost immediately after CCK RC7 is released, we will release the final version of the profile. I'll be sure to send you a message when that happens.

Thanks again for all the info. Keep in touch with any bug reports or feature requests.

john.karahalis’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

We're happy to let you know that Innovation News 1.0 final is now available!

Before you install the final version of the profile, you will obviously need to upload the final version to your /profile folder. Also (and this is very important) be sure you upload the latest versions of each of the required modules and the latest version of the required theme, replacing the old copies. Some modules (most notably CCK) have been updated since you first started this thread. These updates are necessary for the profile to work correctly. In addition, the list of required modules has been expanded by one, so be sure to upload that module as well.

So basically, I would recommend you visit the project page (http://drupal.org/project/innovationnewsprofile) and upload the modules and themes from scratch just as you did when you installed Beta 2. This way you can insure you are using the most up-to-date software.

Let us know how it turns out. We would love if you could provide us with a link to your site once it is up and running. It's always exciting to see our work in use!

Thanks again!