I WanT To Code PHP Posted May 12, 2009 Share Posted May 12, 2009 Im getting this error in my arena control panel : Fatal error: Call to undefined function staff_permissions() in /home/battleco/public_html/arenacp/index.php on line 579 Here are the lines in the file arenacp/index.php: // ************************************************* $canjob = false; if(staff_permissions("job","view_applications")){ $canjob = true; construct_nav_option("Open Applications", 'openapplication.php'); $canjob = true; construct_nav_option("Applications", 'application.php'); } if(staff_permissions("job","manage_application_questions")){ $canjob = true; construct_nav_option("Application Questions", 'appquestions.php'); } if(staff_permissions("job","manage_application_requirements")){ $canjob = true; construct_nav_option("Application Requirements", 'apprequirements.php'); } if(staff_permissions("job","manage_interview_questions")){ $canjob = true; construct_nav_option("Interview Questions", 'interview_questions.php'); } if(staff_permissions("job","manage_audit_questions")){ $canjob = true; construct_nav_option("Audit Questions", 'audit.php'); } if(staff_permissions("job","add_dnh_list") OR staff_permissions("job","edit_dnh_list")){ $canjob = true; construct_nav_option("Do Not Hire List", 'dnhlist.php'); } if(staff_permissions("job","manage_positions_available")){ $canjob = true; construct_nav_option("Positions Available", 'positions.php'); } if(staff_permissions("job","user_records")){ $canjob = true; construct_nav_option("User Records", 'user_records.php'); } if(staff_permissions("job","add_audit")){ $canjob = true; construct_nav_option("Add Audit", 'add_audit.php?do=addaudit1'); } if(staff_permissions("job","edit_audit")){ $canjob = true; construct_nav_option("Edit Audit", 'edit_audit.php?do=editaudit1'); } if(staff_permissions("job","audit_log")){ $canjob = true; construct_nav_option("Audit Log", 'audit_log.php'); } if(staff_permissions("job","psa")){ $canjob = true; construct_nav_option("Pending Staff Actions", 'psa.php'); } and so on............... Link to comment https://forums.phpfreaks.com/topic/157826-fatal-error-call-to-undefined-function/ Share on other sites More sharing options...
jackpf Posted May 12, 2009 Share Posted May 12, 2009 Where are you defining this function? And I think this is a PHP problem, not mysql. Link to comment https://forums.phpfreaks.com/topic/157826-fatal-error-call-to-undefined-function/#findComment-832416 Share on other sites More sharing options...
I WanT To Code PHP Posted May 12, 2009 Author Share Posted May 12, 2009 I have no idea..? Im new to coding and i never seen this error before... Link to comment https://forums.phpfreaks.com/topic/157826-fatal-error-call-to-undefined-function/#findComment-832471 Share on other sites More sharing options...
Ken2k7 Posted May 12, 2009 Share Posted May 12, 2009 Did you write the function staff_permissions? Link to comment https://forums.phpfreaks.com/topic/157826-fatal-error-call-to-undefined-function/#findComment-832477 Share on other sites More sharing options...
jackpf Posted May 12, 2009 Share Posted May 12, 2009 Well if you haven't defined the function, it's not going to know what to do is it? Link to comment https://forums.phpfreaks.com/topic/157826-fatal-error-call-to-undefined-function/#findComment-832496 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.