I am getting this error when ever I create content, whether its a body field or comment:

Notice: Trying to get property of non-object in marinelli_preprocess_comment() (line 204 of /home/fpralmcv/public_html/sites/all/themes/marinelli/template.php).
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 178 of /home/fpralmcv/public_html/includes/entity.inc).

I am not sure what is causing it, any ideas?

Comments

wayne57’s picture

Priority: Normal » Major

Still getting the warning:
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 178 of /home/fpralmcv/public_html/includes/entity.inc).
whenever a comment is added.
Any help please

drupalmanstart’s picture

I am getting the exact same errors!
Can anyone prescribe a potential fix? May have to abandon this theme =/

jimbaer’s picture

The problem still arises in beta-11, and it's been running since August 2011 at least.

There's a fix. You'll need to modify a "themes/marinelli/template.php" file. A conditional statement was missing. See this post: https://drupal.org/node/1183598#comment-5125764 for details.

jbeall1369’s picture

Non-Coder besides HTML. How do I use a patch for Marinelli...?

Yannick WEBER’s picture

jbeall1369,

Take a look at : http://drupal.org/patch

You'll find all you need to understand what a patch is and how to patch a file.