Closed (fixed)
Project:
Default Content (Deprecated)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Mar 2011 at 01:01 UTC
Updated:
10 May 2011 at 11:48 UTC
Jump to comment: Most recent file
Comments
Comment #1
bfroehle commentedYes, I got that too on an installation in MAMP.
Comment #2
bfroehle commentedAttached patch changes the function signature to
as in hook_node_load().
Comment #3
Dutchy71 commentedHi bfroehle, yes this occurred in MAMP. Thanks for the patch. Now my next question is how do I apply the patch?
Comment #4
Dutchy71 commentedI've found the instructions on patching. Thanks.
Comment #5
jamsilver commentedJust rerolling that patch without the prefixes.
Is very useful.
Comment #6
bfroehle commented@jamsilver: Thanks, but it's not necessary. Since the great git migration, the standard is patch level 1 (which is what is created by just running
git diff). (Before the great git migration, your suggested approach was correct).Comment #7
WebmasterDrake commentedAnd if we aren't using git, how do we install the patch?
Comment #8
WebmasterDrake commentedFor those looking for the file to modify, it is located here:
profiles/openpublic/modules/contrib/defaultcontent/defaultcontent.module
At or about line 12 find:
function defaultcontent_node_load(&$nodes, $types) {And REPLACE with:
function defaultcontent_node_load($nodes, $types) {Comment #9
jamsilver commented@bfroehle. At the time I was rerolling it mainly for my own benefit so I could put it directly into a drush make file - which at the time I believe can only handle -p0. I didn't know that patch level 1 was standard now - thanks for the tip. =p
Comment #10
bfroehle commented@jamsilver: Good to know. I haven't used drush make yet but it's on my todo list. ;)
Comment #11
e2thex commentedThanks for the catch and the patch, committed
commit 3d2a1ffb7f40cb83b526839aa980c20328e55016
Date: Tue Mar 22 11:02:43 2011 -0400
Issue #1087244 by bfroehle: DrupalDefaultEntityController warning
Comment #13
metakel commentedI have just realized that when I use "xxx-xx", the theme does not show up.
It only work when I changed the hyphen to underscore, i.e. "xxx_xx"