Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
rest.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 Jan 2013 at 08:31 UTC
Updated:
29 Jul 2014 at 21:49 UTC
Jump to comment: Most recent file
Comments
Comment #1
floydm commentedI'm on a Mac running PHP 5.3.15 and get the same thing, so it isn't a platform/version problem.
Line 33
$attributes = $entity_wrapper->getProperties();is returning nothing, so the$attributes = array( ... ) + $attributesis puking. The attached patch fixes the problem by returning an empty array from$entity_wrapper->getProperties()no matter what.My apologies for being fairly new to contributing patches and unsure if this is the appropriate way to address the issue. Regardless, it should help you guys track it down quickly.
Comment #2
dagmarComment #3
klausiNodes are not yet converted to EntityNG, so this postponed on #1818556: Convert nodes to the new Entity Field API.
Comment #4
smiletrl commentedAfter apply the patch, I still get the error.
Anyway, I get wierd result:
{"@id":"http:\/\/localhost\/drupal8\/node\/1","@type":"http:\/\/localhost\/drupal8\/site-schema\/content-deployment\/node\/article"}From my point of view, patch in #1 suppresses the problem, not actuall solve the problem^^
I still get errors on other pages
Comment #5
klausiYes, you cannot test REST module with nodes right now.
Comment #6
rszrama commentedI can see no issue in my testing, because quite a lot has changed. There isn't even a REST menu item any more (much less JSON-LD)! : P
Closing this out directly as whatever was causing the issue has obviously been fixed.
Comment #6.0
rszrama commentedwindows system.