Whoops \ Exception \ ErrorException (E_WARNING)
Attempt to read property "ID" on bool Whoops\Exception\ErrorException thrown with message "Attempt to read property "ID" on bool" Stacktrace: #16 Whoops\Exception\ErrorException in /www/idverdenl_614/public/wp-content/plugins/sitepress-multilingual-cms/classes/query-filtering/wpml-query-utils.class.php:58 #15 Whoops\Run:handleError in /www/idverdenl_614/public/wp-content/plugins/sitepress-multilingual-cms/classes/query-filtering/wpml-query-utils.class.php:58 #14 WPML_Query_Utils:author_query_has_posts in /www/idverdenl_614/public/wp-content/plugins/sitepress-multilingual-cms/inc/utilities/wpml-languages.class.php:163 #13 WPML_Languages:add_author_url_to_ls_lang in /www/idverdenl_614/public/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php:2985 #12 SitePress:get_ls_languages in /www/idverdenl_614/public/wp-content/plugins/sitepress-multilingual-cms/classes/seo/class-wpml-seo-headlangs.php:39 #11 WPML_SEO_HeadLangs:head_langs in /www/idverdenl_614/public/wp-includes/class-wp-hook.php:324 #10 WP_Hook:apply_filters in /www/idverdenl_614/public/wp-includes/class-wp-hook.php:348 #9 WP_Hook:do_action in /www/idverdenl_614/public/wp-includes/plugin.php:517 #8 do_action in /www/idverdenl_614/public/wp-includes/general-template.php:3192 #7 wp_head in /www/idverdenl_614/public/wp-content/themes/idverde-child-theme/header.php:8 #6 require_once in /www/idverdenl_614/public/wp-includes/template.php:810 #5 load_template in /www/idverdenl_614/public/wp-includes/template.php:745 #4 locate_template in /www/idverdenl_614/public/wp-includes/general-template.php:48 #3 get_header in /www/idverdenl_614/public/wp-content/themes/idverde-child-theme/search.php:1 #2 include in /www/idverdenl_614/public/wp-includes/template-loader.php:106 #1 require_once in /www/idverdenl_614/public/wp-blog-header.php:19 #0 require in /www/idverdenl_614/public/index.php:17
16
Whoops\Exception\ErrorException
/www/idverdenl_614/public/wp-content/plugins/sitepress-multilingual-cms/classes/query-filtering/wpml-query-utils.class.php58
15
Whoops\Run handleError
/www/idverdenl_614/public/wp-content/plugins/sitepress-multilingual-cms/classes/query-filtering/wpml-query-utils.class.php58
14
WPML_Query_Utils author_query_has_posts
/www/idverdenl_614/public/wp-content/plugins/sitepress-multilingual-cms/inc/utilities/wpml-languages.class.php163
13
WPML_Languages add_author_url_to_ls_lang
/www/idverdenl_614/public/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php2985
12
SitePress get_ls_languages
/www/idverdenl_614/public/wp-content/plugins/sitepress-multilingual-cms/classes/seo/class-wpml-seo-headlangs.php39
11
WPML_SEO_HeadLangs head_langs
/www/idverdenl_614/public/wp-includes/class-wp-hook.php324
10
WP_Hook apply_filters
/www/idverdenl_614/public/wp-includes/class-wp-hook.php348
9
WP_Hook do_action
/www/idverdenl_614/public/wp-includes/plugin.php517
8
do_action
/www/idverdenl_614/public/wp-includes/general-template.php3192
7
wp_head
/www/idverdenl_614/public/wp-content/themes/idverde-child-theme/header.php8
6
require_once
/www/idverdenl_614/public/wp-includes/template.php810
5
load_template
/www/idverdenl_614/public/wp-includes/template.php745
4
locate_template
/www/idverdenl_614/public/wp-includes/general-template.php48
3
get_header
/www/idverdenl_614/public/wp-content/themes/idverde-child-theme/search.php1
2
include
/www/idverdenl_614/public/wp-includes/template-loader.php106
1
require_once
/www/idverdenl_614/public/wp-blog-header.php19
0
require
/www/idverdenl_614/public/index.php17
/www/idverdenl_614/public/wp-content/plugins/sitepress-multilingual-cms/classes/query-filtering/wpml-query-utils.class.php
     *
     * @return bool
     *
     * @used-by \WPML_Languages::add_author_url_to_ls_lang to determine what languages to show in the Language Switcher
     */
    public function author_query_has_posts( $post_type, $author_data, $lang, $fallback_lang ) {
        $post_types        = (array) $post_type;
        $post_type_snippet = (bool) $post_types ? ' AND post_type IN (' . wpml_prepare_in( $post_types ) . ') ' : '';
        $language_snippet  = $this->get_language_snippet( $lang, $fallback_lang, $post_type );
 
        return (bool) $this->wpdb->get_var(
            $this->wpdb->prepare(
                "    SELECT COUNT(p.ID) FROM {$this->wpdb->posts} p
                JOIN {$this->wpdb->prefix}icl_translations wpml_translations
                    ON p.ID=wpml_translations.element_id AND wpml_translations.element_type = CONCAT('post_', p.post_type)
                WHERE p.post_author=%d
                  " . $post_type_snippet . "
                  AND post_status='publish'
                  " . $language_snippet . ' LIMIT 1',
                $author_data->ID
            )
        );
    }
 
    /**
     * Returns the number of posts for a given post_type, date and language combination that is published.
     *
     * @param string       $lang language code to check
     * @param string       $fallback_lang
     * @param null|int     $year
     * @param null|int     $month
     * @param null|int     $day
     * @param string|array $post_type
     *
     * @return bool
     *
     * @used-by \WPML_Languages::add_date_or_cpt_url_to_ls_lang to determine what languages to show in the Language Switcher
     */
    public function archive_query_has_posts( $lang, $fallback_lang, $year = null, $month = null, $day = null, $post_type = 'post' ) {
        $cache_args                  = array();
Arguments
  1. "Attempt to read property "ID" on bool"
    
/www/idverdenl_614/public/wp-content/plugins/sitepress-multilingual-cms/classes/query-filtering/wpml-query-utils.class.php
     *
     * @return bool
     *
     * @used-by \WPML_Languages::add_author_url_to_ls_lang to determine what languages to show in the Language Switcher
     */
    public function author_query_has_posts( $post_type, $author_data, $lang, $fallback_lang ) {
        $post_types        = (array) $post_type;
        $post_type_snippet = (bool) $post_types ? ' AND post_type IN (' . wpml_prepare_in( $post_types ) . ') ' : '';
        $language_snippet  = $this->get_language_snippet( $lang, $fallback_lang, $post_type );
 
        return (bool) $this->wpdb->get_var(
            $this->wpdb->prepare(
                "    SELECT COUNT(p.ID) FROM {$this->wpdb->posts} p
                JOIN {$this->wpdb->prefix}icl_translations wpml_translations
                    ON p.ID=wpml_translations.element_id AND wpml_translations.element_type = CONCAT('post_', p.post_type)
                WHERE p.post_author=%d
                  " . $post_type_snippet . "
                  AND post_status='publish'
                  " . $language_snippet . ' LIMIT 1',
                $author_data->ID
            )
        );
    }
 
    /**
     * Returns the number of posts for a given post_type, date and language combination that is published.
     *
     * @param string       $lang language code to check
     * @param string       $fallback_lang
     * @param null|int     $year
     * @param null|int     $month
     * @param null|int     $day
     * @param string|array $post_type
     *
     * @return bool
     *
     * @used-by \WPML_Languages::add_date_or_cpt_url_to_ls_lang to determine what languages to show in the Language Switcher
     */
    public function archive_query_has_posts( $lang, $fallback_lang, $year = null, $month = null, $day = null, $post_type = 'post' ) {
        $cache_args                  = array();
Arguments
  1. 2
    
  2. "Attempt to read property "ID" on bool"
    
  3. "/www/idverdenl_614/public/wp-content/plugins/sitepress-multilingual-cms/classes/query-filtering/wpml-query-utils.class.php"
    
  4. 58
    
/www/idverdenl_614/public/wp-content/plugins/sitepress-multilingual-cms/inc/utilities/wpml-languages.class.php
 
                list( $lang, $skip_lang ) = $this->maybe_mark_lang_missing( $lang, $args );
            }
        }
 
        return array( $lang, $skip_lang );
    }
 
    /**
     * @param array          $lang
     * @param object|WP_User $author_data
     * @param bool           $icl_lso_link_empty
     * @param bool           $skip_lang
     * @param bool           $link_empty_to
     *
     * @return array
     */
    public function add_author_url_to_ls_lang( $lang, $fallback_lang, $author_data, $icl_lso_link_empty, $skip_lang, $link_empty_to ) {
        $post_type = get_query_var( 'post_type' ) ? get_query_var( 'post_type' ) : 'post';
        if ( $this->query_utils->author_query_has_posts( $post_type, $author_data, $lang['code'], $fallback_lang ) ) {
            $lang['translated_url'] = $this->sitepress->convert_url( $this->sitepress->get_wp_api()->get_author_posts_url( $author_data->ID ), $lang['code'] );
            $lang['missing']        = 0;
        } else {
 
            $args = array(
                'skip_lang'        => $skip_lang,
                'link_empty'       => $icl_lso_link_empty,
                'override_missing' => false,
                'link_empty_to'    => $link_empty_to,
            );
 
            list( $lang, $skip_lang ) = $this->maybe_mark_lang_missing( $lang, $args );
        }
 
        return array( $lang, $skip_lang );
    }
 
    /**
     * @param array    $lang
     * @param string   $fallback_lang
Arguments
  1. array:7 [
      0 => "news_pt"
      1 => "blog_pt"
      2 => "locations"
      3 => "products"
      4 => "projects"
      5 => "themas"
      6 => "page"
    ]
    
  2. false
    
  3. "nl"
    
  4. "nl"
    
/www/idverdenl_614/public/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php
                $icl_adjust_id_url_filter_off = true;
 
                list( $lang, $skip_lang ) = $languages_helper->add_tax_url_to_ls_lang(
                    $lang,
                    $translations,
                    $icl_lso_link_empty,
                    $skip_lang,
                    $link_empty_to,
                    $display_as_translated_ls_link
                );
 
                $icl_adjust_id_url_filter_off = false;
            } elseif ( is_author() ) {
                global $authordata;
                if ( empty( $authordata ) ) {
                    $authordata = get_userdata( get_query_var( 'author' ) );
                }
                remove_filter( 'home_url', array( $this, 'home_url' ), 1 );
                remove_filter( 'author_link', array( $this, 'author_link' ) );
                list( $lang, $skip_lang ) = $languages_helper->add_author_url_to_ls_lang(
                    $lang,
                    $default_language,
                    $authordata,
                    $icl_lso_link_empty,
                    $skip_lang,
                    $link_empty_to
                );
                add_filter( 'home_url', array( $this, 'home_url' ), 1, 4 );
                add_filter( 'author_link', array( $this, 'author_link' ) );
            } elseif ( is_archive() && ! is_tag() ) {
                global $icl_archive_url_filter_off;
                $icl_archive_url_filter_off = true;
                remove_filter( 'post_type_archive_link', array( $this, 'post_type_archive_link_filter' ), 10 );
                list( $lang, $skip_lang ) = $languages_helper->add_date_or_cpt_url_to_ls_lang(
                    $lang,
                    $default_language,
                    $this->wp_query,
                    $icl_lso_link_empty,
                    $skip_lang,
                    $link_empty_to
Arguments
  1. array:10 [
      "code" => "nl"
      "id" => "37"
      "english_name" => "Dutch"
      "native_name" => "Nederlands"
      "major" => "1"
      "active" => "1"
      "default_locale" => "nl_NL"
      "encode_url" => "0"
      "tag" => "nl"
      "display_name" => "Dutch"
    ]
    
  2. "nl"
    
  3. false
    
  4. false
    
  5. false
    
  6. null
    
/www/idverdenl_614/public/wp-content/plugins/sitepress-multilingual-cms/classes/seo/class-wpml-seo-headlangs.php
        if ( ! array_key_exists( 'head_langs_priority', $seo_settings ) ) {
            $seo_settings['head_langs_priority'] = 1;
        }
 
        return $seo_settings;
    }
 
    public function init_hooks() {
        if ( $this->sitepress->get_wp_api()->is_front_end() ) {
            $seo_settings = $this->get_seo_settings();
            $head_langs   = $seo_settings['head_langs'];
            if ( $head_langs ) {
                $priority = $seo_settings['head_langs_priority'];
                add_action( 'wp_head', array( $this, 'head_langs' ), (int) $priority );
            }
        }
    }
 
    function head_langs() {
        $languages = $this->sitepress->get_ls_languages( array( 'skip_missing' => true ) );
        /**
         * @since 3.4.0
         */
        $languages = apply_filters( 'wpml_head_langs', $languages );
 
        if ( $this->must_render( $languages ) ) {
            $hreflang_items     = [];
            $xdefault_href_lang = null;
 
            foreach ( $languages as $lang ) {
                /**
                 * @since 3.3.7
                 */
                $alternate_hreflang = apply_filters( 'wpml_alternate_hreflang', $lang['url'], $lang['code'] );
 
                $hreflang_code = $this->get_hreflang_code( $lang );
 
                if ( $hreflang_code ) {
                    $hreflang_items[ $hreflang_code ] = str_replace( '&', '&', $alternate_hreflang );
 
Arguments
  1. array:1 [
      "skip_missing" => true
    ]
    
/www/idverdenl_614/public/wp-includes/class-wp-hook.php
 
        $this->iterations[ $nesting_level ] = $this->priorities;
 
        $num_args = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
 
            $priority = $this->current_priority[ $nesting_level ];
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if ( ! $this->doing_action ) {
                    $args[0] = $value;
                }
 
                // Avoid the array_slice() if possible.
                if ( 0 === $the_['accepted_args'] ) {
                    $value = call_user_func( $the_['function'] );
                } elseif ( $the_['accepted_args'] >= $num_args ) {
                    $value = call_user_func_array( $the_['function'], $args );
                } else {
                    $value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
                }
            }
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        --$this->nesting_level;
 
        return $value;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
Arguments
  1. ""
    
/www/idverdenl_614/public/wp-includes/class-wp-hook.php
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        --$this->nesting_level;
 
        return $value;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
     */
    public function do_action( $args ) {
        $this->doing_action = true;
        $this->apply_filters( '', $args );
 
        // If there are recursive calls to the current action, we haven't finished it until we get to the last one.
        if ( ! $this->nesting_level ) {
            $this->doing_action = false;
        }
    }
 
    /**
     * Processes the functions hooked into the 'all' hook.
     *
     * @since 4.7.0
     *
     * @param array $args Arguments to pass to the hook callbacks. Passed by reference.
     */
    public function do_all_hook( &$args ) {
        $nesting_level                      = $this->nesting_level++;
        $this->iterations[ $nesting_level ] = $this->priorities;
 
        do {
            $priority = current( $this->iterations[ $nesting_level ] );
Arguments
  1. null
    
  2. array:1 [
      0 => ""
    ]
    
/www/idverdenl_614/public/wp-includes/plugin.php
    if ( ! isset( $wp_filter[ $hook_name ] ) ) {
        if ( isset( $wp_filter['all'] ) ) {
            array_pop( $wp_current_filter );
        }
 
        return;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $hook_name;
    }
 
    if ( empty( $arg ) ) {
        $arg[] = '';
    } elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) {
        // Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
        $arg[0] = $arg[0][0];
    }
 
    $wp_filter[ $hook_name ]->do_action( $arg );
 
    array_pop( $wp_current_filter );
}
 
/**
 * Calls the callback functions that have been added to an action hook, specifying arguments in an array.
 *
 * @since 2.1.0
 *
 * @see do_action() This function is identical, but the arguments passed to the
 *                  functions hooked to `$hook_name` are supplied using an array.
 *
 * @global WP_Hook[] $wp_filter         Stores all of the filters and actions.
 * @global int[]     $wp_actions        Stores the number of times each action was triggered.
 * @global string[]  $wp_current_filter Stores the list of current filters with the current one last.
 *
 * @param string $hook_name The name of the action to be executed.
 * @param array  $args      The arguments supplied to the functions hooked to `$hook_name`.
 */
function do_action_ref_array( $hook_name, $args ) {
Arguments
  1. array:1 [
      0 => ""
    ]
    
/www/idverdenl_614/public/wp-includes/general-template.php
     * @param string $before           The HTML to output before the date.
     * @param string $after            The HTML to output after the date.
     */
    echo apply_filters( 'the_weekday_date', $the_weekday_date, $before, $after );
}
 
/**
 * Fires the wp_head action.
 *
 * See {@see 'wp_head'}.
 *
 * @since 1.2.0
 */
function wp_head() {
    /**
     * Prints scripts or data in the head tag on the front end.
     *
     * @since 1.5.0
     */
    do_action( 'wp_head' );
}
 
/**
 * Fires the wp_footer action.
 *
 * See {@see 'wp_footer'}.
 *
 * @since 1.5.1
 */
function wp_footer() {
    /**
     * Prints scripts or data before the closing body tag on the front end.
     *
     * @since 1.5.1
     */
    do_action( 'wp_footer' );
}
 
/**
 * Fires the wp_body_open action.
Arguments
  1. "wp_head"
    
/www/idverdenl_614/public/wp-content/themes/idverde-child-theme/header.php
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
    <meta charset="<?php bloginfo( 'charset' ); ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!--    <link rel="icon" type="image/png" href="--><?php //echo get_stylesheet_directory_uri(); ?><!--/favicon.png"/>-->
    <?php get_template_part( 'template-parts/head-end' ); ?>
    <?php wp_head(); ?>
    <link rel='stylesheet' href='https://static.mailplus.nl/jq/ui/jquery-ui-1.13.2.custom.min.css' type='text/css'>
    <link rel='stylesheet' href='https://static.mailplus.nl/jq/ui/jquery-ui-1.13.2.custom.min.css' type='text/css'>
</head>
<body <?php body_class(); ?>>
<?php get_template_part( 'template-parts/body-start' ); ?>
<header id="site-header" role="banner" class="main-header">
    <?php
    $disable_header = get_field('disable_header_and_top_bar', get_the_ID())
    ?>
<?php if(!$disable_header) : ?>
    <!-- Top Bar -->
    <?php get_template_part( 'template-parts/header-parts/header-top' ) ?>
 
    <!-- Main Header -->
    <?php get_template_part( 'template-parts/header-parts/header-main' ) ?>
    <?php endif; ?>
</header>
<?php get_template_part( 'template-parts/components/popup' ) ?>
 
/www/idverdenl_614/public/wp-includes/template.php
        extract( $wp_query->query_vars, EXTR_SKIP );
    }
 
    if ( isset( $s ) ) {
        $s = esc_attr( $s );
    }
 
    /**
     * Fires before a template file is loaded.
     *
     * @since 6.1.0
     *
     * @param string $_template_file The full path to the template file.
     * @param bool   $load_once      Whether to require_once or require.
     * @param array  $args           Additional arguments passed to the template.
     */
    do_action( 'wp_before_load_template', $_template_file, $load_once, $args );
 
    if ( $load_once ) {
        require_once $_template_file;
    } else {
        require $_template_file;
    }
 
    /**
     * Fires after a template file is loaded.
     *
     * @since 6.1.0
     *
     * @param string $_template_file The full path to the template file.
     * @param bool   $load_once      Whether to require_once or require.
     * @param array  $args           Additional arguments passed to the template.
     */
    do_action( 'wp_after_load_template', $_template_file, $load_once, $args );
}
 
Arguments
  1. "/www/idverdenl_614/public/wp-content/themes/idverde-child-theme/header.php"
    
/www/idverdenl_614/public/wp-includes/template.php
 
    $located = '';
    foreach ( (array) $template_names as $template_name ) {
        if ( ! $template_name ) {
            continue;
        }
        if ( file_exists( $wp_stylesheet_path . '/' . $template_name ) ) {
            $located = $wp_stylesheet_path . '/' . $template_name;
            break;
        } elseif ( $is_child_theme && file_exists( $wp_template_path . '/' . $template_name ) ) {
            $located = $wp_template_path . '/' . $template_name;
            break;
        } elseif ( file_exists( ABSPATH . WPINC . '/theme-compat/' . $template_name ) ) {
            $located = ABSPATH . WPINC . '/theme-compat/' . $template_name;
            break;
        }
    }
 
    if ( $load && '' !== $located ) {
        load_template( $located, $load_once, $args );
    }
 
    return $located;
}
 
