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

D7 upgrades: Warning: Use of undefined constant VIEWS_STORAGE_DEFAULT in filter_update_1004() #5390

Open
klonos opened this issue Dec 12, 2021 · 2 comments · May be fixed by backdrop/backdrop#4326

Comments

@klonos
Copy link
Member

klonos commented Dec 12, 2021

This is a follow-up to #5340

Steps to reproduce

  1. install vanilla D7 + Entity Cache module
  2. export the D7 database
  3. install a vanilla Backdrop instance
  4. import the db from step 2 above into the Backdrop site
  5. open your settings.php file, and change $settings['update_free_access'] = FALSE; to TRUE
  6. run /core/update.php

Actual result

Error:

Warning: Use of undefined constant VIEWS_STORAGE_DEFAULT - assumed 'VIEWS_STORAGE_DEFAULT'
(this will throw an Error in a future version of PHP)
in filter_update_1004() (line 491 of /core/modules/filter/filter.install).

Expected result

No errors.

@klonos
Copy link
Member Author

klonos commented Feb 4, 2023

I just got this again after sorting #5496. I think I might give this a crack next, to make the D7 upgrades smoother and with as less errors thrown as possible.

This time, it didn't need the Entity Cache module to be installed - I got this during a vanilla D7 -> Backdrop upgrade.

@klonos
Copy link
Member Author

klonos commented Feb 4, 2023

Simple PR that seems to fix this: backdrop/backdrop#4326

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