Code: Select all
Warning: file(http://www.cmxmods.net/quiz_latest.txt): failed to open stream: Connection refused in /usr/home/dan10842/public_html/forumdk/admin/admin_quiz.php on line 359
Code: Select all
Query 17 did not execute correctly
DEBUG MODE
SQL Error : 1064 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 'WHERE config_name = 'Quiz_Cash_Currency'' at line 1
UPDATE phpbb_config SET config_value = WHERE config_name = 'Quiz_Cash_Currency'
Line : 84
File : admin_quiz.php
1: When I click "Quiz" in the admin panel I get this error at the top:Code: Select all
Warning: file(http://www.cmxmods.net/quiz_latest.txt): failed to open stream: Connection refused in /usr/home/dan10842/public_html/forumdk/admin/admin_quiz.php on line 359
2: When I click "Submit" I get this error:Code: Select all
Query 17 did not execute correctly DEBUG MODE SQL Error : 1064 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 'WHERE config_name = 'Quiz_Cash_Currency'' at line 1 UPDATE phpbb_config SET config_value = WHERE config_name = 'Quiz_Cash_Currency' Line : 84 File : admin_quiz.php
Is this with or without the Cash MOD installed? (That you get the second error)
Did you run the quiz_install.php file?
Pinger_Aus wrote:Did you run the quiz_install.php file?
Yes, The Quiz Mod still functions without any problems other than the Error message in the Admin Panel after the Submit Button is pressed. After exiting the error message all updated options have been saved correctly.
Code: Select all
Warning: main(./extension.inc): failed to open stream: No such file or directory in h:\home\users\yadayadayada\public_html\forum\install\quiz_install.php on line 26
Warning: main(): Failed opening './extension.inc' for inclusion (include_path='.;c:\php4\pear') in h:\home\users\yadayadayada\public_html\forum\install\quiz_install.php on line 26
Warning: main(./common.): failed to open stream: No such file or directory in h:\home\users\yadayadayada\public_html\forum\install\quiz_install.php on line 27
Warning: main(): Failed opening './common.' for inclusion (include_path='.;c:\php4\pear') in h:\home\users\yadayadayada\public_html\forum\install\quiz_install.php on line 27
Fatal error: Call to undefined function: session_pagestart() in h:\home\users\yadayadayada\public_html\forum\install\quiz_install.php on line 29
Code: Select all
$phpbb_root_path = './';
Code: Select all
$phpbb_root_path = '../';
Code: Select all
// While this is long, it is the most efficient way to do it at this point in time. It is also the same way the phpBB dev's run a lot of queries, in update_to_latest.php :-D
$sql = array();
if($HTTP_POST_VARS['Quiz_Register_Play'] == ON )
{
$sql[] = "UPDATE " . CONFIG_TABLE . " SET config_value = " . intval($HTTP_POST_VARS['Quiz_Post_Count_Play']) . " WHERE config_name = 'Quiz_Post_Count_Play'";
$sql[] = "UPDATE " . CONFIG_TABLE . " SET config_value = " . intval($HTTP_POST_VARS['Quiz_Post_Requirement']) . " WHERE config_name = 'Quiz_Post_Requirement'";
}
$sql[] = "UPDATE " . CONFIG_TABLE . " SET config_value = " . intval($HTTP_POST_VARS['Quiz_Author_Play']) . " WHERE config_name = 'Quiz_Author_Play'";
$sql[] = "UPDATE " . CONFIG_TABLE . " SET config_value = " . intval($HTTP_POST_VARS['Quiz_show_answers']) . " WHERE config_name = 'Quiz_show_answers'";
$sql[] = "UPDATE " . CONFIG_TABLE . " SET config_value = " . intval($HTTP_POST_VARS['Quiz_Register_Play']) . " WHERE config_name = 'Quiz_Register_Play'";
$sql[] = "UPDATE " . CONFIG_TABLE . " SET config_value = " . intval($HTTP_POST_VARS['Quiz_Play_Once']) . " WHERE config_name = 'Quiz_Play_Once'";
$sql[] = "UPDATE " . CONFIG_TABLE . " SET config_value = '" . str_replace("\'", "''", htmlspecialchars($HTTP_POST_VARS['Quiz_Min_Max_Questions'])) . "' WHERE config_name = 'Quiz_Min_Max_Questions'";
$sql[] = "UPDATE " . CONFIG_TABLE . " SET config_value = '" . str_replace("\'", "''", htmlspecialchars($HTTP_POST_VARS['Quiz_Moderators'])) . "' WHERE config_name = 'Quiz_Moderators'";
$sql[] = "UPDATE " . CONFIG_TABLE . " SET config_value = '" . str_replace("\'", "''", htmlspecialchars($HTTP_POST_VARS['Quiz_Banned'])) . "' WHERE config_name = 'Quiz_Banned'";
$sql[] = "UPDATE " . CONFIG_TABLE . " SET config_value = '" . str_replace("\'", "''", htmlspecialchars($HTTP_POST_VARS['Quiz_Author_Mod'])) . "' WHERE config_name = 'Quiz_Author_Mod'";
$sql[] = "UPDATE " . CONFIG_TABLE . " SET config_value = " . intval($HTTP_POST_VARS['Quiz_Stats_Display']) . " WHERE config_name = 'Quiz_Stats_Display'";
$sql[] = "UPDATE " . CONFIG_TABLE . " SET config_value = " . intval($HTTP_POST_VARS['Quiz_Mod_Submit']) . " WHERE config_name = 'Quiz_Mod_Submit'";
$sql[] = "UPDATE " . CONFIG_TABLE . " SET config_value = " . intval($HTTP_POST_VARS['Quiz_CashMOD_On']) . " WHERE config_name = 'Quiz_CashMOD_On'";
$sql[] = "UPDATE " . CONFIG_TABLE . " SET config_value = " . intval($HTTP_POST_VARS['Quiz_CashMOD_On']) . " WHERE config_name = 'Quiz_CashMOD_On'";
$sql[] = "UPDATE " . CONFIG_TABLE . " SET config_value = " . intval($HTTP_POST_VARS['Quiz_admin_cash_correct']) . " WHERE config_name = 'Quiz_Cash_Correct'";
$sql[] = "UPDATE " . CONFIG_TABLE . " SET config_value = " . intval($HTTP_POST_VARS['Quiz_admin_cash_incorrect']) . " WHERE config_name = 'Quiz_Cash_Incorrect'";
$sql[] = "UPDATE " . CONFIG_TABLE . " SET config_value = " . intval($HTTP_POST_VARS['Quiz_admin_cash_tax']) . " WHERE config_name = 'Quiz_Cash_Tax'";
$sql[] = "UPDATE " . CONFIG_TABLE . " SET config_value = " . str_replace("\'", "''", htmlspecialchars($HTTP_POST_VARS['Quiz_admin_cash_currency'])) . " WHERE config_name = 'Quiz_Cash_Currency'";