I have tested the d7 to d8 upgrade path on my local dev system and I get two error-messages.

Win7-64bit german client - XAMPP 1.8.1 (PHP 5.4.7, Apache 2.4.3, MySQL 5.5.27)

XAMPP is properly installed in path: C:\XAMPP\.

My steps:

  1. I have made a fresh install of the german D7.22 (download from http://www.drupalcenter.de/files/drupal-7.22-DE.zip), profile Drupalcenter with german language.
    1. The D7 from drupalcenter.de, which is the "german d.o.", installs the module "dcblock", which shows a static block ("Deutschsprachige Drupal-Version: Drupal Center") in footer.
  2. Then I put the site into maintenance mode.
  3. Then I disable and uninstall the module "dcblock".
  4. Then I delete all files outside the 'sites' directory.
    1. Using the UI of D7, I cannot disable and uninstall the profile "Drupalcenter" like a module.
    2. The format of the .info files has changed from D7 to D8. Therefore the old files (modules, profiles) are not used within D8. It makes no difference whether they are still there or not after the ungrade.
  5. Then I copied all files from Drupal 8.x-dev - Last updated: 2013-Mai-11 in the root directory.
  6. Then I have made the settings.php file writeable.
  7. Then I started http://www.example.com/core/update.php.
  8. The upgrade is successful.

But now I get an ugly error message:

Notice: Undefined index: name in system_requirements() (line 42 of core\modules\system\system.install).
Notice: Undefined index: version in system_requirements() (line 44 of core\modules\system\system.install).

With the new option ('http://www.example.com/admin/config/development/logging') "Error messages to display: - All messages, with backtrace information" I get:

Notice: Undefined index: name in system_requirements() (line 42 of core\modules\system\system.install).

system_requirements('runtime')
call_user_func_array('system_requirements', Array)
Drupal\Core\Extension\ModuleHandler->invokeAll('requirements', Array)
module_invoke_all('requirements', 'runtime')
system_status()
call_user_func_array('system_status', Array)
Drupal\Core\EventSubscriber\LegacyControllerSubscriber->Drupal\Core\EventSubscriber\{closure}()
call_user_func_array(Object, Array)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1)
Drupal\Core\HttpKernel->handle(Object, 1, 1)
Symfony\Component\HttpKernel\Kernel->handle(Object)
drupal_handle_request()

Notice: Undefined index: version in system_requirements() (line 44 of core\modules\system\system.install).

system_requirements('runtime')
call_user_func_array('system_requirements', Array)
Drupal\Core\Extension\ModuleHandler->invokeAll('requirements', Array)
module_invoke_all('requirements', 'runtime')
system_status()
call_user_func_array('system_status', Array)
Drupal\Core\EventSubscriber\LegacyControllerSubscriber->Drupal\Core\EventSubscriber\{closure}()
call_user_func_array(Object, Array)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1)
Drupal\Core\HttpKernel->handle(Object, 1, 1)
Symfony\Component\HttpKernel\Kernel->handle(Object)
drupal_handle_request()

Note:
Many D7-sites use a distribution. I think, this errors should be solved, before D8 comes to be an official release.

Something is wrong or I have done something in a wrong way.

Wusel

Comments

mrP’s picture

I just tested this upgrade path using the DrupalCenter distro and it worked successfully for me. All updates completed successfully and I'm able to browse the site. The error log is free of any issues as you described. The only major difference between our two environments is our PHP version (i'm using 5.3)

I used D8 as of May 12th -- http://drupalcode.org/project/drupal.git/commit/a858b3473cdedc8ef2d87f03...

Could you try with the most recent D8-dev and see if it happens again?

wusel’s picture

@mrP:
I have downloaded '8.x-dev - Last updated: May 12, 2013 - 14:49' from d.o., my steps like the issue summary.

During the "update.php process" I get many (new !!!) errors:

