Deprecated: The PSR-0 `Requests_...` class names in the Requests library are deprecated. Switch to the PSR-4 `WpOrg\Requests\...` class names at your earliest convenience. in /data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-includes/class-requests.php on line 24

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the woocommerce-multilingual domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-includes/functions.php on line 6131

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the facebook-for-woocommerce domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-includes/functions.php on line 6131

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the woocommerce domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-includes/functions.php on line 6131

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-includes/functions.php on line 6131
Whoops! There was an error.
Error
Call to undefined method WP_Textdomain_Registry::reset() Error thrown with message "Call to undefined method WP_Textdomain_Registry::reset()" Stacktrace: #17 Error in /data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php:139 #16 WPML\ST\MO\Hooks\LanguageSwitch:resetTranslationAvailabilityInformation in /data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php:119 #15 WPML\ST\MO\Hooks\LanguageSwitch:changeMoObjects in /data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php:73 #14 WPML\ST\MO\Hooks\LanguageSwitch:switchToLocale in /data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php:48 #13 WPML\ST\MO\Hooks\LanguageSwitch:languageHasSwitched in /data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-includes/class-wp-hook.php:343 #12 WP_Hook:apply_filters in /data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-includes/class-wp-hook.php:365 #11 WP_Hook:do_action in /data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-includes/plugin.php:522 #10 do_action in /data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php:1167 #9 SitePress:switch_lang in /data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php:2741 #8 SitePress:get_ls_languages in /data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-content/plugins/sitepress-multilingual-cms/classes/seo/class-wpml-seo-headlangs.php:45 #7 WPML_SEO_HeadLangs:head_langs in /data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-includes/class-wp-hook.php:341 #6 WP_Hook:apply_filters in /data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-includes/class-wp-hook.php:365 #5 WP_Hook:do_action in /data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-includes/plugin.php:522 #4 do_action in /data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-includes/general-template.php:3197 #3 wp_head in /data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-content/themes/mstein/index.php:7 #2 include in /data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-includes/template-loader.php:132 #1 require_once in /data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-blog-header.php:19 #0 require in /data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/index.php:17
17
Error
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php139
16
WPML\ST\MO\Hooks\LanguageSwitch resetTranslationAvailabilityInformation
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php119
15
WPML\ST\MO\Hooks\LanguageSwitch changeMoObjects
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php73
14
WPML\ST\MO\Hooks\LanguageSwitch switchToLocale
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php48
13
WPML\ST\MO\Hooks\LanguageSwitch languageHasSwitched
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-includes/class-wp-hook.php343
12
WP_Hook apply_filters
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-includes/class-wp-hook.php365
11
WP_Hook do_action
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-includes/plugin.php522
10
do_action
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php1167
9
SitePress switch_lang
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php2741
8
SitePress get_ls_languages
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-content/plugins/sitepress-multilingual-cms/classes/seo/class-wpml-seo-headlangs.php45
7
WPML_SEO_HeadLangs head_langs
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-includes/class-wp-hook.php341
6
WP_Hook apply_filters
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-includes/class-wp-hook.php365
5
WP_Hook do_action
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-includes/plugin.php522
4
do_action
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-includes/general-template.php3197
3
wp_head
…/index.php7
2
include
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-includes/template-loader.php132
1
require_once
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-blog-header.php19
0
require
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/index.php17
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php
 
        $cachedMoObjects = isset( self::$globals_cache[ $new_locale ]['l10n'] )
            ? self::$globals_cache[ $new_locale ]['l10n']
            : [];
 
        /**
         * The JustInTimeMO objects will replaced themselves on the fly
         * by the legacy default MO object if a string is translated.
         * This is because the function "_load_textdomain_just_in_time"
         * does not support the default domain and MO files outside the
         * "wp-content/languages" folder.
         */
        $GLOBALS['l10n'] = $this->jit_mo_factory->get( $new_locale, $this->getUnloadedDomains(), $cachedMoObjects );
    }
 
    private function resetTranslationAvailabilityInformation() {
        global $wp_textdomain_registry;
 
        if ( $wp_textdomain_registry ) {
            $wp_textdomain_registry->reset();
        } elseif ( function_exists( '_get_path_to_translation' ) ) {
            _get_path_to_translation( null, true );
        }
    }
 
    /**
     * @param string $locale
     *
     * @return string
     */
    public function filterLocale( $locale ) {
        $currentLocale = $this->getCurrentLocale();
 
        if ( $currentLocale ) {
            return $currentLocale;
        }
 
        return $locale;
    }
 