/**
 * Requires the template file with WordPress environment.
 *
 * The globals are set up for the template file to ensure that the WordPress
 * environment is available from within the function. The query variables are
 * also available.
 *
 * @since 1.5.0
 * @since 5.5.0 The `$args` parameter was added.
 *
 * @global array      $posts
 * @global WP_Post    $post          Global post object.
 * @global bool       $wp_did_header
 * @global WP_Query   $wp_query      WordPress Query object.
 * @global WP_Rewrite $wp_rewrite    WordPress rewrite component.
Arguments
  1. "/www/idverdenl_614/public/wp-content/themes/idverde-child-theme/header.php"
    
  2. true
    
  3. []
    
/www/idverdenl_614/public/wp-includes/general-template.php
     * Fires before the header template file is loaded.
     *
     * @since 2.1.0
     * @since 2.8.0 The `$name` parameter was added.
     * @since 5.5.0 The `$args` parameter was added.
     *
     * @param string|null $name Name of the specific header file to use. Null for the default header.
     * @param array       $args Additional arguments passed to the header template.
     */
    do_action( 'get_header', $name, $args );
 
    $templates = array();
    $name      = (string) $name;
    if ( '' !== $name ) {
        $templates[] = "header-{$name}.php";
    }
 
    $templates[] = 'header.php';
 
    if ( ! locate_template( $templates, true, true, $args ) ) {
        return false;
    }
}
 
