Skip to content

Instantly share code, notes, and snippets.

@olafgrabienski
Last active March 29, 2019 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olafgrabienski/3c05cd07859d4325080016aa88b69744 to your computer and use it in GitHub Desktop.
Save olafgrabienski/3c05cd07859d4325080016aa88b69744 to your computer and use it in GitHub Desktop.
Upgrade notes, D7 to Backdrop

NB: These are just some notes, they're not elaborated.

Modules

Kept modules

Moved in core:

  • Administration menu
  • CKEditor
  • Link
  • Redirect
  • Views

Integrated into core:

  • Chaos tools
  • Pathauto
  • Token
  • Transliteration

Contrib modules:

  • Backup and Migrate
  • Field Group
  • Honeypot
  • Multifield

Disabled and uninstalled

Core

  • RDF
  • Trigger

Contrib

(disabled and uninstalled before the start, I believe)

  • CKEditor Link
  • Colorbox
  • Context
  • Delta API
  • Display Suite
  • Environment Indicator
  • Image Field Focus
  • Insert
  • Libraries
  • Menu Block
  • Mobile Menu Toggle
  • Module filter
  • Name Field
  • Omega Tools
  • Responsive images and styles
  • TOC Filter
  • Views Distinct

(later)

  • CSS Injector: after 4th atttempt?
  • Entity API
  • Entity Reference
  • References Dialog

Running update.php

1st attempt

Notice: Undefined index: module in _field_info_prepare_instance_widget() (Zeile 417 von .../core/modules/field/field.info.inc). Notice: Undefined index: module in _field_info_prepare_instance_display() (Zeile 385 von .../core/modules/field/field.info.inc).

The following updates returned messages system module Update #1046 Transliteration has been merged into core. Fix existing file names (admin/config/media/file-system/transliteration)

Message on home page: Deprecated function: idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated in _link_escape_domain() (Zeile 716 von .../core/modules/link/link.module).

2nd attempt

Warning: file_put_contents(private:///.htaccess): failed to open stream: "BackdropPrivateStreamWrapper::stream_open" call failed in file_save_htaccess() (Zeile 515 von /.../core/includes/file.inc).

Some of the pending updates cannot be applied because their dependencies were not met.

=> solved! (used Backup and Migrate 7.2.x but needed 7.3.x.)

user/login: Fatal error: require_once(): Failed opening required '/.../modules/user/user.pages.inc' (include_path='.:') in /.../core/modules/system/system.module on line 2451 Fatal error: require_once(): Failed opening required '/.../modules/taxonomy/taxonomy.admin.inc' (include_path='.:') in /.../core/includes/menu.inc on line 685 (and so on)

3rd attempt

Fatal error: Uncaught Error: Call to undefined function entity_get_info() in /.../modules/field_group/field_group.module:192 Stack trace: #0 /.../core/includes/module.inc(1177): field_group_theme_registry_alter(Array, NULL, NULL, NULL) #1 /.../core/includes/theme.inc(728): backdrop_alter('theme_registry', Array) #2 /.../core/includes/theme.maintenance.inc(104): _theme_build_registry(Object(stdClass), Array, 'phptemplate') #3 /.../core/includes/theme.inc(291): _theme_load_offline_registry(Object(stdClass), Array, 'phptemplate', false) #4 /.../core/includes/theme.inc(1011): theme_get_registry(false) #5 /.../core/includes/errors.inc(251): theme('maintenance_pag...', Array) #6 /.../core/includes/bootstrap.inc(2947): _ba in /.../modules/field_group/field_group.module on line 192

4th attempt

Warning: realpath(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/OGr...:/usr/share/php:/usr/bin:/usr/local/bin:/opt:/tmp) in BackdropLocalStreamWrapper->getLocalPath() (line 378 of /.../core/includes/stream_wrappers.inc). Warning: realpath(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/OGr...:/usr/share/php:/usr/bin:/usr/local/bin:/opt:/tmp) in BackdropLocalStreamWrapper->getLocalPath() (line 378 of /.../core/includes/stream_wrappers.inc).

CSS Injector: Directory public://css_injector is not writable => reason files vs. sites/default/files?

(...)

190 pending updates (...)

Notice: tempnam(): file created in the system's temporary directory in backdrop_tempnam() (Zeile 2602 von /.../core/includes/file.inc). Warning: file_put_contents(temporary://fileUHPm0j): failed to open stream: "BackdropTemporaryStreamWrapper::stream_open" call failed in file_unmanaged_save_data() (Zeile 2057 von /.../core/includes/file.inc). (File couldn't be created.)

Updates were attempted. If you see no failures below, you may proceed happily back to your site. Otherwise, you may need to update your database manually. All errors have been logged.

The following updates returned messages system module Update #1046

Transliteration has been merged into core. Fix existing file names.

Deprecated function: idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated in _link_escape_domain() (Zeile 716 von /.../core/modules/link/link.module).

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