WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
Fatal error, using the mediathek with EM5.02 (10 posts)

  1. salsatrips
    Member
    Posted 2 years ago #

    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/

  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    does your theme support featured images? It should automatically enable them if not.

    What theme are you using? A pro user has this too so will probably look into it a bit more, maybe there's a pattern of themes.

  3. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

  4. salsatrips
    Member
    Posted 2 years ago #

    WP 3.3.1 + Thesis 1.8.2 + EM 5.02

    activating EM 5.02 i can't upload any images, not just featured ones. Even images for a normal page are not working anymore.

  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    have you checked your wp-uploads folder permissions?

  6. salsatrips
    Member
    Posted 2 years ago #

    blogs.dir and each relevant sub-directory has 777
    uploads (which shall not be used) and each sub-directory has 777

  7. agelonwl
    Member
    Posted 2 years ago #

    version 5.0.4 is now out and you can try that update then give some feedback.

  8. salsatrips
    Member
    Posted 2 years ago #

    after updating, I still have the same error:
    Fatal error: Call to undefined function get_post_thumbnail_id() in /data/projects/info-notes/wp/wp-admin/includes/media.php on line 1173

  9. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    try 5.0.42 to see if it helps

  10. salsatrips
    Member
    Posted 2 years ago #

    GREAT - it works now !
    Thanks for the improvement :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic