Fatal error: Uncaught Error: Call to a member function get_products_data() on null in C:\Users\rafae\Local Sites\gravitykit\app\public\wp-content\plugins\gravityview\includes\plugin-and-theme-hooks\class-gravityview-object-placeholder.php:178
Stack trace:
#0 C:\Users\rafae\Local Sites\gravitykit\app\public\wp-content\plugins\gravityview\includes\plugin-and-theme-hooks\class-gravityview-object-placeholder.php(245): GravityView_Object_Placeholder->is_included()
#1 C:\Users\rafae\Local Sites\gravitykit\app\public\wp-content\plugins\gravityview\includes\plugin-and-theme-hooks\class-gravityview-plugin-hooks-gravityview-ratings-reviews.php(51): GravityView_Object_Placeholder->render()
#2 C:\Users\rafae\Local Sites\gravitykit\app\public\wp-content\plugins\gravityview\includes\admin\metaboxes\class-gravityview-metabox-tab.php(181): GravityView_Plugin_Hooks_GravityView_Ratings_Reviews->{closure}(Object(WP_Post), Array)
#3 C:\Users\rafae\Local Sites\gravitykit\app\public\wp-content\plugins\gravityview\includes\admin\metaboxes\views\gravityview-content.php(38): GravityView_Metabox_Tab->render(Object(WP_Post))
#4 C:\Users\rafae\Local Sites\gravitykit\app\public\wp-content\plugins\gravityview\includes\admin\metaboxes\class-gravityview-admin-metaboxes.php(108): include('C:\\Users\\rafae\\...')
#5 C:\Users\rafae\Local Sites\gravitykit\app\public\wp-admin\includes\template.php(1456): GravityView_Admin_Metaboxes->settings_metabox_render(Object(WP_Post), Array)
#6 C:\Users\rafae\Local Sites\gravitykit\app\public\wp-admin\edit-form-advanced.php(723): do_meta_boxes(Object(WP_Screen), 'normal', Object(WP_Post))
#7 C:\Users\rafae\Local Sites\gravitykit\app\public\wp-admin\post.php(206): require('C:\\Users\\rafae\\...')
#8 {main} thrown in C:\Users\rafae\Local Sites\gravitykit\app\public\wp-content\plugins\gravityview\includes\plugin-and-theme-hooks\class-gravityview-object-placeholder.php on line 178
Steps to reproduce:
1) Make sure Ratings and Reviews are not installed
2) Create e custom View Editor role or adjust the existing Editor role to have access to the View editor
3) Log with a user on that role
4) Access the View editor and scroll down to the View Settings
5) Click on the Ratings and Reviews tab
I suspect this happens for any plugins that we upsell there (Maps, DataTables, SEO).
If Ratings and Reviews is not installed, this Fatal Errors comes up for non-admin users, like an Editor with access to the View editor: https://docs.gravitykit.com/article/598-non-administrator-edit-view
Steps to reproduce: 1) Make sure Ratings and Reviews are not installed 2) Create e custom View Editor role or adjust the existing Editor role to have access to the View editor 3) Log with a user on that role 4) Access the View editor and scroll down to the View Settings 5) Click on the Ratings and Reviews tab
I suspect this happens for any plugins that we upsell there (Maps, DataTables, SEO).
Tested on GV 2.27.1