wordpress - Elementor error when Editing the Page Warning: Undefined array key "pro_widgets" in *wp-contentpluginselementorincludesapi.php on line 160
Get the solution ↓↓↓When I try to edit the page with elementor I get this error and the pro widgets isn't showing (I have the free elementor but planning on getting the pro)
I updated the elementor plugin and theme and tried to uninstall some plugins but its still not working
Answer
Solution:
Please try to switch them and check.
There may be a file conflict issue. Make sure your WP setup and plugin are with the latest version
Answer
Solution:
What you need in api.php line 160 is to check whether a variable is set and is not NULL using isset.
Inside the get_promotion_widget() function change it to like this:
public static function get_promotion_widgets() {
$data = self::get_info_data();
if ( ! isset( $data['pro_widgets'] ) ) {
$data['pro_widgets'] = [];
}
return $data['pro_widgets'];
}
And the warning should be gone.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: malformed utf-8 characters, possibly incorrectly encoded
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.