Notice: Undefined index: drupalcenter in _system_rebuild_module_data() (line 2918 of core\modules\system\system.module).
Warning: Creating default object from empty value in _system_rebuild_module_data() (line 2921 of core\modules\system\system.module).
Notice: Undefined property: stdClass::$uri in _system_rebuild_module_data() (line 2938 of core\modules\system\system.module).
Notice: Undefined property: stdClass::$uri in _system_rebuild_module_data() (line 2941 of core\modules\system\system.module).
Notice: Undefined property: stdClass::$name in _system_rebuild_module_data() (line 2941 of core\modules\system\system.module).
Notice: Undefined index: drupalcenter in _system_rebuild_module_data() (line 2918 of core\modules\system\system.module).
Warning: Creating default object from empty value in _system_rebuild_module_data() (line 2921 of core\modules\system\system.module).
Notice: Undefined property: stdClass::$uri in _system_rebuild_module_data() (line 2938 of core\modules\system\system.module).
Notice: Undefined property: stdClass::$uri in _system_rebuild_module_data() (line 2941 of core\modules\system\system.module).
Notice: Undefined property: stdClass::$name in _system_rebuild_module_data() (line 2941 of core\modules\system\system.module).
Notice: Undefined index: drupalcenter in _system_rebuild_module_data() (line 2918 of core\modules\system\system.module).
Warning: Creating default object from empty value in _system_rebuild_module_data() (line 2921 of core\modules\system\system.module).
Notice: Undefined property: stdClass::$uri in _system_rebuild_module_data() (line 2938 of core\modules\system\system.module).
Notice: Undefined property: stdClass::$uri in _system_rebuild_module_data() (line 2941 of core\modules\system\system.module).
Notice: Undefined property: stdClass::$name in _system_rebuild_module_data() (line 2941 of core\modules\system\system.module).
Notice: Undefined index: drupalcenter in _system_rebuild_module_data() (line 2918 of core\modules\system\system.module).
Warning: Creating default object from empty value in _system_rebuild_module_data() (line 2921 of core\modules\system\system.module).
Notice: Undefined property: stdClass::$uri in _system_rebuild_module_data() (line 2938 of core\modules\system\system.module).
Notice: Undefined property: stdClass::$uri in _system_rebuild_module_data() (line 2941 of core\modules\system\system.module).
Notice: Undefined property: stdClass::$name in _system_rebuild_module_data() (line 2941 of core\modules\system\system.module).
Notice: Undefined index: drupalcenter in _system_rebuild_module_data() (line 2918 of core\modules\system\system.module).
Warning: Creating default object from empty value in _system_rebuild_module_data() (line 2921 of core\modules\system\system.module).
Notice: Undefined property: stdClass::$uri in _system_rebuild_module_data() (line 2938 of core\modules\system\system.module).
Notice: Undefined property: stdClass::$uri in _system_rebuild_module_data() (line 2941 of core\modules\system\system.module).
Notice: Undefined property: stdClass::$name in _system_rebuild_module_data() (line 2941 of core\modules\system\system.module).
Notice: Undefined index: drupalcenter in _system_rebuild_module_data() (line 2918 of core\modules\system\system.module).
Warning: Creating default object from empty value in _system_rebuild_module_data() (line 2921 of core\modules\system\system.module).
Notice: Undefined property: stdClass::$uri in _system_rebuild_module_data() (line 2938 of core\modules\system\system.module).
Notice: Undefined property: stdClass::$uri in _system_rebuild_module_data() (line 2941 of core\modules\system\system.module).
Notice: Undefined property: stdClass::$name in _system_rebuild_module_data() (line 2941 of core\modules\system\system.module).

The upgrade is successful.

Then on admin pages I get:

Notice: Undefined index: drupalcenter in _system_rebuild_module_data() (line 2918 of core\modules\system\system.module).
Warning: Creating default object from empty value in _system_rebuild_module_data() (line 2921 of core\modules\system\system.module).
Notice: Undefined property: stdClass::$uri in _system_rebuild_module_data() (line 2938 of core\modules\system\system.module).
Notice: Undefined property: stdClass::$uri in _system_rebuild_module_data() (line 2941 of core\modules\system\system.module).
Notice: Undefined property: stdClass::$name in _system_rebuild_module_data() (line 2941 of core\modules\system\system.module).

