Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Upgrade command always returns weird warning:
C:\Users\Mike\Sites\8>drush dmu-upgrade styleswitcher
Indexing...done.
styleswitcher does not implement hook_Array. [warning]
I guess the problem is in that some code attempts to convert array with hooks to string.
Comment | File | Size | Author |
---|---|---|---|
#8 | 2598934-8-blockprocessing.patch | 988 bytes | HongPong |
#5 | 2598934-hook-array-warning-5.patch | 988 bytes | NickDickinsonWilde |
#4 | drupalmoduleupgrader-hook_array_warning_on-2598934-4.patch | 1.02 KB | pingwin4eg |
Comments
Comment #2
pingwin4egSetting priority to minor because this warning does not prevent the upgrading.
Comment #3
pingwin4egThough... blocks are not getting converted.
Comment #4
pingwin4egHere's something that made progress for me.
Comment #5
NickDickinsonWildeI'd prefer a warning on each function and then still try to convert the other functions. Patch attached, that does that. (to be exact, created that before noticing this issue already existed).
Comment #6
Prashant.cThis patch no longer applies to latest version of the module but error still occurs when trying to upgrade a module which defines block.
Comment #7
Gerhard Roth CreditAttribution: Gerhard Roth commentedI get a similar warning:
I didn't try a patch
Comment #8
HongPong CreditAttribution: HongPong at kor group commentedHi all,
Here is a Re-roll against head. i'm going to try it and see if it seems to work. Note that we would still likely get 20 test failures with this patch.
Comment #10
HongPong CreditAttribution: HongPong at kor group commentedwithout debug flag i got an improvement
I put the more verbose debugger log here. i think it is working better now and is probably RTBC. If you can get drush 8 running I suggest you try it.
https://gist.github.com/HongPong/acd858ae2f46be46e7c91a4b76228144
Comment #11
DanChadwick CreditAttribution: DanChadwick commentedI am using drush 8 and #8 seems to fix the problem.
Comment #12
solideogloria CreditAttribution: solideogloria commentedI had a problem similar to #7, and the patch in #8 fixes it for me. I am using Drush version 8.1.17
Comment #13
solideogloria CreditAttribution: solideogloria commentedI still have the issue if the patch is not included when using Drush 10.3 and Drupal 8.9. Can we get this committed, please?
The patch still works.
Comment #15
jcnventura CreditAttribution: jcnventura at 1xINTERNET commentedComment #17
joseph.olstadThis change may have broken our tests, there was a commit made November 4th that broke our tests. see the following issues and links:
4 Nov 2020 at 04:27 EST
PHP 7.1 & MySQL 5.5, D8.9 Composer require failure
18 Sep 2019 at 10:45 EDT
PHP 7.1 & MySQL 5.5, D8.7 242 pass
Other changes that were made November 4th that may have caused this:
#3165948: License "GPL-2.0+" is a deprecated SPDX license identifier, use "GPL-2.0-or-later" instead
#3069566: Prevent running module upgrader on a module that already has an info.yml file
#3081813: Add drush 10 support
Comment #18
joseph.olstadactually it was probably not THIS issue but one of the others, the drush 10 support or the License change 3165948
Comment #19
joseph.olstadfix automated tests, broken with changes made November 4th 2020
#3183927: Fix automated tests, broken since November 4th 2020
Proposed resolution / Remaining Tasks
make a patch that reverts all changes made november 4th and see if it fixes the tests.