• Warning: Undefined array key “DOCUMENT_URI” in /var/www/html/wp-content/plugins/admin-options-pages/App/Admin/AdminPages/Settings/SubpageSettings.php on line 29

    The problem is that DOCUMENT_URI is not a standard $_SERVER variable on most servers. (I’m using the official WordPress 6.8.3+PHP 8.4 Docker image.) The usual variable for the request URI is $_SERVER[‘REQUEST_URI’].

    Suggested fix:
    if (isset($_SERVER['REQUEST_URI']) && $_SERVER['REQUEST_URI'] !== '/wp-admin/options-general.php') {

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Warning: Undefined array key “DOCUMENT_URI”’ is closed to new replies.