ArgumentCountError
Too few arguments to function Shop::get_issue_img(), 0 passed in /home/glissand/domains/glissando.pl/public_html/new/wp-content/themes/glissando/woocommerce/content-single-product.php on line 41 and exactly 1 expected ArgumentCountError thrown with message "Too few arguments to function Shop::get_issue_img(), 0 passed in /home/glissand/domains/glissando.pl/public_html/new/wp-content/themes/glissando/woocommerce/content-single-product.php on line 41 and exactly 1 expected" Stacktrace: #7 ArgumentCountError in /home/glissand/domains/glissando.pl/public_html/new/wp-content/themes/glissando/lib/Shop.php:131 #6 Shop:get_issue_img in /home/glissand/domains/glissando.pl/public_html/new/wp-content/themes/glissando/woocommerce/content-single-product.php:41 #5 require in /home/glissand/domains/glissando.pl/public_html/new/wp-includes/template.php:690 #4 load_template in /home/glissand/domains/glissando.pl/public_html/new/wp-content/plugins/woocommerce/includes/wc-core-functions.php:179 #3 wc_get_template_part in /home/glissand/domains/glissando.pl/public_html/new/wp-content/themes/glissando/woocommerce/single-product.php:39 #2 include in /home/glissand/domains/glissando.pl/public_html/new/wp-includes/template-loader.php:74 #1 require_once in /home/glissand/domains/glissando.pl/public_html/new/wp-blog-header.php:19 #0 require in /home/glissand/domains/glissando.pl/public_html/new/index.php:17
Stack frames (8)
7
ArgumentCountError
/
lib
/
Shop.php
131
6
Shop
get_issue_img
/
woocommerce
/
content-single-product.php
41
5
require
/
home
/
glissand
/
domains
/
glissando.pl
/
public_html
/
new
/
wp-includes
/
template.php
690
4
load_template
/
home
/
glissand
/
domains
/
glissando.pl
/
public_html
/
new
/
wp-content
/
plugins
/
woocommerce
/
includes
/
wc-core-functions.php
179
3
wc_get_template_part
/
woocommerce
/
single-product.php
39
2
include
/
home
/
glissand
/
domains
/
glissando.pl
/
public_html
/
new
/
wp-includes
/
template-loader.php
74
1
require_once
/
home
/
glissand
/
domains
/
glissando.pl
/
public_html
/
new
/
wp-blog-header.php
19
0
require
/
home
/
glissand
/
domains
/
glissando.pl
/
public_html
/
new
/
index.php
17
/
home
/
glissand
/
domains
/
glissando.pl
/
public_html
/
new
/
wp-content
/
themes
/
glissando
/
lib
/
Shop.php
        return $opts[$value];
    }
 
    function woocommerce_products_per_page($query)
    {
        if ($query->is_main_query()) {
            $query->set('posts_per_page', -1);
        }
    }
 
    function issue_img($id)
    {
        $parent_issue = get_field('parent_issue', $id);
        global $app;
        $size = $app->thumb_size($id);
 
        return (empty($parent_issue)) ? get_the_post_thumbnail($post->ID, 'medium') : get_the_post_thumbnail($parent_issue, 'full');
    }
 
    function get_issue_img($id)
    {
        $issue_id = $id ? $id : $post->ID;
        $issue_img = $this->issue_img($issue_id);
        $link = get_permalink($post->ID);
        $format = ' <a href="%s"><div class="issue_thumbnail">%s</div></a>';
 
        echo sprintf($format, $link, $issue_img);
 
    }
 
 
    function woo_custom_cart_button_text()
    {
 
        return __('do koszyka', 'woocommerce');
 
    }
 
 
    function get_corresponding_product($post)
/
home
/
glissand
/
domains
/
glissando.pl
/
public_html
/
new
/
wp-content
/
themes
/
glissando
/
woocommerce
/
content-single-product.php
global $post, $product, $shop;
 
do_action('woocommerce_before_single_product');
 
if (post_password_required()) {
    echo get_the_password_form();
    return;
}
?>
 
<div id="product-<?php the_ID(); ?>" <?php post_class(); ?>>
 
    <?php
 
    do_action('woocommerce_before_single_product_summary');
    ?>
 
    <div class="summary entry-summary row shop_product_container">
        <div class="columns small-12 medium-4">
            <?php $shop->get_issue_img(); ?>
        </div>
        <div class="columns small-12 medium-8">
 
            <?php do_action('woocommerce_single_product_summary'); ?>
 
        </div><!-- .summary -->
    </div><!-- .summary -->
    <div class="product_content row">
        <div class="columns small-12 medium-12 large-8 large-offset-4">
            <?php the_content(); ?>
        </div>
    </div>
 
</div><!-- #product-<?php the_ID(); ?> -->
 
<?php do_action('woocommerce_after_single_product'); ?>
 
/
home
/
glissand
/
domains
/
glissando.pl
/
public_html
/
new
/
wp-includes
/
template.php
 * @global int        $user_ID
 *
 * @param string $_template_file Path to template file.
 * @param bool   $require_once   Whether to require_once or require. Default true.
 */
function load_template( $_template_file, $require_once = true ) {
    global $posts, $post, $wp_did_header, $wp_query, $wp_rewrite, $wpdb, $wp_version, $wp, $id, $comment, $user_ID;
 
    if ( is_array( $wp_query->query_vars ) ) {
        extract( $wp_query->query_vars, EXTR_SKIP );
    }
 
    if ( isset( $s ) ) {
        $s = esc_attr( $s );
    }
 
    if ( $require_once ) {
        require_once( $_template_file );
    } else {
        require( $_template_file );
    }
}
 
