After installing and configuring 7.x-1.x-dev, the api returns null for all objects. Watchdog shows:

Warning: unserialize() expects parameter 1 to be string, array given in _contentapi_index() (line 455 of /var/www/docroot/sites/all/modules/contrib/contentapi/contentapi.module).

Removing the unserialize call from line 455 and working directly with the array resolves the issue.

Comments

pythagory created an issue. See original summary.

pythagory’s picture

StatusFileSize
new501 bytes
pythagory’s picture

Status: Active » Needs review
pythagory’s picture

StatusFileSize
new3.81 KB

On further review, I notice the module is using serialilze/unserialize in several places in conjunction with variable_get/variable_set, which isn't necessary and causes some bad interactions with Features. Attached patch removes these calls throughout the module.

pythagory’s picture

Assigned: pythagory » Unassigned