WordPRess GSoC

Opened 5 years ago

Closed 5 years ago

#298 closed defect (fixed)

Fatal error: _prepare_media_item()

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


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)

#1 @rmccue
5 years ago

Looks like I totally missed this. Sorry about that.

#2 @mordauk
5 years ago

That's why it's a beta :)

#3 @rmccue
5 years ago

In 2038:

Disable thumbnail processing temporarily

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

#4 @rmccue
5 years ago

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

#5 @rmccue
5 years 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.