I'm facing an issue with Monsta FTP. When I try to login, i come up with an Error like "Error! An unknown error occured during authentication."
The request to api comes back with the following error:
Code
- Fatal error: Uncaught Exception: Expected to write 6 bytes but only wrote in /var/www/imscp/gui/vendor/imscp/monsta-ftp/mftp/application/api/file_sources/connection/mftp_functions.php:1035
- Stack trace:
- #0 /var/www/imscp/gui/vendor/imscp/monsta-ftp/mftp/application/api/file_sources/connection/mftp_functions.php(675): _mftp_put_cmd(Object(mftp_conn), 'QUIT\r\n')
- #1 /var/www/imscp/gui/vendor/imscp/monsta-ftp/mftp/application/api/file_sources/connection/MFTPConnection.php(80): mftp_disconnect(Object(mftp_conn))
- #2 /var/www/imscp/gui/vendor/imscp/monsta-ftp/mftp/application/api/file_sources/connection/ConnectionBase.php(157): MFTPConnection->handleDisconnect()
- #3 /var/www/imscp/gui/vendor/imscp/monsta-ftp/mftp/application/api/request_processor/RequestDispatcher.php(161): ConnectionBase->disconnect()
- #4 /var/www/imscp/gui/vendor/imscp/monsta-ftp/mftp/application/api/request_processor/RequestMarshaller.php(77): RequestDispatcher->disconnect()
- #5 /var/www/imscp/gui/vendor/imscp/monsta-ftp/mftp/application/api/api.php(60): Reques in /var/www/imscp/gui/vendor/imscp/monsta-ftp/mftp/application/api/file_sources/connection/mftp_functions.php on line 1035
That is possibly the piece of code where the error occurs:
Code
- if (!is_null($connection->logger))
- $connection->logger->log($command);
- $bytesWritten = fwrite($connection->commandSocket, $command);
- if ($bytesWritten === FALSE || $bytesWritten != strlen($command))
- throw new Exception("Expected to write " . strlen($command) . " bytes but only wrote $bytesWritten");
I tried to update Monsta FTP, but same again. What can I do? Any suggestions?