Fatal error: Cannot redeclare ViewsEFFieldsetData::moveFormElement() due to duplicated method

Created on 29 March 2025, 7 months ago

Issue Summary:

The file src/ViewsEFFieldsetData.php in the views_ef_fieldset module declares the moveFormElement() method twice in the same class ViewsEFFieldsetData, resulting in the following fatal error:

Fatal error: Cannot redeclare Drupal\views_ef_fieldset\ViewsEFFieldsetData::moveFormElement() in /var/www/html/html/modules/contrib/views_ef_fieldset/src/ViewsEFFieldsetData.php on line 177

Proposed Resolution:

Remove the duplicate method definition for moveFormElement() in ViewsEFFieldsetData.php

🐛 Bug report
Status

Active

Version

1.10

Component

Code

Created by

🇵🇰Pakistan isalmanhaider

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

Comments & Activities

  • Issue created by @isalmanhaider
  • 🇬🇷Greece gdelidaki

    I encounter the same error. I tried to apply the above patch but composer said that it couldn't apply it.

    I also tried to create my own patch that removes the duplicate method but it couldn't be applied as well.

    I checked the code of 8.x-1.10 and the duplication does not appear in the source code.

    Are there any updates on this bug?

Production build 0.71.5 2024