Getting an error "Trying to access array offset on value of type null" for elementor elements

Hi, I am getting an error on my website for two certain elements: the BE iconbox and the BE List.

It says

Warning: Trying to access array offset on value of type null in /customers/f/3/e/samtpfoten-neukoelln.com/httpd.www/wp-content/themes/betheme/functions/plugins/elementor/class-mfn-elementor-widget-icon-box.php on line 212

Warning: Trying to access array offset on value of type null in /customers/f/3/e/samtpfoten-neukoelln.com/httpd.www/wp-content/themes/betheme/functions/plugins/elementor/class-mfn-elementor-widget-list.php on line 165

Here's the pages I see it:

https://www.samtpfoten-neukoelln.com/helfen-aber-wie/ and https://www.samtpfoten-neukoelln.com/gesundheit-impfen/

Can you please help me out? PHP version is 8.1 (cannot go lower unfortunately).

Thanks a lot!

Comments

  • Hi,

    It will be fixed in the next update.

    If you need to fix it now, please, edit class-mfn-elementor-widget-list.php and class-mfn-elementor-widget-icon-box.php files, and:

    find:
    
    $settings['icon'] = $settings['icon']['value'];
    $settings['image'] = $settings['image']['url'];
    
    replace:
    
    if( ! empty($settings['icon']['value']) ){
    	$settings['icon'] = $settings['icon']['value'];
    }
    
    if( ! empty($settings['image']['url']) ){
    	$settings['image'] = $settings['image']['url'];
    }
    

    Best regards

  • Wow, thanks so much, great support so far, 5 star rating incoming! :)

  • Glad I could help. ?

    If you have any other questions or problems, feel free to ask.


    Best regards

Sign In or Register to comment.