I have the same problem since elementor’s last update!
“Undefined array key “icon” in […] on line 695 and 708″
The icon is diesplayed okay but the error message shows up on my website, which is detrimental to it’s appearance… need to be fixed asap
Hey guys, I’m also having a problem with the icon box after the latest update.
I got the following message displayed directly on a live website inside the icon box:
“Undefined array key “icon” in […] on line 695
The content (title and some text) generated in the icon box (through custom fields created with ACF) is fine and looks as it should.
Any ideas how to fix this?
Hi everyone,
I just figured that I’m having the same issue. I rolled Elementor to the previous version and it works fine.
Undefined array key “icon” in \wp-content\plugins\elementor\includes\widgets\icon-box.php on line 695
Undefined array key “icon” in \wp-content\plugins\elementor\includes\widgets\icon-box.php on line 708
Hi,
We are also facing same set of issue after the recent update.
Pls. Look into urgent.
Katie
(@katiethecreative)
Hi!
This probably will be fixed in the next update but until then you can do it manually. So you go to into FTP, then to Elementor -> includes -> widgets ->icon-box.php
In line 695 you replace the current code with:
$has_icon = ! empty( $settings['icon'] ) || ! empty( $settings['selected_icon']['value'] );
In or rather around line 708, please replace the whole current if statement with:
if ( $has_icon ) {
if ( isset($settings['icon']) && !empty($settings['icon']) ) {
$this->add_render_attribute( 'i', 'class', $settings['icon'] );
}
$this->add_render_attribute( 'i', 'aria-hidden', 'true' );
}
-
This reply was modified 2 years, 1 month ago by
Katie.
Hi there.
I hope this message finds you well.
I wanted to address the recent PHP warnings encountered on your WordPress site. This happens with PHP version 8 and higher and Debug mode enabled.
It’s important to note that warnings, in the context of WordPress, serve as notifications about potential issues but do not disrupt the functionality of your production site.
Our team is actively engaged in resolving this issue to ensure a seamless experience for you.
Since Elementor doesn’t officially support PHP 8+, I recommend temporarily downgrading to the stable version 7.4 to check if the issue persists. To avoid any immediate impact, you can disable WP debug mode as another temporary measure.
Add this line to their wp-config.php file to hide the warnings: https://prnt.sc/7namXXAU1evo
define('WP_DEBUG_DISPLAY', false)
Rest assured, these warnings do not affect your site’s stability or performance.
You can track the progress and implementation of changes in our plugin updates by visiting our changelog page.
I sincerely apologize for any inconvenience this may have caused.
Thank you and have a great day!
Plugin Support
Rica
(@ricav)
Due to inactivity this ticket has been closed.
Hi there,
some icon boxes in some pages still display the same error when I visit the page with incognito mode, and only when I visit the page in incognito mode, any idea why this happens and how I may solve the problem?