iTXTech / SynapsePM

Synapse client for PocketMine like server software. Supports multiple connections.
21 stars 17 forks source link

Return value of synapse\Synapse::isMainServer() #30

Closed ghost closed 7 years ago

ghost commented 7 years ago

CRITICAL> TypeError: "Return value of synapse\Synapse::isMainServer() must be of the type boolean, null returned" (EXCEPTION) in "/src/synapse/Synapse" at line 164

At start up

SleepSpace9 commented 7 years ago

Check your config.yml in SynapsePM plugin folder, I guess the line is-main-server: is commented out or has an invalid value or maybe the yaml format is invalid.

Possible values: is-main-server: true or is-main-server: false

ghost commented 7 years ago

@SleepSpace9 No, I've set it up. is-main-server: true
And the file did not have any problem.

SleepSpace9 commented 7 years ago

If you use Genisys, did you update your genisys.yml to the latest version so that there are no Synapse entries in it?

ghost commented 7 years ago

I using Tesseract and Synapse-PM... Is there a possibility of src problem?

dktapps commented 7 years ago

Most likely.

ghost commented 7 years ago

I'll try to use Genisys

ghost commented 7 years ago

I got the same error

Notice: Undefined index: isMainServer in D:\PMMP\Genisys0.16\src\synapse\Synapse.php on line 76 Notice: Undefined index: password in D:\PMMP\Genisys0.16\src\synapse\Synapse.php on line 77 [22:29:54] [Server thread/CRITICAL]: TypeError: "Return value of synapse\Synapse::isMainServer() must be of the type boolean, null returned" (EXCEPTION) in "/src/synapse/Synapse" at line 164

tarik02 commented 7 years ago

@fuyutsuki, it's problem with SynapsePM config. Post it here.

ghost commented 7 years ago

default

hmm....?

SleepSpace9 commented 7 years ago

Are you sure you are using the the latest SynapsePM? I ask because the line numbers of your error messages differ from this repository.

ghost commented 7 years ago

latest. I'll try again…

tarik02 commented 7 years ago

@fuyutsuki, you use not latest version of Genisys. Update it to the latest and issue must be fixed.

ghost commented 7 years ago

It was solved by reinstalling Genisys. thank you!