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:
- 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.
- 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.
- Then I put the site into maintenance mode.
- Then I disable and uninstall the module "dcblock".
- Then I delete all files outside the '
sites' directory.
- Using the UI of D7, I cannot disable and uninstall the profile "Drupalcenter" like a module.
- 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.
- Then I copied all files from Drupal 8.x-dev - Last updated: 2013-Mai-11 in the root directory.
- Then I have made the
settings.phpfile writeable. - Then I started
http://www.example.com/core/update.php. - 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
Comment #1
mrP commentedI 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?
Comment #2
wusel commented@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.phpprocess" I get many (new !!!) errors:The upgrade is successful.
Then on admin pages I get:
With the new option ('http://www.example.com/admin/config/development/logging') "Error messages to display: - All messages, with backtrace information" I get:
I hope, this helps you.
Thank you very much.
(During the next days I'm on business trips...)
Comment #3
mrP commentedoh 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:
Comment #4
wusel commented@mrP:
you say:
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
Comment #4.0
wusel commenteda typo
Comment #5
mrP commentedSo 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?
Comment #6
wusel commented@mrP:
I want this annoying error message is prevented by the upgrading.
Comment #6.0
wusel commentedI correct a path
Comment #7
marcingy commentedUpdates are now via migrate