I am tring to install the live_agent module. When I go to enable the module, I get the following errors:
Notice: Use of undefined constant DRUPAL_ROOT - assumed 'DRUPAL_ROOT' in /sites/all/modules/live_agent/live_agent.module on line 319
Warning: require_once(DRUPAL_ROOT/includes/errors.inc) [function.require-once]: failed to open stream: No such file or directory in /sites/all/modules/live_agent/live_agent.module on line 319
Fatal error: require_once() [function.require]: Failed opening required 'DRUPAL_ROOT/includes/errors.inc' (include_path='.:/usr/share/pear:/usr/share/php') in /sites/all/modules/live_agent/live_agent.module on line 319
The code causing the error is the following one.
/* 318 */ function live_agent_buttons_form(&$form_state) {
/* 319 */ global $base_url;
/* 320 */
/* 321 */ $settings = new liveagent_Settings();
/* 322 */ $la_buttons_grid = $settings->getButtonsGridRecordset();
/* 323 */ $recordset = $la_buttons_grid->toArray();
/* 324 */
// ...
/* 373 */ }
Any help on debugging this would be greatly appreciated.
require_once
as the error message states, so you appear to have pasted the wrong code. Bugs in modules a considered off-topic for this site. – Letharion Feb 25 at 18:59