I am getting the following error when I try to install open scholar:

Fatal error: Call to undefined function install_include() in /home1/thebleyt/public_html/strivingfarmer/profiles/openscholar/openscholar.profile on line 233

It comes during the 'profile' section of the install after configuring the database.

Any suggestions on a fix?

CommentFileSizeAuthor
error.jpg220.23 KBstbleything

Comments

stbleything’s picture

Here is what it says on line 233
230 // Run additional configuration tasks
231 // @todo Review all the cache/rebuild options at the end, some of them may not be needed
232 if ($task == 'openscholar-configure') {
233 install_include(_openscholar_core_modules());
// create roles
_openscholar_create_roles();

rbrandon’s picture

It appears that the install_profile_api did not get installed correctly. Do you receive any other errors in the error log, I would guess that the install/enable of the modules is failing at some point.

What db/ version of php are you using?

-Richard

JoeM07’s picture

I am getting the exact same error message. I am running my drupal install on a godaddy shared hosting account with php 5.2 and mysql 5.0.

JoeM07’s picture

they may be a simple question, but where do I find the error log for the installation? what is the name of the file?

JoeM07’s picture

I have deleted the function call to install_include and now I get the following error...
Fatal error: Call to undefined function install_add_role() in /home/content/t/w/o/twowsinctest/html/profiles/openscholar/openscholar.profile on line 391

commented out lines 391, 392
function _openscholar_create_roles(){
// install_add_role('scholar admin');
// install_add_role('scholar user');
}

now get the following error:
Fatal error: Call to undefined function install_default_theme() in /home/content/t/w/o/twowsinctest/html/profiles/openscholar/openscholar.profile on line 281

as I keep commenting out these function calls, it seems to me that the custom functions are not found... or at least I think they are custom functions...not part of php or drupal's hooking system??

my clean urls is not enabled, could this cause this kind of problem? I don't think so, but maybe????

please, please help...

ferdi’s picture

install_include should be there. Since I cannot reproduce this issue, can you please try to move 'install_profile_api' before 'activity' (in _openscholar_core_modules() function) ?

Thanks!

JoeM07’s picture

Thank you. OpenScholar works great.

JoeM07’s picture

Status: Active » Closed (fixed)