easy-wi / developer

Gameserver, Voiceserver Webinterface
https://easy-wi.com
GNU General Public License v3.0
221 stars 83 forks source link

[BUG] PHP 8 Reseller Issue #1322

Open AEon-Jan opened 2 years ago

AEon-Jan commented 2 years ago

New Issue:

PHP 8 - I Created a Reseller Account and after this ONLY the Reseller was able to control servers. If you try to start a Server outside of the Reseller you get this message:

AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: ftp_size(): Argument #2 ($filename) must be of type string, array given in /XXXXXX/stuff/methods/class_ftp.php:113\nStack trace:\n#0 /XXXXXX/stuff/methods/class_ftp.php(113): ftp_size()\n#1 /XXXXXX/stuff/methods/class_app.php(1342): EasyWiFTP->downloadToTemp()\n#2 /XXXXXX/stuff/methods/class_app.php(1819): AppServer->correctProtectedFiles()\n#3 /XXXXXX/stuff/admin/gameserver.php(740): AppServer->startApp()\n#4 /XXXXXX/admin.php(53): include('...')\n#5 {main}\n thrown in /XXXXXX/stuff/methods/class_ftp.php on line 113', referer: https://XXXXXXXXX/admin.php?w=gs

Only in PHP8 i will take a look... when i got time