Open basedir restriction
-
Hello,
Your plugin wrongly register the admin menu by giving a full URL (https://xxx) instead of only the admin relative url which leads to error on an install with open basedir restriction as the menu-header.php file use “file_exists” method during the admin menu setup.
Please update your plugin from
app/Entities/AdminMenu/AdminSubmenu.php:49 $submenu[$this->slug][50] = [$sub[$edit_key][0], $capability, esc_url(admin_url('admin.php?page=' . $this->slug))]; app/Entities/AdminMenu/AdminSubmenu.php:49 $submenu[$this->slug][$c] = [$item[0], $item[1], esc_url(admin_url($url))];
to
app/Entities/AdminMenu/AdminSubmenu.php:49 $submenu[$this->slug][50] = [$sub[$edit_key][0], $capability, esc_url('admin.php?page=' . $this->slug)]; app/Entities/AdminMenu/AdminSubmenu.php:49 $url = ( isset($item[3]) ) ? 'edit.php?post_type=' . $this->post_type->name . '&page=' . $item[2] : $item[2];
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Open basedir restriction’ is closed to new replies.