Проблем с приемане на предизвикателство

plamchoo

Registered
Имам проблем с приемането, отправям към даден човек предизвикателство, той го получава, но като се опита да го приеме и му изкарва следната грешка :
Код:
EXCEPTION CLASS: db_mysql_exception

MESSAGE: SQL query has failed.

SQL: INSERT INTO rivals_matches (match_challenger, match_challengee, match_posttime, ladder_id) VALUES (14, 13, 1269611618, 9)

SQL Error: Field 'match_status' doesn't have a default value



[/var/www/shared/fgbulgaria/betaforum/rivals_app/core/dbal/db_mysql.php] (137)... db_mysql->sql_insert(rivals_matches,Array);

    * 109

          'match_challenger' => $row[ 'challenger' ],

    * 110

          'match_challengee' => $row[ 'challengee' ],

    * 111

          'match_posttime' => time ( ),

    * 112

          'ladder_id' => $row[ 'ladder_id' ] )

    * 113

         );

    * 114


    * 115

         // Delete the challenge, its now a match.

    * 116

         $sql = "DELETE FROM " . CHALLENGES_TABLE . " WHERE challenge_id = $challenge_id";

    * 117

         registry::$db->sql_query ( $sql );

    * 118


    * 119

         /* CLAN MESSAGES */


TRACE

    * 1

      [/var/www/shared/fgbulgaria/betaforum/rivals_app/ccp/ccp_challenges.php] (114) db_mysql->sql_insert(rivals_matches,Array);

    * 2

      [/var/www/shared/fgbulgaria/betaforum/rivals_app/index.php] (108) ccp_challenges->submit();
 
Какво съдържа това поле match_status.
Или в заявката му сложи някаква стойност (при ИНСЕРТ-а), или в phpMyAdmin му добави някаква стойност по подразбиране.
 
Replace каза:
Какво съдържа това поле match_status.
Или в заявката му сложи някаква стойност (при ИНСЕРТ-а), или в phpMyAdmin му добави някаква стойност по подразбиране.
Супер си, обаче сега ми изкочи друга грешка ето:
Код:
EXCEPTION CLASS: db_mysql_exception

MESSAGE: SQL query has failed.

SQL: INSERT INTO rivals_tournaments (tournament_name, tournament_details, tournament_plugin, tournament_invite, tournament_startdate, tournament_numclans, tournament_status, tournament_posttime, ladder_id) VALUES ('Tournament', 'nqa', 4, 13, 1269554400, 2, 1, 1269618306, 9)

SQL Error: Field 'tournament_bracket' doesn't have a default value



[/var/www/shared/fgbulgaria/betaforum/rivals_app/core/dbal/db_mysql.php] (137)... db_mysql->sql_insert(rivals_tournaments,Array);

    * 226

         'tournament_numclans' => $tournament_numclans,

    * 227

         'tournament_status' => TOURNAMENT_UNACTIVE,

    * 228

         'tournament_posttime' => time ( ),

    * 229

         'ladder_id' => $ladder_id )

    * 230

        );

    * 231


    * 232

        // Completed. Let the user know.

    * 233

        registry::$plugin->run_hooks ( 'acp_tournaments_add_tournament_submit_end' );

    * 234

        print registry::$lang->get ( 'TOURNAMENT_ADDED' );

    * 235

       }

    * 236



TRACE

    * 1

      [/var/www/shared/fgbulgaria/betaforum/rivals_app/acp/acp_tournaments.php] (231) db_mysql->sql_insert(rivals_tournaments,Array);

    * 2

      [/var/www/shared/fgbulgaria/betaforum/rivals_app/index.php] (108) acp_tournaments->add_tournament_submit();
 
Replace каза:
Грешката ти е същата, полето е друго :?:
Да, забелязах, отново ти благодаря имаш реп от мене, но както винаги пак грешка. Следната :
Код:
[phpBB Debug] PHP Notice: in file /rivals_app/tournaments.php on line 128: in_array() [function.in-array]: Wrong datatype for second argument
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4285: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4287: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4288: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4289: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
 

Back
Горе