Skip to content

Catch and handle exceptions. Invalid FEN causes fatal error #8

Description

@RedDragonWebDesign

4k3/8/8/8/8/5N2/8/1N2K3 w KQkq d6 0 5

Fatal error: Uncaught Exception: Invalid FEN - Castling permissions set to TRUE but rook is missing in D:\Dropbox\Code\chess\chess_v2.2 [before putting on Red Dragon Web Design]\models\ChessRulebook.php on line 646

8/8/2n2n2/3pp3/4P3/3P1N2/PPP1BPPP/RNBQK2R w KQkq d6 0 5

Fatal error: Uncaught TypeError: Argument 3 passed to ChessRulebook::square_is_attacked() must be an instance of ChessSquare, null given, called in D:\Dropbox\Code\chess\chess_v2.2 [before putting on Red Dragon Web Design]\models\ChessRulebook.php on line 675 and defined in D:\Dropbox\Code\chess\chess_v2.2 [before putting on Red Dragon Web Design]\models\ChessRulebook.php on line 794

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions