Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

Two error in shortcode_functions.php

Дата публикации: 13-08-2026 18:56:53

New to WP and new to Pagelayer / PopularFX.  Getting two new errors on every page.  Did verify error occurs with all other plugins disabled.  Errors are:
Warning: Undefined array key "primary" in /home/cincymoo/public_html/wp-content/plugins/pagelayer/main/shortcode_functions.php on line 949
Warning: Trying to access array offset on null in /home/cincymoo/public_html/wp-content/plugins/pagelayer/main/shortcode_functions.php on line 949
Code from line 933 - 956 is below if it helps:
// Apply global typo
    foreach($pagelayer->typo_props as $typo => $typo_key){
       
        // Backspace compatibility for normal array and if is set global in '$' format like $primary
        if(is_array($value) && !empty($value[$typo])){
            $val[$typo] = $value[$typo];
        }
       
        if(!empty($value[$typo_key])){
            $val[$typo] = $value[$typo_key];
        }
       
        if(!empty($val[$typo]) || empty($global_typo)){
            continue;
        }
       
        $global_val = $pagelayer->global_fonts[$global_typo]['value'];
       
        if( empty($global_val[$typo_key]) || (is_array($global_val[$typo_key]) && empty($global_val[$typo_key][$mk])) || (!is_array($global_val[$typo_key]) && !empty($_desk_global) && $mk != 'desktop') ){
            continue;
        }
       
        $val[$typo] = 'var(--pagelayer-font-'.$global_typo.'-'.$typo_key.')';
    }
Any ideas where to start or other lines should be looking at?

Основное содержимое страницы с новостью.

New to WP and new to Pagelayer / PopularFX.  Getting two new errors on every page.  Did verify error occurs with all other plugins disabled.  Errors are:

Warning: Undefined array key "primary" in /home/cincymoo/public_html/wp-content/plugins/pagelayer/main/shortcode_functions.php on line 949

Warning: Trying to access array offset on null in /home/cincymoo/public_html/wp-content/plugins/pagelayer/main/shortcode_functions.php on line 949

Code from line 933 - 956 is below if it helps:
// Apply global typo
    foreach($pagelayer->typo_props as $typo => $typo_key){
       
        // Backspace compatibility for normal array and if is set global in '$' format like $primary
        if(is_array($value) && !empty($value[$typo])){
            $val[$typo] = $value[$typo];
        }
       
        if(!empty($value[$typo_key])){
            $val[$typo] = $value[$typo_key];
        }
       
        if(!empty($val[$typo]) || empty($global_typo)){
            continue;
        }
       
        $global_val = $pagelayer->global_fonts[$global_typo]['value'];
       
        if( empty($global_val[$typo_key]) || (is_array($global_val[$typo_key]) && empty($global_val[$typo_key][$mk])) || (!is_array($global_val[$typo_key]) && !empty($_desk_global) && $mk != 'desktop') ){
            continue;
        }
       
        $val[$typo] = 'var(--pagelayer-font-'.$global_typo.'-'.$typo_key.')';
    }

Any ideas where to start or other lines should be looking at?

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1Reply To: Astra 4.13.7 fatal: WP_Error::get_data() class-astra-elementor.php:388016.4109-08-2026
2Reply To: Heading of a page invisible only on tablet0709-08-2026
3Pagelayer v2.1.8 Launched08.4417-08-2026
4Reply To: upgrqde from free to pro07.6222-12-2025
5Untitled Snippet012.4713-01-2026
6Security advisories: Drupal core - Moderately critical - Cross-site scripting - SA-CORE-2026-0110715-07-2026
7PTE Request for CHAPOTE BOT MANAGER0506-07-2026
8Hello Polyglots,0505-07-2026
9Пост №6288863011.9630-03-2026

Классификация: . Схожих патентов: 0. Схожих новостей: 9. Тональность: 0. Информативность: 6.9. Источник: www.softaculous.com.