Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
schuyler1d CreditAttribution: schuyler1d commentedThat's an error that is coming from your Profile code (which multisite_manager is calling). There is no multisite_manager function with that name.
Comment #2
iantresman CreditAttribution: iantresman commentedThe install.txt looks a bit complicated, but the Help summary looks better:
It seems I can access the tool mentioned, at
admin/settings/multisite_manager/phpsettingfile
, but odd that I can't do item 1 first.Comment #3
schuyler1d CreditAttribution: schuyler1d commenteduh, 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.
Comment #4
iantresman CreditAttribution: iantresman commented1. "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?
Comment #5
schuyler1d CreditAttribution: schuyler1d commentedThe 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.
Comment #6
iantresman CreditAttribution: iantresman commentedAh ha! Problem solved. I'd never really paid any attention to the
/profile
folder, as I stick my profiles insites/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?
Comment #7
schuyler1d CreditAttribution: schuyler1d commentedinteresting idea. maybe we can do a try{} catch{}. again.
Comment #8
iantresman CreditAttribution: iantresman commentedIf 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?
Comment #9
schuyler1d CreditAttribution: schuyler1d commentedIf 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 :-)