With the new option ('http://www.example.com/admin/config/development/logging') "Error messages to display: - All messages, with backtrace information" I get:

Notice: Undefined index: drupalcenter in _system_rebuild_module_data() (line 2918 of core\modules\system\system.module).

_system_rebuild_module_data()
system_rebuild_module_data()
system_get_info('module', 'drupalcenter')
system_requirements('runtime')
call_user_func_array('system_requirements', Array)
Drupal\Core\Extension\ModuleHandler->invokeAll('requirements', Array)
module_invoke_all('requirements', 'runtime')
system_status(1)
system_admin_config_page()
call_user_func_array('system_admin_config_page', Array)
Drupal\Core\EventSubscriber\LegacyControllerSubscriber->Drupal\Core\EventSubscriber\{closure}()
call_user_func_array(Object, Array)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1)
Drupal\Core\HttpKernel->handle(Object, 1, 1)
Symfony\Component\HttpKernel\Kernel->handle(Object)
drupal_handle_request()

Warning: Creating default object from empty value in _system_rebuild_module_data() (line 2921 of core\modules\system\system.module).

_system_rebuild_module_data()
system_rebuild_module_data()
system_get_info('module', 'drupalcenter')
system_requirements('runtime')
call_user_func_array('system_requirements', Array)
Drupal\Core\Extension\ModuleHandler->invokeAll('requirements', Array)
module_invoke_all('requirements', 'runtime')
system_status(1)
system_admin_config_page()
call_user_func_array('system_admin_config_page', Array)
Drupal\Core\EventSubscriber\LegacyControllerSubscriber->Drupal\Core\EventSubscriber\{closure}()
call_user_func_array(Object, Array)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1)
Drupal\Core\HttpKernel->handle(Object, 1, 1)
Symfony\Component\HttpKernel\Kernel->handle(Object)
drupal_handle_request()

Notice: Undefined property: stdClass::$uri in _system_rebuild_module_data() (line 2938 of core\modules\system\system.module).

_system_rebuild_module_data()
system_rebuild_module_data()
system_get_info('module', 'drupalcenter')
system_requirements('runtime')
call_user_func_array('system_requirements', Array)
Drupal\Core\Extension\ModuleHandler->invokeAll('requirements', Array)
module_invoke_all('requirements', 'runtime')
system_status(1)
system_admin_config_page()
call_user_func_array('system_admin_config_page', Array)
Drupal\Core\EventSubscriber\LegacyControllerSubscriber->Drupal\Core\EventSubscriber\{closure}()
call_user_func_array(Object, Array)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1)
Drupal\Core\HttpKernel->handle(Object, 1, 1)
Symfony\Component\HttpKernel\Kernel->handle(Object)
drupal_handle_request()

Notice: Undefined property: stdClass::$uri in _system_rebuild_module_data() (line 2941 of core\modules\system\system.module).

_system_rebuild_module_data()
system_rebuild_module_data()
system_get_info('module', 'drupalcenter')
system_requirements('runtime')
call_user_func_array('system_requirements', Array)
Drupal\Core\Extension\ModuleHandler->invokeAll('requirements', Array)
module_invoke_all('requirements', 'runtime')
system_status(1)
system_admin_config_page()
call_user_func_array('system_admin_config_page', Array)
Drupal\Core\EventSubscriber\LegacyControllerSubscriber->Drupal\Core\EventSubscriber\{closure}()
call_user_func_array(Object, Array)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1)
Drupal\Core\HttpKernel->handle(Object, 1, 1)
Symfony\Component\HttpKernel\Kernel->handle(Object)
drupal_handle_request()

Notice: Undefined property: stdClass::$name in _system_rebuild_module_data() (line 2941 of core\modules\system\system.module).

