• Resolved ProteusFR

    (@proteusfr)


    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.29

    By 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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Varun Dubey

    (@vapvarun)

    @proteusfr sorry for the trouble, we have fixed in our development version and it will be released today.

    Plugin Contributor Varun Dubey

    (@vapvarun)

    @proteusfr both issues are resolved, we have pushed a new update.
    Please let us know if you still face any issues.

    Thread Starter ProteusFR

    (@proteusfr)

    @vapvarun
    1. no more php errors in pages or posts saved as draft. The shortcode does not appear anymore when writing posts or pages. The last update clears that point.
    2. The /groups/type/group_type url is now back, as well as the possibility to place a shortcode in a page to list groups for a specific group type.
    Thank you for this quick update!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP Error with draft in posts and pages’ is closed to new replies.