This is a documentation for Board Game Arena: play board games online !

ผลต่างระหว่างรุ่นของ "Troubleshooting"

จาก Board Game Arena
ไปยังการนำทาง ไปยังการค้นหา
(Created page with "Describing common errors which is hard to understand and debug == Game does not start at all == === Undefined offset: 0 in table/table.game.php on line 830 === You are lik...")
 
บรรทัดที่ 6: บรรทัดที่ 6:


You are likely calling self::getActivePlayerName () during setupNewGame()
You are likely calling self::getActivePlayerName () during setupNewGame()
=== Unexpected error: Wrong formatted data from BGA gameserver 1 (method: createGame): ... ===
This is generic message usually followed by exact position in your source code, and usually its syntax error in one of yours php script
== Predefined server errors ==
=== Unexpected final state XX ===
The action function does not transition to any state, i.e.
  selectField($field) {
    self::checkAction ( 'selectField' );
    if ($field!=0) $this->gamestate->nextState ( 'next' );
  }
Here if $field is 0 there is no transition
== Game interface hangs during reload ==
Showing "Application Loading..."
=== Javascript error: During pageload undefined no_stack_avail Script: ===
This error usually has no useful data, but it means you called somes API that require a callback and did not define callback function, i.e
in dojo.connect, this.connectClass, dojo.subscribe, etc
 
      this.connectClass('field', 'onclick', 'onField'); // <-- onField is not defined

รุ่นแก้ไขเมื่อ 21:51, 18 มิถุนายน 2559

Describing common errors which is hard to understand and debug

Game does not start at all

Undefined offset: 0 in table/table.game.php on line 830

You are likely calling self::getActivePlayerName () during setupNewGame()

Unexpected error: Wrong formatted data from BGA gameserver 1 (method: createGame): ...

This is generic message usually followed by exact position in your source code, and usually its syntax error in one of yours php script

Predefined server errors

Unexpected final state XX

The action function does not transition to any state, i.e.

 selectField($field) {
   self::checkAction ( 'selectField' );
   if ($field!=0) $this->gamestate->nextState ( 'next' );
 }

Here if $field is 0 there is no transition

Game interface hangs during reload

Showing "Application Loading..."

Javascript error: During pageload undefined no_stack_avail Script:

This error usually has no useful data, but it means you called somes API that require a callback and did not define callback function, i.e in dojo.connect, this.connectClass, dojo.subscribe, etc

     this.connectClass('field', 'onclick', 'onField'); // <-- onField is not defined