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

Created on 3 January 2024, 6 months 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

๐Ÿ’ฌ Support request
Status

Postponed: needs info

Version

10.2 โœจ

Component
Menu UIย  โ†’

Last updated 6 days 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 6 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia sijumpk
  • ๐Ÿ‡ฌ๐Ÿ‡ง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.

Production build 0.69.0 2024