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.
I started getting this message after updating a few modules, the first few updates went normally then I started getting this message when applying the update after downloading it.
This line reads:
$requirements['update_core'] = _update_requirement_check($data['drupal'], 'core');
I have found this issue listed in the openoutreach distribution issue cue, however there does not appear to be a fix.
Drupal 7.17
Install profile Commerce Kickstart (commerce_kickstart-7.x-2.0-rc4)
Comment | File | Size | Author |
---|---|---|---|
issue_solved_by_me.jpg | 130.03 KB | Burhan_Aleem | |
#4 | commerce_kickstart-fix-undefined-index-drupal-in-update-requirements-1876272-4.patch | 751 bytes | jsacksick |
#1 | toolbar broken.JPG | 50.04 KB | cn313 |
Comments
Comment #1
cn313 CreditAttribution: cn313 commentedSame problem here:
Notice: Undefined index: drupal in update_requirements() (line 35 of C:\wamp\www\LocalDrupalStore\modules\update\update.install).
I had the Commerce Kickstart 7x. 2.0 rc4 installed and then i wanted to activate the Commerce Kickstart Menus Module.
I didn't like it so turned it off and then my toolbar was kinda broken (see attached image) and some of the toolbar links didn't open in an overlay.
I updated using commerce_kickstart-7.x-2.0-no-core but i still get the undefined index: drupal error and i have no idea how to make the toolbar look like it did before.
Can someone help us?
Comment #2
nedjoThe parallel issue on Open Outreach is #1875386: Notice: Undefined index: drupal in update_requirements() (line 35 of .../modules/update/update.install).. I've posted a quick patch there that could be adapted for Kickstart but haven't yet looked closely at the issue or tested.
Comment #3
Eric Bullet CreditAttribution: Eric Bullet commentedJust installed commerce quickstart 7.x-2.0 normally (following the directions) and got the same error.
Notice: Undefined index: drupal in update_requirements() (line 35 of /Sites/commerce_kickstart-2.0/modules/update/update.install).
Comment #4
jsacksick CreditAttribution: jsacksick commentedPatch adapted to kickstart.
Here's the gerrit commit : https://code.drupalcommerce.org/#/c/601/
Comment #5
jsacksick CreditAttribution: jsacksick commented@cn313
for
Please continue on this issue for the toolbar (#1877594: Toolbar (administration menu) broken after disabling 'commerce kickstart menus')
Comment #6
netsensei CreditAttribution: netsensei commentedI can confirm that the patch in #4 works for me. Since it's the exactly the same solution as applied in #1875386: Notice: Undefined index: drupal in update_requirements() (line 35 of .../modules/update/update.install). I'd recommend committing this in Kickstart too.
Comment #7
jsacksick CreditAttribution: jsacksick commentedCommitted!
Comment #8
joelrotelli CreditAttribution: joelrotelli commentedI had the same problem, and by activating the PHP module, it's solved it !
Comment #10
dbolser CreditAttribution: dbolser commentedWhat PHP module?
Comment #11
RedsMK CreditAttribution: RedsMK commentedPHP filter module