The original string breaks down into two parts and add by "."
i.e. something like below
const ERROR_MESSAGES = [
UPLOAD_ERR_OK => 'There is no error, the file uploaded with success',
UPLOAD_ERR_INI_SIZE => 'The uploaded file exceeds the upload_max_filesize directive in php.ini',
UPLOAD_ERR_FORM_SIZE => 'The uploaded file exceeds the MAX_FILE_SIZE directive that was '
. 'specified in the HTML form',
UPLOAD_ERR_PARTIAL => 'The uploaded file was only partially uploaded',
UPLOAD_ERR_NO_FILE => 'No file was uploaded',
UPLOAD_ERR_NO_TMP_DIR => 'Missing a temporary folder',
UPLOAD_ERR_CANT_WRITE => 'Failed to write file to disk',
UPLOAD_ERR_EXTENSION => 'A PHP extension stopped the file upload.',
But after removal of “.”, it says the var cannot be
const so I remove
details of this file can see from https://github.com/zendframework/zend-diactoros/blob/master/src/UploadedFile.php
Restore it to original will have the following error
[Thu Jan 11 19:40:54.476393 2018] [:error] [pid 1466] [client 22.214.171.124:58692] PHP Parse error: syntax error, unexpected '.', expecting ']' in /usr/share
/pydio/core/vendor/zendframework/zend-diactoros/src/UploadedFile.php on line 21, referer: https://pydio-server/pydio/ws-my-files/
I tried install php7.0 but when I try to enable it, it prompts the following warning
root@pydio:~# a2enmod php7.0
Considering dependency mpm_prefork for php7.0:
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Module mpm_prefork already enabled
Considering conflict php5 for php7.0:
Enabling module php7.0.
To activate the new configuration, you need to run:
service apache2 restart
Enable it will have the following error
[Thu Jan 11 19:55:32.188855 2018] [:error] [pid 12733] [client 126.96.36.199:59106] Exception was caught but could not be logged properly: There was an error
trying to connect to your database! Did you change any configuration for the core connection? Or maybe your database is down? in /usr/share/pydio/plugins/conf
.sql/SqlConfDriver.php on line 112, referer: https://flexhk.sky-computers.com/pydio/ws-my-files/
[Thu Jan 11 19:55:32.189178 2018] [:error] [pid 12733] [client 188.8.131.52:59106] ===> Exception details : /usr/share/pydio/plugins/conf.sql/SqlConfDriver.
php on line 112 #0 /usr/share/pydio/core/src/pydio/Core/PluginFramework/PluginsService.php(568): Pydio\\Conf\\Sql\\SqlConfDriver->init(Object(Pydio\\Core\\Mod
el\\Context), Array)\n#1 /usr/share/pydio/core/src/pydio/Core/Services/ConfService.php(192): Pydio\\Core\\PluginFramework\\PluginsService->softLoad('conf.sql'
, Array)\n#2 /usr/share/pydio/plugins/core.conf/CoreConfLoader.php(54): Pydio\\Core\\Services\\ConfService::instanciatePluginFromGlobalParams(Array, 'Pydio\\\
\Conf\\\\Core...', Object(Pydio\\Core\\PluginFramework\\PluginsService))\n#3 /usr/share/pydio/core/src/pydio/Core/Services/ConfService.php(251): Pydio\\Conf\\
Core\\CoreConfLoader->getImplementation()\n#4 /usr/share/pydio/core/src/pydio/Core/Services/ConfService.php(116): Pydio\\Core\\Services\\ConfService::getConfS
torageImpl()\n#5 /usr/share/pydio/core/src/pydio/Core/Services/ConfService.php(102): Pydio\\Core\\Services\\ConfService->startInst()\n#6 /usr/share/pydio/core
/src/pydio/Core/Http/Base.php(72): Pydio\\Core\\Services\\ConfService::start()\n#7 [internal function]: Pydio\\Core\\Http\\Base::handleRoute('/pydio', '/', Ar
ray)\n#8 /usr/share/pydio/core/src/pydio/Core/Http/TopLevelRouter.php(139): call_user_func(Array, '/pydio', '/', Array)\n#9 /usr/share/pydio/index.php(30): Py