1
Jyotirmaya
Blue Moon survey and PHP5
  • 2005/7/6 13:34

  • Jyotirmaya

  • Not too shy to talk

  • Posts: 105

  • Since: 2005/2/10


I keep getting this error message when I run it on my PHP5 system
Fatal error: Cannot redeclare bmsurvey_init() in /opt/lampp/htdocs/itportal/modules/bmsurvey/conf.php on line 23

PHP 4 is fine.(but my production system is 5....
"You are never alone or helpless, the force that guides the stars guides you too"

2
dashbord
Re: Blue Moon survey and PHP5
  • 2005/7/6 15:31

  • dashbord

  • Just popping in

  • Posts: 39

  • Since: 2004/4/19


I didn't test any about bmsurvey for PHP5.
It's just a point of answer for you, but I supporse lot of warnings and errors after that.

Good luck,
bmsurvey_init();

function 
bmsurvey_init(){
    global 
$xoopsDB;
    
define('TABLE_REALM', $xoopsDB->prefix("bmsurvey_realm"));
    
define('TABLE_RESPONDENT', $xoopsDB->prefix("bmsurvey_respondent"));
    
define('TABLE_DESIGNER', $xoopsDB->prefix("bmsurvey_designer"));
    
define('TABLE_SURVEY', $xoopsDB->prefix("bmsurvey_survey" ));
    
define('TABLE_QUESTION_TYPE', $xoopsDB->prefix("bmsurvey_question_type" ));
    
define('TABLE_QUESTION', $xoopsDB->prefix("bmsurvey_question" ));
    
define('TABLE_QUESTION_CHOICE', $xoopsDB->prefix("bmsurvey_question_choice" ));
    
define('TABLE_ACCESS', $xoopsDB->prefix("bmsurvey_access" ));
    
define('TABLE_RESPONSE', $xoopsDB->prefix("bmsurvey_response" ));
    
define('TABLE_RESPONSE_BOOL', $xoopsDB->prefix("bmsurvey_response_bool" ));
    
define('TABLE_RESPONSE_SINGLE', $xoopsDB->prefix("bmsurvey_response_single" ));
    
define('TABLE_RESPONSE_MULTIPLE', $xoopsDB->prefix("bmsurvey_response_multiple" ));
    
define('TABLE_RESPONSE_RANK', $xoopsDB->prefix("bmsurvey_response_rank" ));
    
define('TABLE_RESPONSE_TEXT', $xoopsDB->prefix("bmsurvey_response_text" ));
    
define('TABLE_RESPONSE_OTHER', $xoopsDB->prefix("bmsurvey_response_other" ));
    
define('TABLE_RESPONSE_DATE', $xoopsDB->prefix("bmsurvey_response_date" ));

    
define('TABLE_', $xoopsDB->prefix("bmsurvey_" ));

}
TO
global $xoopsDB;
    
define('TABLE_REALM', $xoopsDB->prefix("bmsurvey_realm"));
    
define('TABLE_RESPONDENT', $xoopsDB->prefix("bmsurvey_respondent"));
    
define('TABLE_DESIGNER', $xoopsDB->prefix("bmsurvey_designer"));
    
define('TABLE_SURVEY', $xoopsDB->prefix("bmsurvey_survey" ));
    
define('TABLE_QUESTION_TYPE', $xoopsDB->prefix("bmsurvey_question_type" ));
    
define('TABLE_QUESTION', $xoopsDB->prefix("bmsurvey_question" ));
    
define('TABLE_QUESTION_CHOICE', $xoopsDB->prefix("bmsurvey_question_choice" ));
    
define('TABLE_ACCESS', $xoopsDB->prefix("bmsurvey_access" ));
    
define('TABLE_RESPONSE', $xoopsDB->prefix("bmsurvey_response" ));
    
define('TABLE_RESPONSE_BOOL', $xoopsDB->prefix("bmsurvey_response_bool" ));
    
define('TABLE_RESPONSE_SINGLE', $xoopsDB->prefix("bmsurvey_response_single" ));
    
define('TABLE_RESPONSE_MULTIPLE', $xoopsDB->prefix("bmsurvey_response_multiple" ));
    
define('TABLE_RESPONSE_RANK', $xoopsDB->prefix("bmsurvey_response_rank" ));
    
define('TABLE_RESPONSE_TEXT', $xoopsDB->prefix("bmsurvey_response_text" ));
    
define('TABLE_RESPONSE_OTHER', $xoopsDB->prefix("bmsurvey_response_other" ));
    
define('TABLE_RESPONSE_DATE', $xoopsDB->prefix("bmsurvey_response_date" ));

    
define('TABLE_', $xoopsDB->prefix("bmsurvey_" ));
bluemooninc.biz

3
leseci
Re: Blue Moon survey and PHP5
  • 2009/5/26 4:34

  • leseci

  • Just popping in

  • Posts: 9

  • Since: 2005/3/5 2


Hello
Should delete this
bmsurvey_init();

function bmsurvey_init(){


delete the final }