• Resolved Junaid Ahmed

    (@junaidkbr)


    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)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @junaidkbr,

    Unfortunately in this case the error message alone doesn’t tell me much so I’ll need more details (like reproduction steps, active plugins, PHP version, etc.) so I can help.

    Thread Starter Junaid Ahmed

    (@junaidkbr)

    Update:

    So, it looks like the error occurs only when WP Offload Media (the pro version) is active. It’s weird that the error logs don’t show anything related to WPOM. I’ll write to them as well.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Alright. Since that plugin is a paid one let’s hope the Delicious Brains team can chime in and share more details about the issue. If it’s something I can fix on my side I’ll gladly help.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Since there has been no updates I assume that the issue has been fixed and so I’m marking this topic as resolved.

    OP if you still need help with this please feel free to leave a comment below.

    Thread Starter Junaid Ahmed

    (@junaidkbr)

    Hi Hector,

    Thanks for following up. We took the issue to DeliciousBrains and they owned it. I believe they have released a patch in their most recent version WP Offload Media 2.5.6. https://deliciousbrains.com/wp-offload-media/whats-new/.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Awesome, thanks for the update. Glad to know that the issue has been resolved!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cannot use object of type stdClass as array’ is closed to new replies.