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

PimD1988 created an issue. See original summary.

PimD1988’s picture

Issue summary: View changes
PimD1988’s picture

Really no one who knows what might be the solution for this?

PimD1988’s picture

My issues seems that in entity.wrapper.inc online 353 my properties are empty...

$this->propertyInfo['properties'] what could be causing this?

hgoto’s picture

I tried the same code with a fresh Drupal and entity 7.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.)

hgoto’s picture

Status: Active » Postponed (maintainer needs more info)
PimD1988’s picture

Title: Property author is not available » Properties are not available
PimD1988’s picture

I managed to fix it using this patch.

hgoto’s picture

Priority: Critical » Normal
hgoto’s picture

Status: Postponed (maintainer needs more info) » Fixed

So you fixed the problem, right? If you want others to support you, please provide more information.

PimD1988’s picture

Yes I fixed it.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

steinmb’s picture

I 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.