Active
Project:
Marinelli
Version:
7.x-3.0-beta9
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Jan 2012 at 19:34 UTC
Updated:
25 Jul 2012 at 14:07 UTC
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
Comment #1
wayne57 commentedStill 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
Comment #2
drupalmanstart commentedI am getting the exact same errors!
Can anyone prescribe a potential fix? May have to abandon this theme =/
Comment #3
jimbaer commentedThe 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.
Comment #4
jbeall1369 commentedNon-Coder besides HTML. How do I use a patch for Marinelli...?
Comment #5
Yannick WEBER commentedjbeall1369,
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.