WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#13798 closed defect (bug) (invalid)

Fatal Error failure when uploading image to Multisite enabled instance

Reported by: pypo Owned by:
Milestone: Priority: high
Severity: major Version: 3.0
Component: Media Keywords: reporter-feedback
Focuses: Cc:

Description

When trying to upload an image, the following error is thrown:

[quote]Fatal error: Call to undefined function get_post_thumbnail_id() in /home/mysite/public_html/wp-admin/includes/media.php on line 1292quote

Using: Version 3.0-RC2-15136 (also failure in subsequent BE releases)

Multisite enabled.

Change History (3)

comment:1 ryan4 years ago

What theme are you using. It sounds like the theme is calling add_theme_support('post-thumbnails') on the init action instead of either immediately upon loading functions.php or on the after_setup_theme action.

comment:2 ryan4 years ago

  • Keywords reporter-feedback added

comment:3 ryan4 years ago

  • Milestone 3.0 deleted
  • Resolution set to invalid
  • Status changed from new to closed

Closing since this seems to be a theme problem. Re-open if the problem persists after verifying that the theme is calling add_theme_support() correctly.

Note: See TracTickets for help on using tickets.