I'm new to Drupal, so please excuse my lack of knowledge.
I was able to input stories just fine. Then I messed around with the moderator / submission queue function. (which by the way is cool, if I personally could by pass it) When I turned it back off, I started getting an odd error. I ignored it at first, but it's getting worse. I get:
warning: in_array(): Wrong datatype for second argument in /hsphere/local/.../drupal/modules/node.module on line 1314.
warning: in_array(): Wrong datatype for second argument in /hsphere/local/...org/drupal/modules/node.module on line 1315.
warning: in_array(): Wrong datatype for second argument in /hsphere/local/.../drupal/modules/node.module on line 1316.
warning: in_array(): Wrong datatype for second argument in /hsphere/local/.../drupal/modules/node.module on line 1317.
warning: in_array(): Wrong datatype for second argument in /hsphere/local/.../drupal/modules/node.module on line 1318.

And the rest of the page looks wierd (not in the Submarine theme I'm used to).
What did I do wrong? I can post the Story just fine, and it'll show up corrently, but... It's just odd! It started off as 1 error, and I ignored it. Now it's 4! AHH!!!

thanks

Comments

ryooki’s picture

Hmm.... I noticed that my stories weren't publishing, so I found out that I had unchecked "publish" under the default workflow. So, I re-checked in and the errors went away! weird. Is this a bug?

chx’s picture

Status: Active » Fixed

This is fixed in Drupal HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)
jpsalter’s picture

Version: » 4.6.3
Component: node system » help.module

Just to give support the the above fix - I had the same problem - rechecking the "publish" box fixed the error.

matteo’s picture

Temp fix for 4.6.3 is to change line 1314 as follows:

    if (!is_array($node_options)) $node_options=array();
matteo’s picture

..of course line 1314 of node.module. :-))

Matteo