massimo-me / PokemonGo-Farm

[Unmantained] Web app to manage and run your PokémonGo-Bot - Gotta Catch 'Em All 👻
23 stars 15 forks source link

Error while php -S 127.0.0.1:8080 -t web #11

Open LUCKASSs opened 7 years ago

LUCKASSs commented 7 years ago

Hello guys, I got this error when I type php -S 127.0.0.1:8080 -t web and when I go to 127.0.0.1:8080 in a web browser

(I'm running with this bot on Ubuntu Mate : https://github.com/PokemonGoF/PokemonGo-Bot)

[Tue Sep  6 17:46:27 2016] PHP Warning:  file_get_contents(/home/luca/PokemonGo-Farm/src/../app/config/parameters.json): failed to open stream: No such file or directory in /home/luca/PokemonGo-Farm/src/SilexApp.php on line 277
[Tue Sep  6 17:46:27 2016] PHP Fatal error:  Uncaught Error: Unsupported operand types in /home/luca/PokemonGo-Farm/src/SilexApp.php:282
Stack trace:
#0 /home/luca/PokemonGo-Farm/src/SilexApp.php(101): ChiarilloMassimo\PokemonGo\Farm\SilexApp->getParameters()
#1 [internal function]: ChiarilloMassimo\PokemonGo\Farm\SilexApp->registerConfigurations(Object(Silex\Application))
#2 /home/luca/PokemonGo-Farm/src/SilexApp.php(56): call_user_func(Array, Object(Silex\Application))
#3 [internal function]: ChiarilloMassimo\PokemonGo\Farm\SilexApp->ChiarilloMassimo\PokemonGo\Farm\{closure}(Array)
#4 /home/luca/PokemonGo-Farm/src/SilexApp.php(69): array_map(Object(Closure), Array)
#5 /home/luca/PokemonGo-Farm/src/SilexApp.php(42): ChiarilloMassimo\PokemonGo\Farm\SilexApp->configure(Object(Silex\Application))
#6 /home/luca/PokemonGo-Farm/web/index.php(5): ChiarilloMassimo\PokemonGo\Farm\SilexApp::getInstance()
#7 {main}
  thrown in /home/luca/PokemonGo-Farm/src/SilexApp.php on line 282
[Tue Sep  6 17:46:27 2016] 127.0.0.1:41665 [500]: / - Uncaught Error: Unsupported operand types in /home/luca/PokemonGo-Farm/src/SilexApp.php:282
Stack trace:
#0 /home/luca/PokemonGo-Farm/src/SilexApp.php(101): ChiarilloMassimo\PokemonGo\Farm\SilexApp->getParameters()
#1 [internal function]: ChiarilloMassimo\PokemonGo\Farm\SilexApp->registerConfigurations(Object(Silex\Application))
#2 /home/luca/PokemonGo-Farm/src/SilexApp.php(56): call_user_func(Array, Object(Silex\Application))
#3 [internal function]: ChiarilloMassimo\PokemonGo\Farm\SilexApp->ChiarilloMassimo\PokemonGo\Farm\{closure}(Array)
#4 /home/luca/PokemonGo-Farm/src/SilexApp.php(69): array_map(Object(Closure), Array)
#5 /home/luca/PokemonGo-Farm/src/SilexApp.php(42): ChiarilloMassimo\PokemonGo\Farm\SilexApp->configure(Object(Silex\Application))
#6 /home/luca/PokemonGo-Farm/web/index.php(5): ChiarilloMassimo\PokemonGo\Farm\SilexApp::getInstance()
#7 {main}
  thrown in /home/luca/PokemonGo-Farm/src/SilexApp.php on line 282

thx !

LUCKASSs commented 7 years ago

@ChiarilloMassimo

massimo-me commented 7 years ago

Please check if app/config/parameters.json exists.

LUCKASSs commented 7 years ago

@ChiarilloMassimo ok that work fine but I have 2 other questions :

How to link the bot to the UI ? (I have this bot : https://github.com/PokemonGoF/PokemonGo-Bot) I have already set up the bot inside PokemonGo-Farm/PokemonGo-Bot, the bot works fine but the bot doesn't link with the UI I set the websocket to 'true' in the bot config

thx

LUCKASSs commented 7 years ago

@ChiarilloMassimo