_system_rebuild_module_data()
system_rebuild_module_data()
system_get_info('module', 'drupalcenter')
system_requirements('runtime')
call_user_func_array('system_requirements', Array)
Drupal\Core\Extension\ModuleHandler->invokeAll('requirements', Array)
module_invoke_all('requirements', 'runtime')
system_status(1)
system_admin_config_page()
call_user_func_array('system_admin_config_page', Array)
Drupal\Core\EventSubscriber\LegacyControllerSubscriber->Drupal\Core\EventSubscriber\{closure}()
call_user_func_array(Object, Array)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1)
Drupal\Core\HttpKernel->handle(Object, 1, 1)
Symfony\Component\HttpKernel\Kernel->handle(Object)
drupal_handle_request()

Notice: Undefined index: name in system_requirements() (line 42 of core\modules\system\system.install).

system_requirements('runtime')
call_user_func_array('system_requirements', Array)
Drupal\Core\Extension\ModuleHandler->invokeAll('requirements', Array)
module_invoke_all('requirements', 'runtime')
system_status(1)
system_admin_config_page()
call_user_func_array('system_admin_config_page', Array)
Drupal\Core\EventSubscriber\LegacyControllerSubscriber->Drupal\Core\EventSubscriber\{closure}()
call_user_func_array(Object, Array)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1)
Drupal\Core\HttpKernel->handle(Object, 1, 1)
Symfony\Component\HttpKernel\Kernel->handle(Object)
drupal_handle_request()

Notice: Undefined index: version in system_requirements() (line 44 of core\modules\system\system.install).

system_requirements('runtime')
call_user_func_array('system_requirements', Array)
Drupal\Core\Extension\ModuleHandler->invokeAll('requirements', Array)
module_invoke_all('requirements', 'runtime')
system_status(1)
system_admin_config_page()
call_user_func_array('system_admin_config_page', Array)
Drupal\Core\EventSubscriber\LegacyControllerSubscriber->Drupal\Core\EventSubscriber\{closure}()
call_user_func_array(Object, Array)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1)
Drupal\Core\HttpKernel->handle(Object, 1, 1)
Symfony\Component\HttpKernel\Kernel->handle(Object)
drupal_handle_request()

I hope, this helps you.

Thank you very much.

(During the next days I'm on business trips...)

mrP’s picture

Category: bug » support

oh i see what the problem is... the drupalcenter profile isn't D8 compatible (because the system table doesn't exist anymore -- http://drupal.org/node/1813642).

you have a couple of options:
1. make the necessary updates to their install profile for D8 compatibility
2. switch to a core provided D8 profile.

if you have an existing site that uses the drupalcenter profile and you want to upgrade it to D8 as a test before they release an updated D8 drupalcenter installation profile, you could define a standard install profile such as minimal before processing the database upgrades.

Add the following configuration variables in your settings.php to make the overrides:

  $profile = "minimal";
  $install_profile = "minimal";
wusel’s picture

@mrP:
you say:

the drupalcenter profile isn't D8 compatible

Yes, this is the problem for all distributions.

This ticket is to solve such problems, regardless of whether at the time of the upgrate to D8 a D8-profile exists or not (e.g. because the profile will never exist in D8).

This is about the deletion of two fields (entries in these fields). Not every admin is able do this in the database, outside of 'settings.php', (at the moment I don't know how) ... .
Sorry, I am no php-coder. I cannot give you the code for this.

Please look at my "Note:" in the the issue summary.

Wusel

wusel’s picture

Issue summary: View changes

a typo

mrP’s picture

So are you suggesting that Drupal 8 be fully backward compatible with all D7 installation profiles?

Or, are you wanting a way to check pre-upgrade to see if a profile is D8 compatible and then switch to a core install profile if not?

wusel’s picture

@mrP:
I want this annoying error message is prevented by the upgrading.

wusel’s picture

Issue summary: View changes

I correct a path

marcingy’s picture

Status: Active » Closed (won't fix)

Updates are now via migrate