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.
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
Comment | File | Size | Author |
---|---|---|---|
#9 | highriseapi_req_fatal_error-1336898-d7-9.patch | 4.62 KB | Albert Volkman |
#5 | highrise_review.diff | 4.85 KB | nmudgal |
Comments
Comment #1
jeremymcminn CreditAttribution: jeremymcminn commentedI'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!
Comment #2
jeremymcminn CreditAttribution: jeremymcminn commentedI 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
Comment #3
jeremymcminn CreditAttribution: jeremymcminn commentedAnd 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!
Comment #4
leeotzu CreditAttribution: leeotzu commentedDear 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.
Comment #5
nmudgal CreditAttribution: nmudgal commentedme 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.
Comment #6
ishanmahajan CreditAttribution: ishanmahajan commentedThank you nmudgal. The patch is applied to the 6.x-1.x branch and will be part of the next release.
Regards,
Ishan
Comment #7
nmudgal CreditAttribution: nmudgal commentedSo I think I can close this issue.
Thanks.
Comment #8
nmudgal CreditAttribution: nmudgal commentedsame issue for 7.x branch
Comment #9
Albert Volkman CreditAttribution: Albert Volkman commentedAdding patch for D7.
Comment #10
ishanmahajan CreditAttribution: ishanmahajan commentedThank you Albert.
The patch has been applied to the 7.x branch.