In doing a fresh install via drush I came across a PHP warning and error using PHP 5.4.6 under Ubuntu 12.10. No worries about password exposure as I have replaced the actual passwords. Here is what I did:

drush dl openchurch (and then move the files out of the openchurch-xxx subdir into the www directory) then I did:

drush site-install openchurch --account-name=iccabq --account-pass=iccpass --db-url=mysql://root:mysqlpass@localhost/newiccabq

Most of the warnings were an illegal string offset related to rules.core.inc. A couple strict errors were thrown related to passing by reference in nodeque.inc. I did not have sendmail installed so I received a couple of errors about not being able to send emails. I realize these are minor things but just wanted to bring them to your attention. Let me know how I might be of help in documenting these. Below is the full output. Peace - Anthony

--output--
You are about to DROP all tables in your 'newiccabq' database. Do you want to continue? (y/n): y
No tables to drop. [ok]
Starting Drupal installation. This takes a few seconds ... [ok]
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
WD php: Warning: Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
sh: 1: /usr/sbin/sendmail: not found
WD mail: Error sending e-mail (from admin@example.com to [error]
admin@example.com).
Installation complete. User name: iccabq User password: iccpass [ok]
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Strict warning: Only variables should be passed by reference in [error]
nodequeue_post_import() (line 43 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/defaultcontent/plugins/nodequeue.inc).
Strict warning: Only variables should be passed by reference in [error]
nodequeue_post_import() (line 43 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/defaultcontent/plugins/nodequeue.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 202 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Illegal string offset 'field' in [warning]
RulesEntityController->buildQuery() (line 207 of
/home/arborrow/NetBeansProjects/demo/profiles/openchurch/modules/contrib/rules/includes/rules.core.inc).
Unable to send e-mail. Contact the site administrator if the problem [error]
persists.
You can now configure the CAPTCHA module for your site. [status]
Google import complete. [status]
IMCE has been installed. [status]
A PHP code text format has been created. [status]
The queue has been created. [status]

Comments

Just an update, on the fresh install I was getting the rules warning on the front page. I did a drush up and drush updatedb and that seemed to fix it the issues with rules.core.inc. I suspect it is related to http://drupal.org/node/1463678 so it may just be an issue of updating to rules 2.2. Peace - Anthony

With respect to what I had mentioned as a nodequeue issue, looking more closely at the error message it is defaultcontent that is causing the problem. Just as an FYI, I also noticed a reference to this in http://drupal.org/node/1487042 where you asked if others were seeing the strict notice. Peace - Anthony

I checked http://drupal.org/project/issues/defaultcontent?categories=All and did not see any open issues for the strict warning of passing variable by reference. Would you like me to create one?

Title:fresh drush installation - php warnings and errors - rules.core.inc and nodeque.incfresh drush installation - php warnings and errors - rules and defaultcontent

updating issue title to be more precise

Line 43 from defaultcontent's nodequeue.inc is:

nodequeue_subqueue_add($queue, array_pop($subqueues), $node->nid);

I suspect they may have to create a temporary variable for the array_pop($subqueues) like:

$popsubqueues = array_pop($subqueues);
nodequeue_subqueue_add($queue, $popsubqueues, $node->nid);

As you say, these type of strict warnings are not that big of a deal. Let me know how I can best be of help. Peace - Anthony

In the course of testing possible causes for the sites/default/files/styles/oc_homepage/rotator folder not being populated during install, I went ahead and tested the temporary variable $popsubqueue to see if it would avoid the error. The steps I used were:

dl download openchurch
drush site-install openchurch --account-name=iccabq --account-pass=iccpass --db-url=mysql://root:mysqlpass@localhost/newiccabq
dl up (to update the rules modules and fix the 5.4 php warnings regarding the string offset 'field'

modified /profiles/openchurch/modules/contrib/defaultcontent/nodequeue.inc file using the above code to prevent the php strict error about only passing variables as references

reran drush site-install openchurch --account-name=iccabq --account-pass=1mm@cul@t3 --db-url=mysql://root:arbsjp0d@localhost/newiccabq

With those corrections under php 5.4.6 there were then no php warning or errors. Peace - Anthony

I will test to see if I can recreate the issue.

Status:Active» Needs work

This is a PHP 5.4 issue.

Right now Drupal 7 recommends 5.3 - http://drupal.org/requirements

I am not sure I can fully support PHP 5.4 until Drupal as a whole supports it. In the meantime I would recommend 5.3.

Status:Needs work» Closed (works as designed)