After updating to 7.x-1.9 I get an error on achieving the author property for a node.
Can someone please check this?
When I try the following:
$node = node_load(365);
$wrapper = entity_metadata_wrapper('node', $node);
echo $wrapper->title->value();
I get the error message in my watchdog that title-property not exists...
Cheers,
Pim
Comments
Comment #2
PimD1988 commentedComment #3
PimD1988 commentedReally no one who knows what might be the solution for this?
Comment #4
PimD1988 commentedMy issues seems that in entity.wrapper.inc online 353 my properties are empty...
$this->propertyInfo['properties']what could be causing this?Comment #5
hgoto commentedI tried the same code with a fresh Drupal and
entity7.x-1.9 but entity wrappers work well and I couldn't reproduce the problem.Can you clarify the steps to reproduce? Or, it might be worth reverting the change with the update and checking if the error occurs with 7.x-1.8.
(Also, the title says "author" but the example code you showed uses "title" property. It can be confusing for other people, I believe.)
Comment #6
hgoto commentedComment #7
PimD1988 commentedComment #8
PimD1988 commentedI managed to fix it using this patch.
Comment #9
hgoto commentedComment #10
hgoto commentedSo you fixed the problem, right? If you want others to support you, please provide more information.
Comment #11
PimD1988 commentedYes I fixed it.
Comment #13
steinmb commentedI think the patch in #8 is only curing the symptom, not addressing the real problem. Have a look in #2953345: entity.info.inc not loaded at correct time and the other issues I referenced. This might be a weakness in this module.