jasonw4331 / MyPlot

Plot and protection plugin for PocketMine-MP
https://discord.gg/Qqcpp9Q
MIT License
101 stars 89 forks source link

The selected data provider crashed. JSON will be used instead. #479

Open BenasPaulikas opened 2 years ago

BenasPaulikas commented 2 years ago

Issue description

Steps to reproduce the issue

  1. ... Instal newest plugin version
  2. ... Enable mysql in config

OS and versions

Other Plugins

no other plugins.

Crashdump, backtrace or other files


[17:11:01.419] [Server thread/INFO]: Loading MyPlot v2.1.2
[17:11:01.427] [Server thread/DEBUG]: [MyPlot] Loading Configs
[17:11:01.428] [Server thread/DEBUG]: [MyPlot] Loading MyPlot Generator
[17:11:01.431] [Server thread/DEBUG]: [MyPlot] Loading Languages
[17:11:01.431] [Server thread/DEBUG]: [MyPlot] Loading Data Provider settings
[17:11:01.436] [Server thread/ERROR]: [MyPlot] The selected data provider crashed. JSON will be used instead.
BenasPaulikas commented 2 years ago

I also tried using following command in mysql directly

mysql> CREATE TABLE IF NOT EXISTS plotsV2 (level TEXT, X INT, Z INT, name TEXT, owner TEXT, helpers TEXT, denied TEXT, biome TEXT, pvp INT, price FLOAT, PRIMARY KEY (level, X, Z));

Result was

ERROR 1170 (42000): BLOB/TEXT column 'level' used in key specification without a key length

maybe related

jasonw4331 commented 2 years ago

ah I didn't specify the max varchar length for the world name

BenasPaulikas commented 2 years ago

@jasonwynn10 yes. Is this fixable ? Could you also include more logging if next sql statement will throw error ? This way I won't need to manually execute statements.