error during installation on drupal 5.12

benjaminbradley - November 21, 2008 - 00:18
Project:RPG
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

Error during module installation.

STEPS TO REPRODUCE
* downloaded drupal, expanded tarball into .../myapp
* create the directories .../myapp/files and .../myapp/sites/all/modules/, create a cron job for the drupal installation
* go to http://myapp/install.php?profile=default & initialized database, finished admin creation
* downloaded and expanded RPG module into ...myapp/sites/all/modules/
* went to drupal administration > enable modules - enabled all RPG modules except mudslinger and snowball

reviewed error log:
PHP Fatal error: Call to undefined function _rpg_save_all_marked_objects() in ...modules/rpg/rpg.module on line 115

SOLUTION:
in rpg.module, add this line:
require_once(drupal_get_path('module', 'rpg') . '/inc/rpg.db.inc');

after this line at the top:
require_once(drupal_get_path('module', 'rpg') . '/inc/rpg.theme.inc');

reloading the page enabled the module successfully.

#1

aaron - November 21, 2008 - 02:03
Status:active» needs review

thanks! i'll patch that up over the next week or so. good to have other eyes on the module again.

 
 

Drupal is a registered trademark of Dries Buytaert.