WordPress.org

Ready to get started?Download WordPress

Forums

Default featured image
problem updating plugin from 0.9 to 1.3 (2 posts)

  1. DesignsCheap
    Member
    Posted 5 months ago #

    Hi,

    I have a client that I have been asked to update their WP installation. I didn't develop their site. When I got into the site, they had WP 3.5 so I upgraded that to 3.8.1. They also use a child theme of Pagelines framework, and I updated Pagelines (but not the child theme). Then they have 15 plugins, 7 of which needed to be updated. I successfully updated the WP core, the theme, and all of the plugins except yours.

    When I update your plugin, all the main navigation background gets replaced with the default image set by your plugin. Really weird.

    URL is: http://sjemploymentsolutions.com but it looks fine right now because I downgraded back to the 0.9 version of your plugin since it was causing this problem.

    https://wordpress.org/plugins/default-featured-image/

  2. janw.oostendorp
    Member
    Plugin Author

    Posted 5 months ago #

    Hi,

    sorry to hear you are having problems. The only reason I see is that somewhere a featured image is called. From 1.0 the function has_post_thumbnail will trigger true if an default featured image can be set. Somewhere in the themehas_post_thumbnail is called. Which isn't triggered in 0.9 but is in 1.+

    I suggest you search the templates for has_post_thumbnail().

    After updating, for debugging you could try pasting this in your functions.php:

    // debugging only
    function dfi_debugging ( $dfi_id, $post_id ) {
    
      var_dump( get_post($post_id) ); // will dump the post that triggers the DFI
      return $dfi_id; // the original featured image id
    }
    add_filter( 'dfi_thumbnail_id', 'dfi_debuggind', 10 , 2 );

    Let me know how it goes

Reply

You must log in to post.

About this Plugin

About this Topic