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.
Running coder_upgrade against amazon_store (D6 dev) I got these messages. They're completely unformatted and hard to follow. The upgrade seemed to work.
ERROR: Undefined index: arguments on line 128 in /home/rfay/workspace/d7git/sites/all/modules/coder/coder_upgrade/conversions/coder_upgrade.begin.inc ERROR: Undefined index: arguments on line 128 in /home/rfay/workspace/d7git/sites/all/modules/coder/coder_upgrade/conversions/coder_upgrade.begin.inc ERROR: preg_match(): Compilation failed: nothing to repeat at offset 0 on line 50 in /home/rfay/workspace/d7git/sites/all/modules/coder/coder_upgrade/conversions/coder_upgrade.install.inc
Comments
Comment #1
rfayTalking with solotandem in IRC, he suggested adding bogus arguments to the two hook_theme() elements that didn't have arguments. I did, and that took care of a couple of the items above.
Remaining after that is:
Comment #2
rfayIt is not unusual to have theme elements that take no arguments. So for example, calls to theme('status_messages') are currently being annotated by by coder_upgrade to add an array() arg, but it doesn't take one. So making this friendlier in hook_theme and elsewhere will be good.
Comment #3
solotandem CreditAttribution: solotandem commentedFixed in next dev release.
Error message 1:
The 'status_messages' theme seems not to be the best example as the documentation lists a parameter and the theme_status_messages($variables) function expects the parameter with a key of 'display'. Nonetheless, the routine was changed to check for any 'variables' in the theme registry entry before adding the comment.
Error message 2:
Invalid regex to have a '*' leading the charge. Need to escape it as '\*'.
Also improved the routine that converts the hook_block() so that it now upgrades the hook_block in amazon_store module.
Thanks for using the module and posting the issue.