Wandervogel Sub-System

Version 1.1

Last Release: 08.06.2008

Website Updated: 08.06.2008

Troubleshoot

This section is provided to give solutions to known issues within the Wandervogel library.

Reporting Bugs

If you believe you've discovered a bug within the Wandervogel system please do not hesitate to contact me.

Issue List

Testing file: record_table_creator.php...

Expected: TRUE, Got: FALSE

file: /var/www/unit_tests/record_table_creator.php (Line: 34) assert_true(Boolean(FALSE))
file: /var/www/unit_tests/index.php (Line: 32) include_once(String(/var/www/unit_tests/record_table_creator.php))

Solution:

Make sure that your PHP user has permission to write to the base/prj/unit_tests/ directory
Fatal error:  Uncaught exception 'PDOException' with message 'SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: YES)' in /var/www/base/lib/dbms.php:254
Stack trace:
#0 /var/www/base/lib/dbms.php(254): PDO->__construct('mysql:host=loca...', 'root', 'Bumblebee2')
#1 /var/www/unit_tests/src/unit_tests.php(88): dbms::conn('unit_test')
#2 /var/www/unit_tests/sql.php(9): renew_database('unit_test')
#3 /var/www/unit_tests/index.php(41): include_once('/var/www/unit_t...')
#4 {main}
  thrown in /var/www/base/lib/dbms.php on line 254

Solution:

Change base/prj/unit_tests/database/unit_tests.php to contain the username and password to the unit_tests database on your location machine
Warning: Unexpected character in input: 'filename on line (x)'

Solution:

If you are editing a source file with vim that exists in the base/prj directory you must close or remove the temporary source file you are/were editing.

Vim, depending on your vimrc file, creates a binary backup file of any file you edit. The Wandervogel system attempts to load ALL files in some directories, most notably your project's databases directory. If this occurrs the system will attempt to load the vim backup file -- which causes this error.

Testing file: record.php... 

file: /var/www/unit_tests/record.php (Line: 43) assert_true(Boolean(FALSE))
file: /var/www/unit_tests/index.php (Line: 41) include_once(String(/var/www/unit_tests/record.php))

Solution:

Make sure to create at least one record in table game_types that has an ID of 1. Run this from the MySQL command line, or the GUI interface of your choice, while using the unit_test database:

mysql > INSERT INTO game_types (name) VALUES ('Adventure');