Error: Call to a member function destroy() on null in dropsolid_after_install_finished()

Created on 13 April 2023, about 1 year ago
Updated 1 May 2023, about 1 year ago

Problem/Motivation

When the site is installed from existing configuration, and the frontpage view is not present in the exported configuration, the installation process ends with a fatal error:

[error]  Error: Call to a member function destroy() on null in dropsolid_after_install_finished() (line 365 of /var/www/html/docroot/profiles/dropsolid_rocketship_profile/dropsolid_rocketship_profile.profile) #0 /var/www/html/docroot/core/includes/install.core.inc(706): dropsolid_after_install_finished(Array)
#1 /var/www/html/docroot/core/includes/install.core.inc(577): install_run_task(Array, Array)
#2 /var/www/html/docroot/core/includes/install.core.inc(119): install_run_tasks(Array, Array)
#3 /var/www/html/vendor/drush/drush/includes/drush.inc(129): install_drupal(Object(Composer\Autoload\ClassLoader), Array, Array)
#4 /var/www/html/vendor/drush/drush/includes/drush.inc(113): drush_call_user_func_array('install_drupal', Array)
#5 /var/www/html/vendor/drush/drush/src/Commands/core/SiteInstallCommands.php(152): drush_op('install_drupal', Object(Composer\Autoload\ClassLoader), Array, Array)

Steps to reproduce

  1. Install a new site using dropsolid_rocketship_profile
  2. run drush cex
  3. Try to install site from existing config: drush si --existing-config

Proposed resolution

Check if the view exist before trying to delete it

Remaining tasks

- Patch
- Review
- Test

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

Fixed

Version

6.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain akalam

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024