PHP Error with draft in posts and pages
-
When writing a post / page, then saving it as a draft, or reading a draft page, there is a php error appearing in the shortcode area:
Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /home/users2/o/xxx/www/website_home_dir/www/wp-content/plugins/bp-create-group-type/admin/class-bp-add-group-types-admin.php:730 Stack trace: #0 /home/users2/o/xxx/www/website_home_dir/www/wp-content/plugins/bp-create-group-type/admin/class-bp-add-group-types-admin.php(691): Bp_Add_Group_Types_Admin->bp_get_group_type_key('1456') #1 /home/users2/o/xxx/www/website_home_dir/www/wp-admin/includes/template.php(1345): Bp_Add_Group_Types_Admin->bp_group_type_shortcode_meta_box(Object(WP_Post), Array) #2 /home/users2/o/xxx/www/website_home_dir/www/wp-admin/edit-form-advanced.php(677): do_meta_boxes(Object(WP_Screen), 'normal', Object(WP_Post)) #3 /home/users2/o/xxx/www/website_home_dir/www/wp-admin/post.php(206): require('/home/users2/o/...') #4 {main} thrown in /home/users2/o/xxx/www/website_home_dir/www/wp-content/plugins/bp-create-group-type/admin/class-bp-add-group-types-admin.php on line 730
Some informations:
WordPress version 5.4.1
Twenty Eleven (child) (version 1.0)
BuddyPress Create Group Types (version 2.2.0)
PHP version 7.2.29By the way, previous urls like /groups/type/group_type do not work as before, and we have to place a shortcode into a new page in order to have the list of entries in a group type. Quite annoying for indexing purposes. If we to agree with this new behavior, is it possible to have a way to sort groups (with for example options in the shortcode?)
Best regards
The topic ‘PHP Error with draft in posts and pages’ is closed to new replies.