WordPress.org

WordPRess GSoC Trac

#298 closed defect (fixed)

Fatal error: _prepare_media_item()

Reported by: mordauk Owned by:
Milestone: Priority: critical
Component: JSON REST API Keywords:
Cc: pippin@…

Description

When calling /wp-json.php/posts/, I'm getting a fatal error:

`
Fatal error: Call to undefined method WP_JSON_Server::_prepare_media_item() in /home/pippin/sites/wordpress/wp-content/plugins/json-rest-api/lib/class-wp-json-server.php on line 781
`
Relevant line: https://github.com/rmccue/WP-API/blob/master/lib/class-wp-json-server.php#L781

This is on WordPress 3.5.2.

Change History (5)

comment:1 rmccue10 months ago

Looks like I totally missed this. Sorry about that.

comment:2 mordauk10 months ago

That's why it's a beta :)

comment:3 rmccue10 months ago

In 2038:

Disable thumbnail processing temporarily

See #298. This will be handled correctly in 0.2 instead.

comment:4 rmccue10 months ago

Fixed in version 0.1.2, but this will need a proper fix for 0.2 instead.

comment:5 rmccue10 months ago

  • Resolution set to fixed
  • Status changed from new to closed

Closing as fixed (since the original error no longer occurs), #321 for the feature enhancement of readding them.

Note: See TracTickets for help on using tickets.