Skip to content

Exception: Sorry, the profile you have chosen cannot be loaded. in install_load_profile(). [$15] #17

@kenorb

Description

@kenorb
$ phing ads-install
Starting Drupal installation. This takes a few seconds ...
WD php: Exception: Sorry, the profile you have chosen cannot be loaded. in install_load_profile() (line 1372 of src/includes/install.core.inc).

This error happening with the recent version.
Could be related: #87

Reproducible steps:

Requirements: You need phing and drush installed.

  1. Close the repo and cd ads.

  2. Build it by phing command then re-edit build.properties (just remove properties.notset), then run phing again. (you don't need to repeat this step again)

  3. Create empty db (e.g. CREATE DATABASE ads) if required.

  4. Install the profile from the command-line (change your db url to yours):

    $ drush -r src/ --verbose --yes site-install ads --db-url=mysqli://root:root@localhost:3306/ads --account-name=admin --account-mail="ads@niepodam.pl" --account-pass="admin" --site-mail="ads@niepodam.pl" --site-name="ADS" install_configure_form.site_default_country="GB" install_configure_form.date_default_timezone="Europe/London" update_notifications.update_status_module="1" variables.file_private_path="sites/default/private/files"
    

You should see the error:

exception 'Exception' with message 'Sorry, the profile you have chosen cannot be loaded.' in /Users/kenorb/temp/ads/ads/src/includes/install.core.inc:1377 [error]

When xdebug is installed, the following Stack trace is produced:

Stack trace:
#0 ~/temp/ads/ads/src/includes/install.core.inc(471): install_load_profile(Array)
#1 ~/temp/ads/ads/src/includes/install.core.inc(339): install_run_task(Array, Array)
#2 ~/temp/ads/ads/src/includes/install.core.inc(77): install_run_tasks(Array)
#3 ~/.composer/vendor/drush/drush/includes/drush.inc(719): install_drupal(Array)
#4 ~/.composer/vendor/drush/drush/includes/drush.inc(705): drush_call_user_func_array('install_drupal', Array)
#5 ~/.composer/vendor/drush/drush/commands/core/drupal/site_install_7.inc(80): drush_op('install_drupal', Array)
#6 ~/.composer/vendor/drush/drush/commands/core/site_install.drush.inc(289): drush_core_site_install_version('ads', Array)
#7 [internal function]: drush_core_site_install('ads', 'install_configu...', 'install_configu...', 'update_notifica...', 'variables.file_...')
#8 ~/.composer/vendor/drush/drush/includes/command.inc(364): call_user_func_array('drush_core_site...', Array)
#9 ~/.composer/vendor/drush/drush/includes/command.inc(215): _drush_invoke_hooks(Array, Array)
#10 [internal function]: drush_command('ads', 'install_configu...', 'install_configu...', 'update_notifica...', 'variables.file_...')
#11 ~/.composer/vendor/drush/drush/includes/command.inc(183): call_user_func_array('drush_command', Array)
#12 ~/.composer/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(62): drush_dispatch(Array)
#13 ~/.composer/vendor/drush/drush/drush.php(70): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#14 ~/.composer/vendor/drush/drush/drush.php(11): drush_main()
#15 {main}

The same should probably happen when installing from GUI.
The same happens when run: phing ads-install when using project.drupal.build.stable=false in property file.

The broken logic or something missing could be in ads.profile, ads.install or in includes/*.inc files, or somewhere else.

Google: "Sorry, the profile you have chosen cannot be loaded" for more details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions