• Hi

    When I activate the plugin I see the following:

    Notice: add_submenu_page was called incorrectly. 
    The seventh parameter passed to add_submenu_page() should be an integer representing menu position. 
    Please see Debugging in WordPress for more information. 
    (This message was added in version 5.3.0.) 
Viewing 1 replies (of 1 total)
  • Until they patch this, you can go into
    <yourpath>/wp-content/plugins/cherry-team-members/admin/includes/class-cherry-team-admin-columns.php

    Find this block of code:
    ` /**
    * [render_page description]
    * @return [type] [description]
    */
    public function render_page() {
    add_submenu_page(
    ‘edit.php?post_type=’ . cherry_team_members_init()->name(),
    esc_html__( ‘Cherry Team Options’, ‘cherry-team’ ),
    esc_html__( ‘Settings’, ‘cherry-team’ ),
    ‘edit_theme_options’,
    $this->page_slug,
    array( $this, ‘options_page’ ),
    ”,
    64
    );
    }
    `

    and fix line 259 by removing the ”, so that 64 is the 7th parameter.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP issue on activation’ is closed to new replies.