Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP warning on upgrade from Drupal 7 in system_get_date_formats() #5288

Closed
jenlampton opened this issue Oct 6, 2021 · 2 comments · Fixed by backdrop/backdrop#3786
Closed

Comments

@jenlampton
Copy link
Member

Description of the bug

I'm seeing the following PHP warning when I upgrade sites from Drupal 7:

Warning: Invalid argument supplied for foreach() in system_get_date_formats() (line 3911 of system.module 

I know this isn't an issue because if you push past it and complete the upgrade everything then works fine, but it would be nice if we could avoid any kind of scary warnings during the upgrade process, which can be stressful enough :)

Steps To Reproduce

To reproduce the behavior:

  1. Load in Drupal 7 database
  2. Visit core/update.php
  3. Error appears on this page

Additional information

Add any other information that could help, such as:

  • Backdrop CMS version: 1.20.1
  • Web server and its version:
  • Operating System and its version:
  • Browser(s) and their versions:
@bugfolder
Copy link

Tested this on a Drupal upgrade that had been showing the warning; this fixed the warning. Code looks good. LGTM.

@quicksketch
Copy link
Member

Thanks, merged backdrop/backdrop#3786 into 1.x and 1.20.x!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants