PHP Parse error: syntax error, unexpected token "*" in core/modules/menu_ui/src/MenuForm.php on line 235

Created on 3 January 2024, over 1 year ago

Problem/Motivation

PHP Parse error: syntax error, unexpected token "*" in core/modules/menu_ui/src/MenuForm.php on line 235

Steps to reproduce

  • Install Drupal Version 10.2.0
  • Site is Not Running

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

๐Ÿ› Bug report
Status

Active

Version

10.2 โœจ

Component
Menu UIย  โ†’

Last updated about 15 hours ago

No maintainer
Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia keshav patel

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @keshav patel
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia viren18febs

    I have checked with the same version & i am not able to reproduce the issue. can you please provide some more information.

  • Status changed to Postponed: needs info over 1 year ago
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom longwave UK

    None of those comments in the screenshot are present in the 10.2.0 version of the code: https://git.drupalcode.org/project/drupal/-/blob/10.2.0/core/modules/men...

    It looks like you have patched core somehow.

  • ๐Ÿ‡จ๐Ÿ‡ฆCanada Charlie ChX Negyesi ๐ŸCanada

    Running some git archeology

    file=core/modules/menu_ui/src/MenuForm.php;for commit in $(git log --pretty=format:%h $file) ; do git show "$commit":$file|grep -n '*'|sed "s/^/$commit:/" ;done|grep :235:

    reveals the file contained a * on line 235 between commits d0d3e53361 and 44f76c6bcf in 2014. The tagged versions for this period are 8.0-alpha12 and 8.0-alpha13. But, even then it's unlikely this file contained a syntax error: while even I have a hard time remembering when we wrote the menu test it certainly was included in the first test commit in 2008. And indeed manually reviewing the file shows this * was part of the doxygen, back then.

    Perhaps try reinstalling Drupal 10.2.0 or tell us how are you installing it.

  • Status changed to Closed: outdated 5 months ago
Production build 0.71.5 2024