Version 1.6.6 - Post featured image: Warning: Missing argument 3 for inkthemes_get_thumbnail()

Discussion in 'GeoCraft WordPress Theme' started by paulgc34, Jan 9, 2013.

Thread Status:
Not open for further replies.
  1. paulgc34

    paulgc34 New Member

    Joined:
    Dec 21, 2012
    Messages:
    5
    Likes Received:
    1
    I downloaded and installed the latest version (1.6.6). When I create a post without a featured image the default thumbnail for no image is displayed but when I add my own featured image to the post I receive this error:
    HTML:
    Warning: Missing argument 3 for inkthemes_get_thumbnail(), called in /home/vantage/public_html/directory/wp-content/themes/geocrafttheme/loop-blog.php on line 26 and defined in /home/vantage/public_html/directory/wp-content/themes/geocrafttheme/admin/geocraft_functions.php on line 200
    Here's the content of my loop-blog.php file
    PHP:
    <?php
    $limit 
    get_option('posts_per_page');
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts("post_type=post&showposts=$limit&paged=$paged");
    $wp_query->is_archive true;
    $wp_query->is_home false;
    if (
    have_posts()) :
        while (
    have_posts()): the_post();
            
    ?>
            <!--Start Featured Post-->
            <div <?php post_class('featured_post post'); ?> id="post-<?php the_ID(); ?>">
                <!--Start Featured thumb-->
                <!--End Featured thumb-->
                <div class="f_post_content">
                    <h1 class="f_post_title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
                    <div class="post_meta">
                        <ul class="meta-nav">
                            <li class="author"><?php echo 'By '?><?php printf('%s'the_author_posts_link()); ?></li>
                            <li class="date"><?php the_time('M-j-Y'?></li>
                            <li class="category"><?php the_category(', '); ?></li>
                            <li class="comment"><?php comments_popup_link('0 Comments.''1 Comment.''% Comments.'); ?></li>
                        </ul>
                    </div>
                    <div class="featured_thumb blog">
                    <?php if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail())) { ?>
                        <?php inkthemes_get_thumbnail(205143); ?>
                    <?php } else { ?>
                        <?php inkthemes_get_image(205143); ?>
                        <?php
                    
    }
                    
    ?>
                    </div>
                    <?php the_excerpt(); ?>
                </div>
            </div>
            <!--End Featured Post-->
            <?php
        
    endwhile;
        
    inkthemes_pagination();
        
    wp_reset_query();
    else:
        
    ?>
        <div class="featured_post featured">
            <p class="place"><?php echo NO_POST_FOUND?></p>
        </div>
    <?php
    endif;
    ?>
    Here is the function at line 200 of the geocraft_functions.php file
    PHP:
    function inkthemes_get_thumbnail($iw$ih$class$img_meta '') {
        
    $permalink get_permalink();
        
    //check wheather img_meta have data or null, if it is not null, image path will me img_meta
        
    if ($img_meta) {
            
    $thumb $img_meta;
        } else {
            
    $thumb get_post_thumbnail_id();
        }
        
    $image inkthemes_image_resize($img_meta$iw$ihtrue90);
        if ((
    function_exists('has_post_thumbnail')) && (has_post_thumbnail())) {
            print 
    "<a href='$permalink'><img class='postimg f_thumb $class' src='$image[url]' /></a>";
        }
    }
    I have not installed anything else (plugins or additional themes) just the geocraft theme V1.6.6
    How can I fix this?
     
  2. Krish

    Krish Support Staff

    Joined:
    Oct 22, 2012
    Messages:
    210
    Likes Received:
    1
    Location:
    India
    We review this theme. The problem was occurred in this theme. I have fixed it and updated in members area. Please download and update your theme from our members area.

    Thanks
     
  3. paulgc34

    paulgc34 New Member

    Joined:
    Dec 21, 2012
    Messages:
    5
    Likes Received:
    1
    Great! It's working now. Thank you.
     
Thread Status:
Not open for further replies.

Share This Page