WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#40163 closed defect (bug) (invalid)

PHP 7 bug in nav-menu.php

Reported by: lucaspw Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description (last modified by ocean90)

Hi

In PHP 7 is bug in nav menus and wordpress respond error:

<b>Notice</b>: Array to string conversion in <b>/Applications/MAMP/htdocs/enginzyme/wp-includes/nav-menu.php</b> on line <b>604</b><br />

This can be fast fix, you must replace this line:

$items[$k]->$args['output_key'] = $i++;

for:

$items[$k]->{$args['output_key']} = $i++;

Change History (3)

#1 @ocean90
4 years ago

  • Description modified (diff)
  • Keywords reporter-feedback added

Hello @lucaspw, welcome to WordPress Trac!

Thanks for your report. This has already been fixed in WordPress 4.3, see [33427]. What version are you using?

#2 @lucaspw
4 years ago

  • Resolution set to invalid
  • Status changed from new to closed

Oh sorry, I miss my update -_-

#3 @ocean90
4 years ago

  • Keywords reporter-feedback removed
  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.