PHP error in the Reviews block on the home page

Hello,

My homepage and landing pages are not displayed correctly, it’s only the cover image that is displayed: https://photo-trips.com.

When I tried to change the pages, I received the following message from Wordpress:

Howdy!

WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

In this case, WordPress caught an error with one of your plugins, HivePress Reviews.

First, visit your website (https://photo-trips.com/) and check for any visible issues. Next, visit the page where the error was caught (https://photo-trips.com/wp-admin/post.php?post=13710&action=edit&classic-editor) and check for any visible issues.

Please contact your host for assistance with investigating this issue further.

When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.7.1
Active theme: RentalHive Child Theme (version 1.0)
Current plugin: HivePress Reviews (version 1.3.1)
PHP version 8.0.30

Error Details

An error of type E_ERROR was caused in line 8 of the file /homepages/9/d4297038929/htdocs/wordpress/wp-content/plugins/hivepress-reviews/templates/review/view/review-status-badge.php. Error message: Uncaught Error: Call to a member function get_user__id() on null in /homepages/9/d4297038929/htdocs/wordpress/wp-content/plugins/hivepress-reviews/templates/review/view/review-status-badge.php:8
Stack trace:
#0 /homepages/9/d4297038929/htdocs/wordpress/wp-content/plugins/hivepress/includes/blocks/class-part.php(61): include()
#1 /homepages/9/d4297038929/htdocs/wordpress/wp-content/plugins/hivepress/includes/blocks/class-container.php(109): HivePress\Blocks\Part->render()
#2 /homepages/9/d4297038929/htdocs/wordpress/wp-content/plugins/hivepress/includes/blocks/class-container.php(109): HivePress\Blocks\Container->render()
#3 /homepages/9/d4297038929/htdocs/wordpress/wp-content/plugins/hivepress/includes/blocks/class-container.php(109): HivePress\Blocks\Container->render()
#4 /homepages/9/d4297038929/htdocs/wordpress/wp-content/plugins/hivepress/includes/blocks/class-container.php(109): HivePress\Blocks\Container->render()
#5 /homepages/9/d4297038929/htdocs/wordpress/wp-content/plugins/hivepress/includes/blocks/class-container.php(109): HivePress\Blocks\Container->render()
#6 /homepages/9/d4297038929/htdocs/wordpress/wp-content/plugins/hivepress/includes/blocks/class-template.php(116): HivePress\Blocks\Container->render()
#7 /homepages/9/d4297038929/htdocs/wordpress/wp-content/plugins/hivepress-reviews/includes/blocks/class-reviews.php(230): HivePress\Blocks\Template->render()
#8 /homepages/9/d4297038929/htdocs/wordpress/wp-content/plugins/hivepress/includes/components/class-editor.php(414): HivePress\Blocks\Reviews->render()
#9 /homepages/9/d4297038929/htdocs/wordpress/wp-includes/class-wp-block.php(537): HivePress\Components\Editor->__call()
#10 /homepages/9/d4297038929/htdocs/wordpress/wp-includes/blocks.php(2190): WP_Block->render()
#11 /homepages/9/d4297038929/htdocs/wordpress/wp-includes/blocks.php(2242): render_block()
#12 /homepages/9/d4297038929/htdocs/wordpress/wp-includes/class-wp-hook.php(324): do_blocks()
#13 /homepages/9/d4297038929/htdocs/wordpress/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#14 /homepages/9/d4297038929/htdocs/wordpress/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1933): apply_filters()
#15 /homepages/9/d4297038929/htdocs/wordpress/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(635): WP_REST_Posts_Controller->prepare_item_for_response()
#16 /homepages/9/d4297038929/htdocs/wordpress/wp-includes/rest-api/class-wp-rest-server.php(1292): WP_REST_Posts_Controller->get_item()
#17 /homepages/9/d4297038929/htdocs/wordpress/wp-includes/rest-api/class-wp-rest-server.php(1125): WP_REST_Server->respond_to_request()
#18 /homepages/9/d4297038929/htdocs/wordpress/wp-includes/rest-api.php(576): WP_REST_Server->dispatch()
#19 /homepages/9/d4297038929/htdocs/wordpress/wp-includes/rest-api.php(2957): rest_do_request()
#20 [internal function]: rest_preload_api_request()
#21 /homepages/9/d4297038929/htdocs/wordpress/wp-includes/block-editor.php(756): array_reduce()
#22 /homepages/9/d4297038929/htdocs/wordpress/wp-admin/edit-form-blocks.php(77): block_editor_rest_api_preload()
#23 /homepages/9/d4297038929/htdocs/wordpress/wp-admin/post.php(187): require(‘/homepages/9/d4…’)
#24 {main}
thrown

Can you please let me know what’s the issue and how to fix it?

Thank you!

Hi,

Thank you for your feedback. We will test everything in more detail, and if the issue is confirmed, we will fix it by the end of the week. As a workaround, you can disable the Reviews extension for now or revert to the previous version.

I didn’t receive any answer for this. Can you help?

Hi,

Please make sure you have the latest version of Reviews, as we have fixed this issue.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.