I got this error after enabling module

Fatal error: require_once() [function.require]: Failed opening required 'lib/HighriseAPI.class.php' (include_path='.:/Applications/MAMP/bin/php5/lib/php') in /Applications/MAMP/htdocs/score/trunk/drupal6/sites/all/modules/highrise/highrise.module on line 3

Looks like either file is missing or pointer is wrong. You might wanna implement hook_requirements to prevent such issues, a thought!

Thanks

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jeremymcminn’s picture

I'm also receiving this error - Any idea as to what I can do to fix it? Im not a coder or developer so my skills are pretty basic!

jeremymcminn’s picture

I am also receiving this error after creating a mapping.

user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 query: INSERT INTO highrise_mappings VALUES in /var/www/vhosts/examplewebsite.com/httpdocs/sites/all/modules/highrise/highrise.admin.inc on line 209

jeremymcminn’s picture

And after submitting a webform, I get this

Fatal error: Uncaught exception 'Exception' with message 'API for Person returned Status Code: 400 Expected Code: 201' in /var/www/vhosts/examplewebsite.com/httpdocs/sites/all/modules/highrise/lib/HighriseAPI.class.php:137 Stack trace: #0 /var/www/vhosts/examplewebsite.com/httpdocs/sites/all/modules/highrise/lib/HighriseAPI.class.php(1760): HighriseAPI->checkForErrors('Person', 201) #1 /var/www/vhosts/examplewebsite.com/httpdocs/sites/all/modules/highrise/highrise.module(134): HighrisePerson->save() #2 /var/www/vhosts/examplewebsite.com/httpdocs/includes/form.inc(781): highrise_add_contact(Array, Array) #3 /var/www/vhosts/examplewebsite.com/httpdocs/includes/form.inc(421): form_execute_handlers('submit', Array, Array) #4 /var/www/vhosts/examplewebsite.com/httpdocs/includes/form.inc(120): drupal_process_form('webform_client_...', Array, Array) #5 /var/www/vhosts/examplewebsite.com/httpdocs/sites/all/modules/webform/webform.module(1327): drupal_get_form('webform_client_...', Object(stdClas in /var/www/vhosts/examplewebsite.com/httpdocs/sites/all/modules/highrise/lib/HighriseAPI.class.php on line 137

I think what I will do is uninstall this module and leave it as I do not have the skills to troublehsoot these errors. Great potential for the module though!

leeotzu’s picture

Dear johnyfiasco,

The reason the module is giving fatal error is due the fact that there is a missing php class which the code is trying to find out in lib directory of the module. As per the README.txt file of the module I would recommend you to please download the file HighriseAPI.class.php from https://github.com/ignaciovazquez/Highrise-PHP-Api/tree/master/lib and copy the file in the lib folder of the highrise module.

Please do let us know if the solution mentioned above resolved your problem.

nmudgal’s picture

Status: Active » Needs review
FileSize
4.85 KB

me too missed README actually :D
Anyways, to resolve this little issue, I have implemented hook_requirement so that users gets error while installing module if user doesn't put file in lib directory. I have attached patch which contains implementation & also resolved a few coder issues.

Thanks.

ishanmahajan’s picture

Status: Needs review » Fixed

Thank you nmudgal. The patch is applied to the 6.x-1.x branch and will be part of the next release.

Regards,
Ishan

nmudgal’s picture

Status: Fixed » Closed (fixed)

So I think I can close this issue.

Thanks.

nmudgal’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Closed (fixed) » Needs work

same issue for 7.x branch

Albert Volkman’s picture

Status: Needs work » Needs review
FileSize
4.62 KB

Adding patch for D7.

ishanmahajan’s picture

Status: Needs review » Fixed

Thank you Albert.
The patch has been applied to the 7.x branch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.