skip to Main Content

Im using elementor in wordpress and Im facing these errors:

Warning: Undefined array key "margin_widescreen" in C:xampphtdocsinnstylesalonwp-contentpluginselementorcorefilescssbase.php on line 776

    Warning: Undefined array key "margin_laptop" in C:xampphtdocsinnstylesalonwp-contentpluginselementorcorefilescssbase.php on line 776
    
    Warning: Undefined array key "margin_tablet" in C:xampphtdocsinnstylesalonwp-contentpluginselementorcorefilescssbase.php on line 776
    
    Warning: Undefined array key "margin_mobile" in C:xampphtdocsinnstylesalonwp-contentpluginselementorcorefilescssbase.php on line 776
    
    Warning: Undefined array key "padding_widescreen" in C:xampphtdocsinnstylesalonwp-contentpluginselementorcorefilescssbase.php on line 776
    
    Warning: Undefined array key "padding_laptop" in C:xampphtdocsinnstylesalonwp-contentpluginselementorcorefilescssbase.php on line 776
    
    Warning: Undefined array key "padding_tablet" in C:xampphtdocsinnstylesalonwp-contentpluginselementorcorefilescssbase.php on line 776
    
    Warning: Undefined array key "padding_mobile" in C:xampphtdocsinnstylesalonwp-contentpluginselementorcorefilescssbase.php on line 776`

the error will be gone after the first reload, meaning that I wont be able to see it once I refresh the page or enter the page for the second time

Im using PHP Version 8.2.4 with wordpress version 6.3

I tried increasing the memory size for WordPress in the custom codes section of wp_config.php
define('WP_MEMORY_LIMIT', '512M');
still did not work

I tried deactivating all my plugins and activating them one by one and when I leave elementorKit lite deactivated, the error wouldn’t appear.
but I need that plugin, and I was not facing this earlier; so there must be another way.

2

Answers


  1. Try disabling one page scroll in elementkits settings, fixed the job for me.

    Login or Signup to reply.
  2. If you are using onepage scroll and don’t want to disable then you can fix that error by replacing get_page_setting method at wp-content/plugins/elementskit-lite/modules/onepage-scroll/init.php with below method.

    public static function get_page_setting( $id ) {
        $post_id = get_the_ID();
        $page_settings_manager = ElementorCoreSettingsManager::get_settings_managers( 'page' );
        $page_settings   = $page_settings_manager->get_model( $post_id )->get_data('settings');
        return isset($page_settings[$id]) ? $page_settings[$id] : false;
    }
    

    Otherwise you can disable onepage scroll

    We hope the ElementsKit team will release a fix soon.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search