Welcome Guest. Please Login or Register  


You are here: Index > Pagelayer and PopularFX for WordPress > PopularFX > Topic : Two error in shortcode_functions.php



Threaded Mode | Print  

 Two error in shortcode_functions.php (0 Replies, Read 18 times)
Megaplay
Group: Member
Post Group: Newbie
Posts: 1
Status:
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?
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is August 13, 2026, 10:43 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:2.659