POT
POT
POT
Main menu

Download

Forum

SVN

Prev Next

Troubleshooting

Way of fixing most common problems with POT and scripts based on it.

Table of Contents

SQL error: Column not found: 1054 Unknown column 'loss_items' in 'field list'

You have outdated database structure - probably old OTServ release. `loss_items` field was added during development progress and is not available on older servers while POT is strictly connected with database structure of server which it is released for. You should always use POT version which is released for your OTServ version.

Note that POT does not provide database-inter-compatibility - it only provides compatible interface for each of it's release, but you have to update POT together with your database. And not updated it if your database isn't changed for newer one.

SQL error: Column not found: 1054 Unknown column 'name' in 'field list'

Same reason as above, just different field name. This one however is relatively new as account names were added very lastly.

Fatal error: Call to a member function fetch()

This should generaly not happens anymore in POT, so if you get such error it is either not caused by POT, but rather by script that uses it, or you are using ancient version of POT. Generaly such error is caused, like the two before, by incorrect database structure, but from a long time already, they were replaced with more descriptive error messages.

PDOException or other PDO related exception/error

If you have any PDO-related problem, first fo all check the database structure as generaly it should never happend with correct database. Details are described above.

Fatal error: Call to undefined method domdocument::load()

You have surely not read documentation, even POT.pkg.html, and you are just having troubles because of your laziness.

Fatal error: Uncaught exception

It is not POT-related. If you see such message it's client script's author fault. POT uses exceptions to communicate errors to program so error handling mechanism can be done flexible and clean way. But many people who are making scripts based on POT don't even bother about catching exceptions. Such a shame...

Prev Up Next
AAC scripts POT