Whoops \ Exception \ ErrorException (E_WARNING)
Array to string conversion Whoops\Exception\ErrorException thrown with message "Array to string conversion" Stacktrace: #5 Whoops\Exception\ErrorException in /home/user_15014/app_15014/wp-content/themes/skogens_mangbruk/template-parts/layout/news.php:79 #4 Whoops\Run:handleError in /home/user_15014/app_15014/wp-content/themes/skogens_mangbruk/template-parts/layout/news.php:79 #3 require_once in /home/user_15014/app_15014/wp-content/themes/skogens_mangbruk/single.php:13 #2 include in /home/user_15014/app_15014/wp-includes/template-loader.php:106 #1 require_once in /home/user_15014/app_15014/wp-blog-header.php:19 #0 require in /home/user_15014/app_15014/index.php:17
Stack frames (6)
5
Whoops\Exception\ErrorException
/template-parts/layout/news.php79
4
Whoops\Run handleError
/template-parts/layout/news.php79
3
require_once
/single.php13
2
include
/home/user_15014/app_15014/wp-includes/template-loader.php106
1
require_once
/home/user_15014/app_15014/wp-blog-header.php19
0
require
/home/user_15014/app_15014/index.php17
/home/user_15014/app_15014/wp-content/themes/skogens_mangbruk/template-parts/layout/news.php
 
    <div class="psm-hero">
        <div
            class="psm-hero-inner has-height <?= $heroImage == NULL ? 'has-no-bg' : ''; ?>"
            style="background-image: url('<?= $heroImage; ?>');"
        >
            <header class="psm-hero-header">
                <h1 class="psm-hero-header-heading">
                    <?php the_title(); ?>
                </h1>
            </header>
        </div>
    </div>
 
    <div class="psm-article">
        <div class="psm-article-inner">
            <article class="psm-article-content">
                <?php if ($postRegistrationLink != ''): ?>
                    <a 
                        href="<?= $postRegistrationLink; ?>" 
                        class="psm-article-content-button psm-button is-primary"
                    >
                        Anmäl dig
                    </a>
                <?php endif; ?>
                <?php the_content(); ?>
 
                <?php /*
                <div class="psm-article-content-event-details">
                    <p>
                    <?php if(get_field('date')): ?>
                        Datum: <?php print get_field('date'); ?><br />
                    <?php endif; ?>
                    <?php if(get_field('location')): ?>
                        Plats: <?php print get_field('location'); ?><br />
                    <?php endif; ?>
                    <?php if(get_field('location')): ?>
                        <a href="<?php print get_field('link'); ?>">Läs mer</a><br />
                    <?php endif; ?>
                    </p>
/home/user_15014/app_15014/wp-content/themes/skogens_mangbruk/template-parts/layout/news.php
 
    <div class="psm-hero">
        <div
            class="psm-hero-inner has-height <?= $heroImage == NULL ? 'has-no-bg' : ''; ?>"
            style="background-image: url('<?= $heroImage; ?>');"
        >
            <header class="psm-hero-header">
                <h1 class="psm-hero-header-heading">
                    <?php the_title(); ?>
                </h1>
            </header>
        </div>
    </div>
 
    <div class="psm-article">
        <div class="psm-article-inner">
            <article class="psm-article-content">
                <?php if ($postRegistrationLink != ''): ?>
                    <a 
                        href="<?= $postRegistrationLink; ?>" 
                        class="psm-article-content-button psm-button is-primary"
                    >
                        Anmäl dig
                    </a>
                <?php endif; ?>
                <?php the_content(); ?>
 
                <?php /*
                <div class="psm-article-content-event-details">
                    <p>
                    <?php if(get_field('date')): ?>
                        Datum: <?php print get_field('date'); ?><br />
                    <?php endif; ?>
                    <?php if(get_field('location')): ?>
                        Plats: <?php print get_field('location'); ?><br />
                    <?php endif; ?>
                    <?php if(get_field('location')): ?>
                        <a href="<?php print get_field('link'); ?>">Läs mer</a><br />
                    <?php endif; ?>
                    </p>
/home/user_15014/app_15014/wp-content/themes/skogens_mangbruk/single.php
<?php
    /**
     * The template for displaying all single posts
     *
     * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
     *
     * @package WordPress
     * @subpackage Well Hello
     * @since 1.0
     * @version 1.0
     */
 
    require_once __DIR__ . '/template-parts/layout/news.php';
 
?>
 
/home/user_15014/app_15014/wp-includes/template-loader.php
            }
 
            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;
}
 
/home/user_15014/app_15014/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 __DIR__ . '/wp-load.php';
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once ABSPATH . WPINC . '/template-loader.php';
 
}
 
/home/user_15014/app_15014/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 __DIR__ . '/wp-blog-header.php';
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE nginx/1.18.0
REQUEST_URI /aktivitet/traff-kurs-8-juni-kl-9-12-biokol-hur-och-till-vad-produktion-anvandning-och-marknadsomraden-i-stor-och-liten-skala-pa-odevata-med-lunch-fran-stufvenas-gastgiveri-ti/
USER user_15014
HOME /home/user_15014
HTTP_ACCEPT_ENCODING br,gzip
HTTP_IF_MODIFIED_SINCE Mon, 24 Jun 2024 21:51:14 GMT
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
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/)
HTTP_HOST skogenskraft.se
TEMPL_APP_ID 15014
REDIRECT_STATUS 200
SERVER_NAME skogenskraft.se
SERVER_PORT 443
SERVER_ADDR 10.166.0.67
REMOTE_PORT 48100
REMOTE_ADDR 18.97.14.89
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /home/user_15014/app_15014
DOCUMENT_URI /index.php
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_FILENAME /home/user_15014/app_15014/index.php
PATH_INFO
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1733759495.2029
REQUEST_TIME 1733759495
SENDGRID_KEY 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
HUBSPOT_PRIVATE_KEY pat-na1-c2805106-c6ef-49e3-bfaf-e52fade89056
PRODUCTION FALSE
Key Value
SENDGRID_KEY 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
HUBSPOT_PRIVATE_KEY pat-na1-c2805106-c6ef-49e3-bfaf-e52fade89056
PRODUCTION FALSE
0. Whoops\Handler\PrettyPageHandler