WordPress.org

Make WordPress Core

Opened 3 months ago

Closed 3 months ago

Last modified 4 weeks ago

#52864 closed defect (bug) (duplicate)

PHP Notice: Undefined index: path

Reported by: dreamon11 Owned by:
Milestone: Priority: normal
Severity: trivial Version: 5.7
Component: Canonical Keywords:
Focuses: Cc:

Description

Hello,

Just a report to inform you I receive a PHP notice when GET request /page/1:

PHP Notice:
Undefined index: path in [...]wp/wp-includes/canonical.php on line 590

Backtrace:
#0 [...]wp/wp-includes/canonical.php(590): App\{closure}(8, 'Undefined index: path', '[...]wp/wp-includes/canonical.php', '590', Array)
#1 [...]wp/wp-includes/class-wp-hook.php(292): redirect_canonical('https://site.com/page/1')
#2 [...]wp/wp-includes/class-wp-hook.php(316): apply_filters(NULL, Array)
#3 [...]wp/wp-includes/plugin.php(484): do_action(Array)
#4 [...]wp/wp-includes/template-loader.php(13): do_action('template_redirect')
#5 [...]wp/wp-blog-header.php(19): require_once('[...]wp/wp-includes/template-loader.php')
#6 [...]index.php(5): require('[...]wp/wp-blog-header.php')

Change History (2)

#1 @SergeyBiryukov
3 months ago

  • Component changed from General to Canonical
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi there, welcome to WordPress Trac!

Thanks for the report, we're already tracking this issue in #39827.

This ticket was mentioned in Slack in #core-test by hellofromtonya. View the logs.


4 weeks ago

Note: See TracTickets for help on using tickets.