WordPress.org

Support

Support » Plugins and Hacks » Events Manager » [Plugin: Events Manager] Fatal error, using the mediathek with EM5.02

[Plugin: Events Manager] Fatal error, using the mediathek with EM5.02

  • Hello,

    activating EM5.02 either on a single blog or network wide, I can’t upload or choose any images from the mediathek anymore. Deactivating the EM5.02, everything works. Activating it, the following message appears:

    Fatal error: Call to undefined function get_post_thumbnail_id() in /data/projects/info-notes/wp/wp-admin/includes/media.php on line 1173

    Copy of lines 1166 to 1176 are as follows:

    $thumbnail = ”;
    $calling_post_id = 0;
    if ( isset( $_GET[‘post_id’] ) )
    $calling_post_id = absint( $_GET[‘post_id’] );
    elseif ( isset( $_POST ) && count( $_POST ) ) // Like for async-upload where $_GET[‘post_id’] isn’t set
    $calling_post_id = $post->post_parent;
    if ( ‘image’ == $type && $calling_post_id && current_theme_supports( ‘post-thumbnails’, get_post_type( $calling_post_id ) )
    && post_type_supports( get_post_type( $calling_post_id ), ‘thumbnail’ ) && get_post_thumbnail_id( $calling_post_id ) != $attachment_id ) {
    $ajax_nonce = wp_create_nonce( “set_post_thumbnail-$calling_post_id” );
    $thumbnail = “” . esc_html__( “Use as featured image” ) . ““;
    }

    http://wordpress.org/extend/plugins/events-manager/

Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: Events Manager] Fatal error, using the mediathek with EM5.02’ is closed to new replies.
Skip to toolbar