Sorry, the profile you have chosen cannot be loaded.

Events happening in the community are now at Drupal community events on www.drupal.org.
Joseph Lau's picture

When I install OpenScholar, I put all the OS files into .../apps/drupal/htdocs/profiles/ and run localhost/install.php.

The message, "Sorry, the profile you have chosen cannot be loaded.", appears after I choose the language.

What have I done wrongly?

Comments

What language did you choose?

mohhess's picture

What language did you choose? I don't know if Open Scholar supports other languages (I could be wrong though). Also, aren't the openscholar files that you downloaded a complete install package? I've never had to move files around. I have always just treated the open scholar files as if I downloaded vanilla drupal and was going to install it. The only difference being of course that I chose the OS profile when prompted to choose a profile.

(1) English as default. (2)

Joseph Lau's picture

(1) English as default.

(2) Is the path I set wrong?

What else is in your Drupal

mohhess's picture

What else is in your Drupal Folder besides htdocs? All you need to do once you untar (extract) the files is to put them in an empty folder called drupal or openscholar inside the html-public folder on your webserver. I'm not sure why you are putting the files inside the htdocs and profile folders.

Profile problem solved, but another problems come

Joseph Lau's picture

I solved the profile problem by creating a new folder, openscholar, and followed the same as standard folder or minimal folder in Drupal.

This is the next problem:

Warning: in DatabaseConnection->__construct() (line 304 of C:\BitNami\wampstack-5.3.23-0\apps\drupal\htdocs\includes\database\database.inc).
Warning: htmlspecialchars(): Invalid multibyte sequence in argument in check_plain() (line 1572 of C:\BitNami\wampstack-5.3.23-0\apps\drupal\htdocs\includes\bootstrap.inc).

And, I cannot log in the server by using "root" and the password I set previously.

How can I solve it?

Single and Multi Application

Joseph Lau's picture

I think it should be a difference between single and multi applications. When I installed BitNami WAMP, it already includes 2 applications: Heroku, and phpMyAdmin. Each application includes 2 folders: htdocs, and conf.

What should do I next?

I have the same issue

hadi farnoud's picture

I had the same issue. the openscholar profile folder is wrong. It's like /profile/openscholar/openscholar/

I moved everything to /profile/openscholar and it almost worked. until I got this error in Configure Site step.

Call to undefined function field_attach_load() in /var/www/includes/entity.inc on line 321, referer: http://acamedium.com/install.php?profile=openscholar&locale=en

did anyone successfully

hadi farnoud's picture

did anyone successfully install 3.6? I think there is a problem with it.

I am facing the same problem

Nicholar's picture

i was unable to install it successfully. Maybe the key lies in the install.core.inc file?

<?php
function install_load_profile(&$install_state) {
 
$profile_file = DRUPAL_ROOT . '/profiles/' . $install_state['parameters']['profile'] . '/' . $install_state['parameters']['profile'] . '.profile';
  if (
file_exists($profile_file)) {
    include_once
$profile_file;
   
$install_state['profile_info'] = install_profile_info($install_state['parameters']['profile'], $install_state['parameters']['locale']);
  }
  else {
    throw new
Exception(st('Sorry, the profile you have chosen cannot be loaded.'));
  }
?>

You should either follow the

rbrandon's picture

You should either follow the build instructions here: https://github.com/openscholar/openscholar/wiki/Install-on-Drupal-7

Or download the complete prebuilt package from openscholar.harvard.edu

I did download the prebuilt

hadi farnoud's picture

I did download the prebuilt package. did not work out of the box. as I explained, I had to move the profile files to one folder up.

I think prebuild package is not working in current format. tried on local, standard LAMP server and getpantheon.

marcelolaia's picture

Sorry, the profile you have chosen cannot be loaded.

I have downloaded the pre-build 7.x-3.6 from http://openscholar.harvard.edu/download and got the same!

See here: https://dl.dropboxusercontent.com/u/34009642/Fig_01.png

Patch

darrellduane's picture

https://www.drupal.org/node/2481095#comment-9881063

Here is a patch to help explain better the reasons behind this error message.

OpenScholar

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: