Cannot use object of type stdClass as array
-
Hi,
We are using WPP with Elementor. We are facing two issues:
1. When saving the post in Elementor editor, we get a 500 Server Error.
2. When editing the WPP widget, we get a 500 Server Error in Network Tab (Google Chrome) and the widget control panel just keeps on spinning.WPP generates the following error logs:
Fatal error: Uncaught Error: Cannot use object of type stdClass as array in ###/plugins/wordpress-popular-posts/src/Query.php:99
Stack Trace WordPressPopularPosts\Query->build_query() ###/plugins/wordpress-popular-posts/src/Query.php:53 WordPressPopularPosts\Query->__construct(Array) ###/plugins/wordpress-popular-posts/src/Widget/Widget.php:400 WordPressPopularPosts\Widget\Widget->get_popular(Array) ###/plugins/wordpress-popular-posts/src/Widget/Widget.php:167 WordPressPopularPosts\Widget\Widget->widget(Array, Array) ###/plugins/elementor/includes/widgets/wordpress.php:271 Elementor\Widget_WordPress->render() ###/plugins/elementor/includes/base/controls-stack.php:1892 ###/plugi in ###/plugins/wordpress-popular-posts/src/Query.php on line 99
I have submitted a ticket to Elementor support as well.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Cannot use object of type stdClass as array’ is closed to new replies.