• Hi RateMyAgent team,

    I am getting a PHP fatal error on my site when using the RateMyAgent Official plugin’s Review Carousel with Elementor.

    Error log:

    PHP Fatal error: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, stdClass given in /home/socialrealty/public_html/wp-content/plugins/ratemyagent-official/blocks/ReviewCarousel/Shortcode/ReviewCarouselShortcode.php:39
    Stack trace (truncated):
    #0 /home/socialrealty/public_html/wp-content/plugins/ratemyagent-official/blocks/ReviewCarousel/Shortcode/ReviewCarouselShortcode.php(39): array_filter()
    #1 /home/socialrealty/public_html/wp-includes/shortcodes.php(434): Rma\Blocks\ReviewCarousel\Shortcode\ReviewCarouselShortcode->render()
    #2 [internal function]: do_shortcode_tag()

    #27 {main}
    thrown in /home/socialrealty/public_html/wp-content/plugins/ratemyagent-official/blocks/ReviewCarousel/Shortcode/ReviewCarouselShortcode.php on line 39

    Environment details:

    Site: https://socialrealty.au/

    Plugin: RateMyAgent Official (version: [1.6.4])

    WordPress version: [6.8.3]

    PHP version: [8.3]

    Page builder: Elementor (using the Shortcode widget to render the Review Carousel)

    When the Review Carousel shortcode/widget is active on the page, the site hits this fatal error; disabling the RateMyAgent Official plugin (or removing the Review Carousel from the page) resolves it.

    It looks like array_filter() in ReviewCarouselShortcode::render() is being called on a stdClass rather than an array. Could you please:

    Confirm this is a known issue or provide a patched version, and

    Add a guard or cast so the code safely handles non‑array responses from the API?

    Happy to provide any additional logs or a test page if needed.

    Thanks in advance for your help.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Tom Stones

    (@tbstones)

    Hey @lightstyle,

    Can you share the short code you are using?

    Thread Starter lightstyle

    (@lightstyle)

    Sure, FIY everytjing was working fine until Thursday 27/11 and is the same setup I’ve used for a couple of years.

    [rma-review-carousel template_type=”full” profile_type=”agency” profile_code=”au431″] [/rma-review-carousel]

    Plugin Author Tom Stones

    (@tbstones)

    Ah! thanks for letting me know. We haven’t put out a release, so it looks it will be incompatibility with PHP or WordPress.

    I will test against your specific version and get back to you

    Plugin Author Tom Stones

    (@tbstones)

    I am testing locally with php 8.3 and wp 6.8.3 and the block and shortcode are working fine.

    Was there a change in elementor version?

    • This reply was modified 4 months, 3 weeks ago by Tom Stones.
Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.