/**
 * Loads footer template.
 *
 * Includes the footer template for a theme or if a name is specified then a
 * specialized footer will be included.
 *
 * For the parameter, if the file is called "footer-special.php" then specify
 * "special".
 *
 * @since 1.5.0
 * @since 5.5.0 A return value was added.
 * @since 5.5.0 The `$args` parameter was added.
 *
 * @param string|null $name The name of the specialized footer. Default null.
 * @param array       $args Optional. Additional arguments passed to the footer template.
 *                          Default empty array.
Arguments
  1. array:1 [
      0 => "header.php"
    ]
    
  2. true
    
  3. true
    
  4. []
    
/www/idverdenl_614/public/wp-content/themes/idverde-child-theme/search.php
<?php get_header(); ?>
    <main class="main search-page">
        <?php get_template_part( 'template-parts/header-parts/header-archives', null, [ 'type' => 'search-page' ] ); ?>
        <?php
        $search_query = $_GET[ 's' ];
        $search_found = get_field( 'search_page_search_found_text', 'option' ) ?: 'U heeft gezocht op';
        $search_found_before = get_field( 'search_page_before_text', 'option' ) ?: 'er zijn';
        $search_found_after = get_field( 'search_page_after_text', 'option' ) ?: 'resultaten gevonden';
        $search_not_found = get_field( 'search_page_not_found_text', 'option' ) ?: 'Nothing found for';
        $read_more_text = get_field( 'search_page_read_more_text', 'option' ) ?? 'Bekijk pagina';
        $search_placeholder = get_field( 'header_search_bar_placeholder', 'option' ) ?? 'Zoek op trefwoord';
        $search_button_text = get_field( 'header_search_bar_button_text', 'option' ) ?? 'Zoeken';
 
        $post_types = [ 'news_pt','blog_pt','locations','products','projects','themas', 'page' ];
 
        $args = array(
            's' => $search_query,
            'posts_per_page' => -1,
            'post_type' => $post_types,
        );
        $search_query = new WP_Query( $args );
        $counter = 0;
        if ( $search_query->have_posts() ) {
            while ( $search_query->have_posts() ) {
                $search_query->the_post();
                $counter++;
            }
            wp_reset_postdata();
        }
 
        ?>
        <section class="search-section">
            <div class="container">
                <?php if ( have_posts() ): ?>
                    <div class="row">
                        <div class="col-12">
                            <div class="found">
                                <h2>
                                    <?php echo $search_found . ' " ' . $_GET[ 's' ] . ' " ' . $search_found_before . ' ' . $counter . ' ' . $search_found_after; ?>
                                </h2>
/www/idverdenl_614/public/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;
}
 
Arguments
  1. "/www/idverdenl_614/public/wp-content/themes/idverde-child-theme/search.php"
    
/www/idverdenl_614/public/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';
 
}
 
Arguments
  1. "/www/idverdenl_614/public/wp-includes/template-loader.php"
    
/www/idverdenl_614/public/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';
 
Arguments
  1. "/www/idverdenl_614/public/wp-blog-header.php"
    

Environment & details:

Key Value
query_vars
array:2 [
  "s" => ""
  "author_name" => "fyiadmin"
]
query_string
"author_name=fyiadmin"
request
"author/fyiadmin"
matched_rule
"author/([^/]+)/?$"
matched_query
"author_name=fyiadmin"
did_permalink
true
Key Value
query
array:2 [
  "s" => ""
  "author_name" => "fyiadmin"
]
query_vars
array:10 [
  "author_name" => "fyiadmin"
  "fields" => "all"
  "post_type" => array:7 [
    0 => "news_pt"
    1 => "blog_pt"
    2 => "locations"
    3 => "products"
    4 => "projects"
    5 => "themas"
    6 => "page"
  ]
  "posts_per_page" => 5
  "cache_results" => true
  "update_post_term_cache" => true
  "lazy_load_term_meta" => true
  "update_post_meta_cache" => true
  "comments_per_page" => "50"
  "order" => "DESC"
]
tax_query
WP_Tax_Query {#10288}
meta_query
WP_Meta_Query {#10293}
request
"""
SELECT SQL_CALC_FOUND_ROWS DISTINCT wp_itv_6_posts.ID\n
\t\t\t\t\t FROM wp_itv_6_posts  LEFT  JOIN wp_itv_6_icl_translations wpml_translations\n
\t\t\t\t\t\t\tON wp_itv_6_posts.ID = wpml_translations.element_id\n
\t\t\t\t\t\t\t\tAND wpml_translations.element_type = CONCAT('post_', wp_itv_6_posts.post_type)  LEFT JOIN wp_itv_6_postmeta ON wp_itv_6_posts.ID = wp_itv_6_postmeta.post_id \n
\t\t\t\t\t WHERE 1=1  AND (wp_itv_6_posts.post_author = 0) AND ((wp_itv_6_posts.post_type = 'blog_pt' AND (wp_itv_6_posts.post_status = 'publish' OR wp_itv_6_posts.post_status = 'acf-disabled')) OR (wp_itv_6_posts.post_type = 'locations' AND (wp_itv_6_posts.post_status = 'publish' OR wp_itv_6_posts.post_status = 'acf-disabled')) OR (wp_itv_6_posts.post_type = 'news_pt' AND (wp_itv_6_posts.post_status = 'publish' OR wp_itv_6_posts.post_status = 'acf-disabled')) OR (wp_itv_6_posts.post_type = 'page' AND (wp_itv_6_posts.post_status = 'publish' OR wp_itv_6_posts.post_status = 'acf-disabled')) OR (wp_itv_6_posts.post_type = 'products' AND (wp_itv_6_posts.post_status = 'publish' OR wp_itv_6_posts.post_status = 'acf-disabled')) OR (wp_itv_6_posts.post_type = 'projects' AND (wp_itv_6_posts.post_status = 'publish' OR wp_itv_6_posts.post_status = 'acf-disabled')) OR (wp_itv_6_posts.post_type = 'themas' AND (wp_itv_6_posts.post_status = 'publish' OR wp_itv_6_posts.post_status = 'acf-disabled'))) AND ( ( ( wpml_translations.language_code = 'en' OR (\n
\t\t\t\t\twpml_translations.language_code = 'nl'\n
\t\t\t\t\tAND wp_itv_6_posts.post_type IN ( 'locations','team_members','projects','themas','products','blog_pt','news_pt' )\n
\t\t\t\t\tAND ( ( \n
\t\t\t( SELECT COUNT(element_id)\n
\t\t\t  FROM wp_itv_6_icl_translations\n
\t\t\t  WHERE trid = wpml_translations.trid\n
\t\t\t  AND language_code = 'en'\n
\t\t\t) = 0\n
\t\t\t ) OR ( \n
\t\t\t( SELECT COUNT(element_id)\n
\t\t\t\tFROM wp_itv_6_icl_translations t2\n
\t\t\t\tJOIN wp_itv_6_posts p ON p.id = t2.element_id\n
\t\t\t\tWHERE t2.trid = wpml_translations.trid\n
\t\t\t\tAND t2.language_code = 'en'\n
                AND (\n
                    p.post_status = 'publish' OR p.post_status = 'private' OR \n
                    ( p.post_type='attachment' AND p.post_status = 'inherit' )\n
                )\n
\t\t\t) = 0 ) ) \n
\t\t\t\t) ) AND wp_itv_6_posts.post_type  IN ('post','page','attachment','wp_block','wp_template','wp_template_part','wp_navigation','locations','team_members','projects','themas','products','blog_pt','news_pt' )  ) OR wp_itv_6_posts.post_type  NOT  IN ('post','page','attachment','wp_block','wp_template','wp_template_part','wp_navigation','locations','team_members','projects','themas','products','blog_pt','news_pt' )  )\n
\t\t\t\t\t \n
\t\t\t\t\t ORDER BY wp_itv_6_posts.post_date DESC\n
\t\t\t\t\t LIMIT 0, 5
"""
current_post
-1
before_loop
true
current_comment
-1
is_author
true
is_search
true
is_404
true
empty
Key Value
s
""
empty
empty
Key Value
wp-wpml_current_language
"en"
empty
Key Value
SERVER_SOFTWARE
"nginx/1.26.2"
REQUEST_URI
"/author/fyiadmin/?s="
MAGICK_TEMPORARY_PATH
"/www/idverdenl_614/tmp"
USER
"idverdenl"
HOME
"/www/idverdenl_614"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
HTTP_ACCEPT
"*/*"
HTTP_CDN_LOOP
"cloudflare; loops=1; subreqs=1"
HTTP_CF_EW_VIA
"15"
HTTP_CF_WORKER
"kinsta.cloud"
HTTP_CF_DEVICE_TYPE
"desktop"
HTTP_KI_BOT_ACTION
"throttled"
HTTP_KI_REALIP
"216.73.216.231"
HTTP_KI_REQUEST_COLO
"185"
HTTP_CF_IPCOUNTRY
"US"
HTTP_CF_VISITOR
"{\"scheme\":\"https\"}"
HTTP_KI_REQUEST_METAL
"134"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_X_KINSTA_EDGE_INCOMINGIP
"216.73.216.231"
HTTP_ACCEPT_ENCODING
"gzip, br"
HTTP_X_KINSTA_EDGE_LB
"KCW"
HTTP_CF_CONNECTING_IP
"216.73.216.231"
HTTP_X_FORWARDED_FOR
"216.73.216.231"
HTTP_CF_RAY
"95e843d260b977be-CMH"
SCRIPT_FILENAME
"/www/idverdenl_614/public/index.php"
REDIRECT_STATUS
"200"
WP_ENVIRONMENT_TYPE
"production"
KINSTA_CACHE_ZONE
"KINSTAWP"
SERVER_NAME
"www.idverde.nl"
SERVER_PORT
"443"
SERVER_ADDR
"10.0.11.75"
REMOTE_PORT
""
REMOTE_ADDR
"216.73.216.231"
GATEWAY_INTERFACE
"CGI/1.1"
HTTP_HOST
"dutchtrig.com"
HTTPS
"on"
SERVER_PROTOCOL
"HTTP/2.0"
DOCUMENT_ROOT
"/www/idverdenl_614/public"
DOCUMENT_URI
"/index.php"
SCRIPT_NAME
"/index.php"
CONTENT_LENGTH
""
CONTENT_TYPE
""
REQUEST_METHOD
"GET"
QUERY_STRING
"s="
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1752404304.0455
REQUEST_TIME
1752404304
empty
0. Whoops\Handler\PrettyPageHandler