Closed (fixed)
Project:
Data export phpspreadsheet
Version:
2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jun 2025 at 08:33 UTC
Updated:
11 Sep 2025 at 17:24 UTC
Jump to comment: Most recent
Comments
Comment #3
mkalkbrennerComment #4
lazzyvn commentedcheck on drupal 10 and 11 class Serializer the construction doesn't need $module_handler
Comment #5
n.dhuygelaere commentedI have also the same issue. The bug occurs after an update of the drupal/views_data_export:1.5.0 to drupal/views_data_export:1.6.0. The views_data_export:1.6.0 was released on 13 June 2025. I revert the update with composer and the bug go away. If the D10 & D11 don't need $module_handler, maybe it will be better to fix the issue in views_data_export and not in views_data_export_phpspreadsheet, no ?
Comment #7
liuyuanchao commentedMaybe it's better to change like branch 3530298-too-few-arguments-2.
Please review.
Comment #8
mkalkbrennerI don't understand what are you discussing here. The base class you derived your plugin from changed its constructor with the latest release. You MUST adjust the constructor accordingly!
Comment #9
mkalkbrennerOK, the parent didn't change the constructor, it added a constructor:
https://git.drupalcode.org/project/views_data_export/-/commit/dabf06138c...
Comment #10
mkalkbrennerI think that right pattern in drupal is to set values of member variables in the constructor, not in the create method.
Comment #12
liuyuanchao commentedError occurs when someone use the old version of views_data_export.
Should we add a restriction in composer.json?
Comment #13
mkalkbrenneryes, a version constraint should be added to composer.json and info.yml
Comment #14
lazzyvn commentedpatch please i will release new version
Comment #16
liuyuanchao commentedHi @lazzyvn
I add the version constraint in 3530298-too-few-arguments branch.
Please review.
https://git.drupalcode.org/issue/views_data_export_phpspreadsheet-353029...
Comment #17
lazzyvn commented