Arguments
  1. "Call to undefined method WP_Textdomain_Registry::reset()"
    
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php
     * @param string $new_locale
     */
    private function changeWpLocale( $new_locale ) {
        if ( isset( self::$globals_cache[ $new_locale ]['wp_locale'] ) ) {
            $GLOBALS['wp_locale'] = self::$globals_cache[ $new_locale ]['wp_locale'];
        } else {
            /**
             * WPLocaleProxy is a wrapper of \WP_Locale with a kind of lazy initialization
             * to avoid loading the default domain for strings that
             * we don't use in this transitory language.
             */
            $GLOBALS['wp_locale'] = new WPLocaleProxy();
        }
    }
 
    /**
     * @param string $new_locale
     */
    private function changeMoObjects( $new_locale ) {
        $this->resetTranslationAvailabilityInformation();
 
        $cachedMoObjects = isset( self::$globals_cache[ $new_locale ]['l10n'] )
            ? self::$globals_cache[ $new_locale ]['l10n']
            : [];
 
        /**
         * The JustInTimeMO objects will replaced themselves on the fly
         * by the legacy default MO object if a string is translated.
         * This is because the function "_load_textdomain_just_in_time"
         * does not support the default domain and MO files outside the
         * "wp-content/languages" folder.
         */
        $GLOBALS['l10n'] = $this->jit_mo_factory->get( $new_locale, $this->getUnloadedDomains(), $cachedMoObjects );
    }
 
    private function resetTranslationAvailabilityInformation() {
        global $wp_textdomain_registry;
 
        if ( $wp_textdomain_registry ) {
            $wp_textdomain_registry->reset();
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php
            $this->setCurrentLocale( $this->language_resolution->getCurrentLocale() );
        }
    }
 
    /**
     * This method will act as the WP Core function `switch_to_locale`,
     * but in a more efficient way. It will avoid to instantly load
     * the domains loaded in the previous locale. Instead, it will let
     * the domains be loaded via the "just in time" function.
     *
     * @param string $new_locale
     */
    public function switchToLocale( $new_locale ) {
        if ( $new_locale === $this->getCurrentLocale() ) {
            return;
        }
 
        $this->updateCurrentGlobalsCache();
        $this->changeWpLocale( $new_locale );
        $this->changeMoObjects( $new_locale );
        $this->setCurrentLocale( $new_locale );
    }
 
    /**
     * @param string|null $locale
     */
    public static function resetCache( $locale = null ) {
        self::$current_locale = $locale;
        self::$globals_cache = [];
    }
 
    /**
     * We need to take a new copy of the current locale globals
     * because some domains could have been added with the "just in time"
     * mechanism.
     */
    private function updateCurrentGlobalsCache() {
        $cache = [
            'wp_locale' => isset( $GLOBALS['wp_locale'] ) ? $GLOBALS['wp_locale'] : null,
            'l10n'      => isset( $GLOBALS['l10n'] ) ? (array) $GLOBALS['l10n'] : [],
Arguments
  1. "sk_SK"
    
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php
    }
 
    public function add_hooks() {
        add_action( 'wpml_language_has_switched', [ $this, 'languageHasSwitched' ] );
    }
 
    /** @param string $locale */
    private function setCurrentLocale( $locale ) {
        self::$current_locale = $locale;
    }
 
    /** @return string */
    public function getCurrentLocale() {
        return self::$current_locale;
    }
 
    public function languageHasSwitched() {
        $this->initCurrentLocale();
        $new_locale = $this->language_resolution->getCurrentLocale();
        $this->switchToLocale( $new_locale );
    }
 
    public function initCurrentLocale() {
        if ( ! $this->getCurrentLocale() ) {
            add_filter( 'locale', [ $this, 'filterLocale' ], PHP_INT_MAX );
            $this->setCurrentLocale( $this->language_resolution->getCurrentLocale() );
        }
    }
 
    /**
     * This method will act as the WP Core function `switch_to_locale`,
     * but in a more efficient way. It will avoid to instantly load
     * the domains loaded in the previous locale. Instead, it will let
     * the domains be loaded via the "just in time" function.
     *
     * @param string $new_locale
     */
    public function switchToLocale( $new_locale ) {
        if ( $new_locale === $this->getCurrentLocale() ) {
            return;
Arguments
  1. "sk_SK"
    
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-includes/class-wp-hook.php
 
        $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.
     */
    public function do_action( $args ) {
Arguments
  1. "sk"
    
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/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:3 [
      0 => "sk"
      1 => false
      2 => "en"
    ]
    
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/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:3 [
      0 => "sk"
      1 => false
      2 => "en"
    ]
    
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php
            $this->set_this_lang( $this->original_language );
            if ( ! empty( $this->original_language_cookie ) ) {
                $wpml_request_handler->set_language_cookie( $this->original_language_cookie );
                $this->original_language_cookie = false;
            }
        } else {
            if ( $code === 'all' || in_array( $code, $wpml_language_resolution->get_active_language_codes(), true ) ) {
                $this->set_this_lang( $code );
            }
            if ( $cookie_lang ) {
                $this->original_language_cookie = $wpml_request_handler->get_cookie_lang();
                $wpml_request_handler->set_language_cookie( $code );
            }
        }
        if ( $code ) {
            $GLOBALS['icl_language_switched'] = true;
        } else {
            unset( $GLOBALS['icl_language_switched'] );
        }
        do_action( 'wpml_language_has_switched', $code, $cookie_lang, $this->original_language );
    }
 
    function set_default_language( $code ) {
        $previous_default = $this->get_setting( 'default_language' );
        $this->set_setting( 'default_language', $code );
        $this->set_setting( 'admin_default_language', $code );
        $this->save_settings();
 
        do_action( 'icl_after_set_default_language', $code, $previous_default );
 
        // change WP locale
        $locale = $this->get_locale( $code );
        if ( $locale ) {
            update_option( 'WPLANG', $locale );
        }
 
        $user_language = new WPML_User_Language( $this );
        $user_language->sync_default_admin_user_languages();
 
        return $code !== 'en' && ! file_exists( WP_LANG_DIR . '/' . $locale . '.mo' ) ? 1 : true;
Arguments
  1. "wpml_language_has_switched"
    
  2. "sk"
    
  3. false
    
  4. "en"
    
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php
            $_wp_query_back,
            $this->wp_query
        );
 
        $display_as_translated_ls_link = new WPML_LS_Display_As_Translated_Link(
            $this,
            $wpml_url_converter->get_strategy(),
            $this->wp_query,
            new WPML_Translation_Element_Factory( $this )
        );
 
        // 2. determine url
        foreach ( $w_active_languages as $k => $lang ) {
            $skip_lang = false;
            if ( is_singular()
                 || ( isset( $_wp_query_back->query['name'] ) && isset( $_wp_query_back->query['post_type'] ) )
                 || $this->is_page_query()
            ) {
                $this_lang_tmp = $this->this_lang;
                $this->switch_lang( $lang['code'] );
                $lang_page_on_front  = get_option( 'page_on_front' );
                $lang_page_for_posts = get_option( 'page_for_posts' );
                if ( $lang_page_on_front ) {
                    $lang_page_on_front = icl_object_id( $lang_page_on_front, 'page', false, $lang['code'] );
                }
                if ( $lang_page_for_posts ) {
                    $lang_page_for_posts = icl_object_id( $lang_page_for_posts, 'page', false, $lang['code'] );
                }
                if ( 'page' === get_option( 'show_on_front' ) && ! empty( $translations[ $lang['code'] ] ) && $translations[ $lang['code'] ]->element_id == $lang_page_on_front ) {
                    $lang['translated_url'] = $this->language_url( $lang['code'] );
                } elseif ( 'page' == get_option( 'show_on_front' ) && ! empty( $translations[ $lang['code'] ] ) && $translations[ $lang['code'] ]->element_id && $translations[ $lang['code'] ]->element_id == $lang_page_for_posts ) {
                    if ( $lang_page_for_posts ) {
                        $lang['translated_url'] = get_permalink( $lang_page_for_posts );
                    } else {
                        $lang['translated_url'] = $this->language_url( $lang['code'] );
                    }
                } else {
                    if ( ! empty( $translations[ $lang['code'] ] ) && isset( $translations[ $lang['code'] ]->post_title ) ) {
                        $this->switch_lang( $lang['code'] );
                        $lang['translated_url'] = get_permalink( $translations[ $lang['code'] ]->element_id );
Arguments
  1. "sk"
    
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/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
    ]
    
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/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. ""
    
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/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 => ""
    ]
    
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/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 => ""
    ]
    
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/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"
    
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-content/themes/mstein/index.php
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
    <?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
    <?php wp_body_open(); ?>
    <?php do_action('get_header'); ?>
 
    <?php echo \Roots\view(\Roots\app('sage.view'), \Roots\app('sage.data'))->render(); ?>
 
    <?php do_action('get_footer'); ?>
    <?php wp_footer(); ?>
</body>
</html>
 
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-includes/template-loader.php
     */
    $template   = apply_filters( 'template_include', $template );
    $is_stringy = is_string( $template ) || ( is_object( $template ) && method_exists( $template, '__toString' ) );
    $template   = $is_stringy ? realpath( (string) $template ) : null;
    if (
        is_string( $template ) &&
        ( str_ends_with( $template, '.php' ) || str_ends_with( $template, '.html' ) ) &&
        is_file( $template ) &&
        is_readable( $template )
    ) {
        /**
         * Fires immediately before including the template.
         *
         * @since 6.9.0
         *
         * @param string $template The path of the template about to be included.
         */
        do_action( 'wp_before_include_template', $template );
 
        include $template;
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
}
 
Arguments
  1. "/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-content/themes/mstein/index.php"
    
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/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. "/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-includes/template-loader.php"
    
/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/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. "/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
Key Value
wp-wpml_current_language
"en"
empty
Key Value
SERVER_SOFTWARE
"Apache"
REQUEST_URI
"/en/produkt/spooncarving-knife-m-stein-left-handed-diameter-50mm/"
GDFONTPATH
".:/usr/X11R6/lib/X11/fonts/TrueType:/usr/X11R6/lib/X11/fonts/truetype:/usr/X11R6/lib/X11/fonts/TTF:/usr/share/fonts/TrueType:/usr/share/fonts/truetype:/usr/openwin/lib/X11/fonts/TrueType:/usr/X11R6/lib/X11/fonts/Type1:/usr/lib/X11/fonts/Type1:/usr/openwin/lib/X11/fonts/Type1"
USER
"uid57051"
HOME
"/tmp"
SCRIPT_NAME
"/index.php"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/en/produkt/spooncarving-knife-m-stein-left-handed-diameter-50mm/"
REMOTE_PORT
"53312"
SCRIPT_FILENAME
"/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/index.php"
SERVER_ADMIN
"admin@websupport.sk"
CONTEXT_DOCUMENT_ROOT
"/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"http"
DOCUMENT_ROOT
"/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/mstein.eu/sub/new2021/"
REMOTE_ADDR
"216.73.216.33"
SERVER_PORT
"80"
SERVER_ADDR
"10.31.36.16"
SERVER_NAME
"new2021.mstein.eu"
SERVER_SIGNATURE
""
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
HTTP_MAX_FORWARDS
"7"
HTTP_X_PHP_REQUESTID
"65d5dd24cbf2b38d49f7d8f881cc315d"
HTTP_X_PHP_UPSTREAM
"r4-u36-php73-fpm16"
HTTP_WS_GEO_COUNTRY
"US"
HTTP_CACHE_CONTROL
"max-age=259200"
HTTP_VIA
"1.1 squid-proxy-5b96dc6d46-9rvq7 (squid/6.13)"
HTTP_ACCEPT_ENCODING
"gzip, br, zstd, deflate"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
HTTP_ACCEPT
"*/*"
HTTP_WS_CLIENT_PORT
"7007"
HTTP_X_PROXY_IP
"10.20.6.1"
HTTP_X_FORWARDED_PROTO
"http"
HTTP_X_FORWARDED_FOR
"10.3.9.106, 216.73.216.33"
HTTP_X_REAL_IP
"216.73.216.33"
HTTP_HOST
"new2021.mstein.eu"
proxy-nokeepalive
"1"
filter-errordocs
""
proxy-initial-not-pooled
"1"
HTTP_AUTHORIZATION
""
UNIQUE_ID
"asoy8HeyvfILKxPFytuuogAAABQ"
GEOIP_COUNTRY_CODE
"US"
REDIRECT_STATUS
"200"
REDIRECT_filter-errordocs
""
REDIRECT_proxy-initial-not-pooled
"1"
REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_PHP_ADMIN_VALUES
";max_execution_time=600;memory_limit=512M;upload_max_filesize=256M;post_max_size=512M"
REDIRECT_PHP_VALUES
"memcache.prefix_static_key=OonOeIBMwaTr;memcache.session_prefix_static_key=OonOeIBMwaTr;mysql.default_socket=/tmp/mariadb114.sock;mysqli.default_socket=/tmp/mariadb114.sock;pdo_mysql.default_socket=/tmp/mariadb114.sock;sys_temp_dir=/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/.tmp;upload_tmp_dir=/data/7/7/77ca334a-709b-4d46-9bb5-8cb6b6696236/.tmp/upload"
REDIRECT_UNIQUE_ID
"asoy8HeyvfILKxPFytuuogAAABQ"
REDIRECT_GEOIP_COUNTRY_CODE
"US"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1791636208.51
REQUEST_TIME
1791636208
argv
[]
argc
0
empty
0. Whoops\Handler\PrettyPageHandler