Hello,

when loading the page for my installation task all system table records of type theme located under profiles/myprofile/themes/ disappear/are deleted. After finishing the install and showing the drupal frontpage the first time, all previously lost records are in the system table again, but disabled.

I created an installation profile and until two days ago everything seemed to work fine. But when I got an error message during a module install which I couldn't find without debugging I recognized a quite strange behavior. In my profile I'm doing a lot of things during install, basic steps are:

In myprofile_install() I set some variables, roles and set mytheme as default theme and adminimal as admin theme after enabling theme with theme_enable(). So far, in the database - especially the system table - everything looks ok.

In myprofile_install_tasks() I add two tasks, myprofile_configuration_form to add my specific configuration settings and myprofile_final_install to execute some code based on these configuration settings.

Now when loading the page for my installation task myprofile_configuration_form exactly on leaving install_display_output in includes/install.core.inc line 720 all system table records of type theme located under profiles/myprofile/themes/ disappear/are deleted. There is no reason why these records should be deleted from database or what deletes them (as it happens on executing the exit; statement of the function). After finishing the install and showing the drupal frontpage the first time, all previously lost records are in the system table again, but of course their status flag is set to 0 instead of 1 for the two themes which should be enabled.

Interestingly both themes are used as default respective admin theme in the installed site, even when being disabled. So maybe this error exists for some time without being noticed by me. In another profile I was not able to reproduce this behavior even if it is created in a similar way.

Comments

Version: 7.26 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.