Have enabled the module, and clicked on the link to the "Multisite Manager settings" (admin/settings/multisite_manager), and have received the PHP error message:

Fatal error: Call to undefined function minimal_profile_details() in /home/public_html/sites/all/modules/multisite_manager/multisite_manager.module on line 210

Am investigating the cause, but I just wanted to add a post in case someone else encountered the same. Time to read the installation notes!

Comments

schuyler1d’s picture

Status: Active » Closed (works as designed)

That's an error that is coming from your Profile code (which multisite_manager is calling). There is no multisite_manager function with that name.

iantresman’s picture

Status: Closed (works as designed) » Active

The install.txt looks a bit complicated, but the Help summary looks better:

  1. Configure the Multisite Manager defaults for where new sites will be added to the database.
  2. Make a special settings.php file in the /sites/ drupal directory. (This tool will help)
  3. Change your Apache config, probably in your Drupal .htaccess file.
  4. For the default setup you need a symlink in your main Drupal directory. After changing to that directory, run $ ln -s . site
  5. Lastly, the DB account that runs the main site must have extra DB permissions to create databases and grant privileges

It seems I can access the tool mentioned, at admin/settings/multisite_manager/phpsettingfile, but odd that I can't do item 1 first.

schuyler1d’s picture

uh, you HAVE to do item 1 first or the settings-file-tool will give you the settings for the default rather than your desired result.

iantresman’s picture

1. "That's an error that is coming from your Profile code"

So far I've enabled the module, and clicked on "Multisite Manager settings", so I'm not aware of having set any profile. But isn't item #1, "Configure the Multisite Manager" where I'm getting the errror? It seems I have to do some other preparation first.

2. When I click the tool, I get an error: ERROR: no link or db url
Is this referring to the symlink symbolic link? I don't think I can do these easily, so is the htaccess modification sufficient?

schuyler1d’s picture

The multisite manage settings page will probably load the profile PHP in your profiles/ directory (unlike most of Drupal) in order to load which profiles you have available. So if you put some code there that has bugs, the rest of your drupal site will work (until you try a new Drupal install, probably), but Multisite_manager will break. Try (temporarily) clearing all but the default profile in the profiles/ directory and see if the error persists.

iantresman’s picture

Ah ha! Problem solved. I'd never really paid any attention to the /profile folder, as I stick my profiles in sites/default. But I just discovered in the /profile directory, profiles for /minimal and /standard. Turns out they are from a previous Drupal 7 install.

Having deleted the
and profiles/standard, I can now enter "Multisite Manager settings" without error.

Is it possible for Multisite Manager to error check this kind of problem, so that it does not cause a critical PHP error?

schuyler1d’s picture

interesting idea. maybe we can do a try{} catch{}. again.

iantresman’s picture

If my original error was giving a "Call to undefined function" error, can you not just use a PHP "function_exists" test, which would test whether an incompatible, or undefined profile is present?

schuyler1d’s picture

If my original error was giving a "Call to undefined function" error, can you not just use a PHP "function_exists" test, which would test whether an incompatible, or undefined profile is present?

No, because it wasn't me calling the undefined function, but your profile script. I don't know if it works but hopefully a try{ include_once('') } catch{} can catch things like that.

btw, I'll be on vacation for a week, so feel free to send me a patch before I return :-)