Whoops \ Exception \ ErrorException (E_WARNING)
Division by zero Whoops\Exception\ErrorException thrown with message "Division by zero" Stacktrace: #4 Whoops\Exception\ErrorException in /home/minecraftandroid/minecraftandroid.ru/wp-content/themes/kodeer_honeybee/archive.php:86 #3 Gantry\Component\Whoops\SystemFacade:handleError in /home/minecraftandroid/minecraftandroid.ru/wp-content/themes/kodeer_honeybee/archive.php:86 #2 include in /home/minecraftandroid/minecraftandroid.ru/wp-includes/template-loader.php:106 #1 require_once in /home/minecraftandroid/minecraftandroid.ru/wp-blog-header.php:19 #0 require in /home/minecraftandroid/minecraftandroid.ru/index.php:17
Stack frames (5)
4
Whoops\Exception\ErrorException
/home/minecraftandroid/minecraftandroid.ru/wp-content/themes/kodeer_honeybee/archive.php86
3
Gantry\Component\Whoops\SystemFacade handleError
/home/minecraftandroid/minecraftandroid.ru/wp-content/themes/kodeer_honeybee/archive.php86
2
include
/home/minecraftandroid/minecraftandroid.ru/wp-includes/template-loader.php106
1
require_once
/home/minecraftandroid/minecraftandroid.ru/wp-blog-header.php19
0
require
/home/minecraftandroid/minecraftandroid.ru/index.php17
    );
    
    $newposts = get_posts($newargs);
    $newvariable = 0;
    $newcount = 0;
    $newvotes = 0;
    
    foreach ($newposts as $post) {
            $all = get_post_meta($post->ID, 'vote_total', true);
            $rating = get_post_meta($post->ID, 'vote_rating', true);
            if ($all != 0) {
                if (!is_nan($rating / $all)) {
                    $newvariable += $rating / $all;
                    $newcount += 1;
                    $newvotes += $all;
                }
            }
    }
    
    $context['sumrt'] = round($newvariable / $newcount, 1, PHP_ROUND_HALF_UP);
    $context['votesrt'] = $newvotes;
    
    $context['sumpr'] = round(round($newvariable / $newcount, 1, PHP_ROUND_HALF_UP) * 20, -1);
    
    // Суммарный
    
    #Добавляем для получения значений
    $category = get_queried_object();
    $dwbuttons = carbon_get_term_meta($category->term_id, 'dwbuttons', 'complex');
    //var_dump($dwbuttons);
    if ($dwbuttons) {
        //$context['dwbuttons'] = "Массив содержит данные";
        $dwbuttonshtml = '<div class="dwbuttonslist">';
        $dwbuttonshtml .= '<div class="item-dwbutton title-dwbutton">';
        $dwbuttonshtml .= '<span>Скачать Minecraft Бесплатно: Самая Последняя Версия</span>';
        $dwbuttonshtml .= '</div>';
        foreach ($dwbuttons as $dwbutton) {
            $dwbuttonshtml .= '<div class="item-dwbutton">';
            $dwbuttonshtml .= '<div class="item-dwbutton-l">';
            $dwbuttonshtml .= '<span>';
    );
    
    $newposts = get_posts($newargs);
    $newvariable = 0;
    $newcount = 0;
    $newvotes = 0;
    
    foreach ($newposts as $post) {
            $all = get_post_meta($post->ID, 'vote_total', true);
            $rating = get_post_meta($post->ID, 'vote_rating', true);
            if ($all != 0) {
                if (!is_nan($rating / $all)) {
                    $newvariable += $rating / $all;
                    $newcount += 1;
                    $newvotes += $all;
                }
            }
    }
    
    $context['sumrt'] = round($newvariable / $newcount, 1, PHP_ROUND_HALF_UP);
    $context['votesrt'] = $newvotes;
    
    $context['sumpr'] = round(round($newvariable / $newcount, 1, PHP_ROUND_HALF_UP) * 20, -1);
    
    // Суммарный
    
    #Добавляем для получения значений
    $category = get_queried_object();
    $dwbuttons = carbon_get_term_meta($category->term_id, 'dwbuttons', 'complex');
    //var_dump($dwbuttons);
    if ($dwbuttons) {
        //$context['dwbuttons'] = "Массив содержит данные";
        $dwbuttonshtml = '<div class="dwbuttonslist">';
        $dwbuttonshtml .= '<div class="item-dwbutton title-dwbutton">';
        $dwbuttonshtml .= '<span>Скачать Minecraft Бесплатно: Самая Последняя Версия</span>';
        $dwbuttonshtml .= '</div>';
        foreach ($dwbuttons as $dwbutton) {
            $dwbuttonshtml .= '<div class="item-dwbutton">';
            $dwbuttonshtml .= '<div class="item-dwbutton-l">';
            $dwbuttonshtml .= '<span>';
            }
 
            break;
        }
    }
 
    if ( ! $template ) {
        $template = get_index_template();
    }
 
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @param string $template The path of the template to include.
     */
    $template = apply_filters( 'template_include', $template );
    if ( $template ) {
        include $template;
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
}
 
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( ! isset( $wp_did_header ) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once __DIR__ . '/wp-load.php';
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once ABSPATH . WPINC . '/template-loader.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 __DIR__ . '/wp-blog-header.php';
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE nginx/1.14.0
REQUEST_URI /mody/magija/
USER minecraftandroid
HOME /home/minecraftandroid
HTTP_CF_CONNECTING_IP 3.147.59.217
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])
HTTP_ACCEPT */*
HTTP_CF_VISITOR {\"scheme\":\"https\"}
HTTP_X_FORWARDED_PROTO https
HTTP_CF_RAY 883e286e3cee22fa-ORD
HTTP_X_FORWARDED_FOR 3.147.59.217
HTTP_ACCEPT_ENCODING gzip, br
HTTP_CF_IPCOUNTRY US
HTTP_CDN_LOOP cloudflare
HTTP_HOST minecraftandroid.ru
REDIRECT_STATUS 200
SERVER_NAME minecraftandroid.ru
SERVER_PORT 443
SERVER_ADDR 82.148.30.11
REMOTE_PORT
REMOTE_ADDR 3.147.59.217
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /home/minecraftandroid/minecraftandroid.ru
DOCUMENT_URI /index.php
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_FILENAME /home/minecraftandroid/minecraftandroid.ru/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1715723994.1765
REQUEST_TIME 1715723994
empty
0. Whoops\Handler\PrettyPageHandler