/
home
/
glissand
/
domains
/
glissando.pl
/
public_html
/
new
/
wp-content
/
plugins
/
woocommerce
/
includes
/
wc-core-functions.php
    // Look in yourtheme/slug-name.php and yourtheme/woocommerce/slug-name.php
    if ( $name && ! WC_TEMPLATE_DEBUG_MODE ) {
        $template = locate_template( array( "{$slug}-{$name}.php", WC()->template_path() . "{$slug}-{$name}.php" ) );
    }
 
    // Get default slug-name.php
    if ( ! $template && $name && file_exists( WC()->plugin_path() . "/templates/{$slug}-{$name}.php" ) ) {
        $template = WC()->plugin_path() . "/templates/{$slug}-{$name}.php";
    }
 
    // If template file doesn't exist, look in yourtheme/slug.php and yourtheme/woocommerce/slug.php
    if ( ! $template && ! WC_TEMPLATE_DEBUG_MODE ) {
        $template = locate_template( array( "{$slug}.php", WC()->template_path() . "{$slug}.php" ) );
    }
 
    // Allow 3rd party plugins to filter template file from their plugin.
    $template = apply_filters( 'wc_get_template_part', $template, $slug, $name );
 
    if ( $template ) {
        load_template( $template, false );
    }
}
 
/**
 * Get other templates (e.g. product attributes) passing attributes and including the file.
 *
 * @access public
 * @param string $template_name
 * @param array $args (default: array())
 * @param string $template_path (default: '')
 * @param string $default_path (default: '')
 */
function wc_get_template( $template_name, $args = array(), $template_path = '', $default_path = '' ) {
    if ( ! empty( $args ) && is_array( $args ) ) {
        extract( $args );
    }
 
    $located = wc_locate_template( $template_name, $template_path, $default_path );
 
    if ( ! file_exists( $located ) ) {
/
home
/
glissand
/
domains
/
glissando.pl
/
public_html
/
new
/
wp-content
/
themes
/
glissando
/
woocommerce
/
single-product.php
    exit; // Exit if accessed directly
}
 
get_header('shop'); ?>
 
    <div class="single_product  row">
        <div class="columns small-12 large-12">
            <?php
            /**
             * woocommerce_before_main_content hook.
             *
             * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
             * @hooked woocommerce_breadcrumb - 20
             */
            do_action('woocommerce_before_main_content');
            ?>
 
            <?php while (have_posts()) : the_post(); ?>
 
                <?php wc_get_template_part('content', 'single-product'); ?>
 
            <?php endwhile; // end of the loop. ?>
 
            <?php
            /**
             * woocommerce_after_main_content hook.
             *
             * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)
             */
            do_action('woocommerce_after_main_content');
            ?>
 
            <?php
            /**
             * woocommerce_sidebar hook.
             *
             * @hooked woocommerce_get_sidebar - 10
             */
            do_action('woocommerce_sidebar');
            ?>
/
home
/
glissand
/
domains
/
glissando.pl
/
public_html
/
new
/
wp-includes
/
template-loader.php
    elseif ( is_single()         && $template = get_single_template()         ) :
    elseif ( is_page()           && $template = get_page_template()           ) :
    elseif ( is_singular()       && $template = get_singular_template()       ) :
    elseif ( is_category()       && $template = get_category_template()       ) :
    elseif ( is_tag()            && $template = get_tag_template()            ) :
    elseif ( is_author()         && $template = get_author_template()         ) :
    elseif ( is_date()           && $template = get_date_template()           ) :
    elseif ( is_archive()        && $template = get_archive_template()        ) :
    else :
        $template = get_index_template();
    endif;
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @param string $template The path of the template to include.
     */
    if ( $template = apply_filters( 'template_include', $template ) ) {
        include( $template );
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
endif;
 
/
home
/
glissand
/
domains
/
glissando.pl
/
public_html
/
new
/
wp-blog-header.php
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( !isset($wp_did_header) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once( dirname(__FILE__) . '/wp-load.php' );
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once( ABSPATH . WPINC . '/template-loader.php' );
 
}
 
/
home
/
glissand
/
domains
/
glissando.pl
/
public_html
/
new
/
index.php
<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */
 
/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define('WP_USE_THEMES', true);
 
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE Apache
REQUEST_URI /sklep/18-18-2011/
PATH /usr/local/rvm/gems/ruby-2.1.3/bin:/usr/local/rvm/gems/ruby-2.1.3@global/bin:/usr/local/rvm/rubies/ruby-2.1.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/pgsql/bin:/usr/local/mysql/bin:/usr/local/nodejs/bin:/usr/local/rvm/bin
PWD /usr/local/directadmin/data/users/glissand/php/glissando.pl
SHLVL 0
PHP_FCGI_MAX_REQUESTS 500000
SCRIPT_NAME /index.php
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /sklep/18-18-2011/
REMOTE_PORT 53122
SCRIPT_FILENAME /home/glissand/domains/glissando.pl/public_html/new/index.php
SERVER_ADMIN webmaster@glissando.pl
DOCUMENT_ROOT /home/glissand/domains/glissando.pl/public_html/new
REMOTE_ADDR 54.224.166.141
SERVER_PORT 80
SERVER_ADDR 78.46.68.78
SERVER_NAME glissando.pl
SERVER_SIGNATURE
HTTP_ACCEPT_ENCODING gzip
HTTP_CONNECTION close
HTTP_HOST glissando.pl
HTTP_IF_MODIFIED_SINCE Mon, 23 Jul 2018 11:58:41 CEST
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
UNIQUE_ID W6boBk4uRE4AADeBIYoAAAFr
REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID W6boBk4uRE4AADeBIYoAAAFr
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1537665030.1654
REQUEST_TIME 1537665030
empty
0. Whoops\Handler\PrettyPageHandler