Seeing this warning when installing nodewords_og:
Invalid argument supplied for foreach() common.inc:919
strtr(): The second argument is not an array common.inc:936

In function nodewords_og_install(), the drupal_set_message should read:

drupal_set_message(t("Please see the README.txt file included with the Nodewords module for instructions on customizing the theme to make this work correctly."), 'warning');

with 'warning' as a second argument for drupal_set_message, not for the t() function.

Comments

djbobbydrake’s picture

Also, it's probably best to change the drupal_set_message from 'warning' to 'status'. When running drush updb as a Hudson/Jenkins job, it will make it appear as if there's an error in the updb, when there really isn't an error.


drupal_set_message(t("Please see the README.txt file included with the Nodewords module for instructions on customizing the theme to make this work correctly."), 'status');
damienmckenna’s picture

Assigned: Unassigned » damienmckenna
Status: Active » Closed (duplicate)

This is a duplicate of #1395326: Activated open graph protocol: warning: Invalid argument supplied for foreach() . Also, I'm leaving it as a warning instead of just a status message as the output will not work correctly unless that important step is made; you might want to follow #1379602: Add hook_requirements() to help test for the OG theme customizations, I *may* change this message's type when that feature is implemented.

djbobbydrake’s picture

Thanks for the follow-up. I've followed the other issue.

damienmckenna’s picture

Assigned: damienmckenna » Unassigned
Issue summary: View changes