Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 2 years ago

#52864 closed defect (bug) (duplicate)

PHP Notice: Undefined index: path

Reported by: dreamon11's profile dreamon11 Owned by:
Milestone: Priority: normal
Severity: trivial Version: 5.7.2
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 (3)

#1 @SergeyBiryukov
3 years 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.


3 years ago

#3 @hifriend
2 years ago

  • Version changed from 5.7 to 5.7.2

my blog also got the same error.

PHP Warning: Undefined array key “path” in /home/xxx/public_html/wp-includes/canonical.php on line 590

look post: https://wordpress.org/support/topic/undefined-array-key-path-in-home-xxx-public_html-wp-includes-canonical-php

wordpress: 5.9.3

Note: See TracTickets for help on using tickets.