I'm getting the following when running update.php
- Warning: Undefined array key "enabled" in filter_formats() (line 842 of /var/www/html/MADv4/core/modules/filter/filter.module).
- Warning: Undefined array key "enabled" in filter_formats() (line 842 of /var/www/html/MADv4/core/modules/filter/filter.module).
- TypeError: reset(): Argument #1 ($array) must be of type array, null given in reset() (line 1003 of /var/www/html/MADv4/core/modules/filter/filter.module).
- Warning: Trying to access array offset on value of type bool in custom_search_theme() (line 1260 of /var/www/html/MADv4/modules/custom_search/custom_search.module).
Any help would be appreciated.
Comments
Hi Mad...
Is this a new site, an old site, one you are migrating, has the error just started, what version of Backdrop are you using?
Regards
Steve
Sorry for lack of information.
I am trying to migrate a drupal 7 site to backdrop. This is my first time doing this.
I am using Bd 1.29.1.
My drupal core and plugins are all the latest version.
This looks like you have no filters in the config directory. You can check that by inspecting the active config folder, typically found in
files/config_XXX/active
. Look for files that start withfilter.format.
. If you don't see any of those there, then you have a problem. Filter format config files are created during the update byfilter_update_1000()
based on the filters stored in your D7 database. It may be the case that either there was an error writing those files, or that a contrib module is trying to access filters before that update hook has run.It would be helpful to know what contrib modules you have enabled during the upgrade.
Here is a list of the contrib modules I have installed for Backdrop:
Did you inspect the folder as I suggested?
And, I do not have any files that start with filter.format in my active config folder.
OK, so something went very wrong during the upgrade. There must be error messages in the log. The upgrade is probably unusuable, since it seems like the filter update hook never ran. To verify, check to see if you indeed have filters in the Drupal site.
I do have filters in the Drupal site.
I've tried running the upgrade several times now after making various changes to the drupal configuration and I get the same errors every time.
Apparently I hadn't done enough cleanup with old and unused modules. I was able to run the update.