🎯 Cannot upload images (on new installation)
When I upload an image, I get a Server error (Internal server error) and a "POST /json HTTP/1.1" 500 in the server's access_log.
▶🚶Reproduction steps
📃Error log message
Most relevant should be the debug 3 log / stack trace:
[Tue Feb 19 19:37:03.933448 2019] [php7:error] [pid 7243] [client 178.162.204.214:58322] PHP Fatal error: Uncaught Error: Call to undefined function G\\get_filename_without_extension() in /var/www/............/app/lib/classes/class.upload.php:95\nStack trace:\n
#0 /var/www/............/app/lib/classes/class.image.php(575): CHV\\Upload->exec()\n
#1 /var/www/............/app/lib/classes/class.image.php(733): CHV\\Image::upload(Array, '/var/www/.........', NULL, Array, NULL)\n
#2 /var/www/............/app/routes/route.json.php(82): CHV\\Image::uploadToWebsite(Array, Array, Array)\n
#3 /var/www/............/lib/G/classes/class.handler.php(232): G\\Handler->{closure}(Object(G\\Handler))\n
#4 /var/www/............/lib/G/classes/class.handler.php(132): G\\Handler->processRequest()\n
#5 /var/www/............/app/loader.php(610): G\\Handler->__construct(Array)\n
#6 /var/www/............/index.php(20): include_once('/var/www/.........')\n
#7 {main}\n thrown in /var/www/............/app/lib/classes/class.upload.php on line 95, referer: https://............/dashboard/settings/system
I feel like I am missing some php component. Therefore, I am adding this:
[root@home httpd]# yum list installed | grep php
mod_php72w.x86_64 7.2.14-1.w7 @webtatic
php-bcmath.x86_64 7.2.15-1.el7.remi @remi-php72
php-cli.x86_64 7.2.15-1.el7.remi @remi-php72
php-common.x86_64 7.2.15-1.el7.remi @remi-php72
php-fedora-autoloader.noarch 1.0.0-1.el7 @epel
php-gd.x86_64 7.2.15-1.el7.remi @remi-php72
php-intl.x86_64 7.2.15-1.el7.remi @remi-php72
php-json.x86_64 7.2.15-1.el7.remi @remi-php72
php-mbstring.x86_64 7.2.15-1.el7.remi @remi-php72
php-mysqlnd.x86_64 7.2.15-1.el7.remi @remi-php72
php-opcache.x86_64 7.2.15-1.el7.remi @remi-php72
php-pdo.x86_64 7.2.15-1.el7.remi @remi-php72
php-pear.noarch 1:1.10.8-1.el7.remi @remi-php71
php-pecl-mcrypt.x86_64 1.0.2-2.el7.remi.7.2 @remi-php72
php-process.x86_64 7.2.15-1.el7.remi @remi-php72
php-soap.x86_64 7.2.15-1.el7.remi @remi-php72
php-xml.x86_64 7.2.15-1.el7.remi @remi-php72
php-xmlrpc.x86_64 7.2.15-1.el7.remi @remi-php72
php71-runtime.x86_64 1.0-1.el7.remi @remi-safe
php72.x86_64 1.0-1.el7.remi @remi-safe
php72-php.x86_64 7.2.15-1.el7.remi @remi-safe
php72-php-bcmath.x86_64 7.2.15-1.el7.remi @remi-safe
php72-php-cli.x86_64 7.2.15-1.el7.remi @remi-safe
php72-php-common.x86_64 7.2.15-1.el7.remi @remi-safe
php72-php-gd.x86_64 7.2.15-1.el7.remi @remi-safe
php72-php-json.x86_64 7.2.15-1.el7.remi @remi-safe
php72-php-mbstring.x86_64 7.2.15-1.el7.remi @remi-safe
php72-php-mysqlnd.x86_64 7.2.15-1.el7.remi @remi-safe
php72-php-pdo.x86_64 7.2.15-1.el7.remi @remi-safe
php72-php-pecl-mysql.x86_64 1.0.0-0.17.20160812git230a828.el7.remi
php72-php-xml.x86_64 7.2.15-1.el7.remi @remi-safe
php72-runtime.x86_64 1.0-1.el7.remi @remi-safe
php72w-pecl-apcu.x86_64 5.1.9-1.w7 @webtatic
php72w-pecl-igbinary.x86_64 2.0.5-1.w7 @webtatic
php72w-pecl-imagick.x86_64 3.4.3-1.2.w7 @webtatic
php72w-pecl-redis.x86_64 3.1.6-1.w7 @webtatic
Thank you in advance for any help.
When I upload an image, I get a Server error (Internal server error) and a "POST /json HTTP/1.1" 500 in the server's access_log.
▶🚶Reproduction steps
- Any upload will cause this issue
📃Error log message
Most relevant should be the debug 3 log / stack trace:
[Tue Feb 19 19:37:03.933448 2019] [php7:error] [pid 7243] [client 178.162.204.214:58322] PHP Fatal error: Uncaught Error: Call to undefined function G\\get_filename_without_extension() in /var/www/............/app/lib/classes/class.upload.php:95\nStack trace:\n
#0 /var/www/............/app/lib/classes/class.image.php(575): CHV\\Upload->exec()\n
#1 /var/www/............/app/lib/classes/class.image.php(733): CHV\\Image::upload(Array, '/var/www/.........', NULL, Array, NULL)\n
#2 /var/www/............/app/routes/route.json.php(82): CHV\\Image::uploadToWebsite(Array, Array, Array)\n
#3 /var/www/............/lib/G/classes/class.handler.php(232): G\\Handler->{closure}(Object(G\\Handler))\n
#4 /var/www/............/lib/G/classes/class.handler.php(132): G\\Handler->processRequest()\n
#5 /var/www/............/app/loader.php(610): G\\Handler->__construct(Array)\n
#6 /var/www/............/index.php(20): include_once('/var/www/.........')\n
#7 {main}\n thrown in /var/www/............/app/lib/classes/class.upload.php on line 95, referer: https://............/dashboard/settings/system
I feel like I am missing some php component. Therefore, I am adding this:
[root@home httpd]# yum list installed | grep php
mod_php72w.x86_64 7.2.14-1.w7 @webtatic
php-bcmath.x86_64 7.2.15-1.el7.remi @remi-php72
php-cli.x86_64 7.2.15-1.el7.remi @remi-php72
php-common.x86_64 7.2.15-1.el7.remi @remi-php72
php-fedora-autoloader.noarch 1.0.0-1.el7 @epel
php-gd.x86_64 7.2.15-1.el7.remi @remi-php72
php-intl.x86_64 7.2.15-1.el7.remi @remi-php72
php-json.x86_64 7.2.15-1.el7.remi @remi-php72
php-mbstring.x86_64 7.2.15-1.el7.remi @remi-php72
php-mysqlnd.x86_64 7.2.15-1.el7.remi @remi-php72
php-opcache.x86_64 7.2.15-1.el7.remi @remi-php72
php-pdo.x86_64 7.2.15-1.el7.remi @remi-php72
php-pear.noarch 1:1.10.8-1.el7.remi @remi-php71
php-pecl-mcrypt.x86_64 1.0.2-2.el7.remi.7.2 @remi-php72
php-process.x86_64 7.2.15-1.el7.remi @remi-php72
php-soap.x86_64 7.2.15-1.el7.remi @remi-php72
php-xml.x86_64 7.2.15-1.el7.remi @remi-php72
php-xmlrpc.x86_64 7.2.15-1.el7.remi @remi-php72
php71-runtime.x86_64 1.0-1.el7.remi @remi-safe
php72.x86_64 1.0-1.el7.remi @remi-safe
php72-php.x86_64 7.2.15-1.el7.remi @remi-safe
php72-php-bcmath.x86_64 7.2.15-1.el7.remi @remi-safe
php72-php-cli.x86_64 7.2.15-1.el7.remi @remi-safe
php72-php-common.x86_64 7.2.15-1.el7.remi @remi-safe
php72-php-gd.x86_64 7.2.15-1.el7.remi @remi-safe
php72-php-json.x86_64 7.2.15-1.el7.remi @remi-safe
php72-php-mbstring.x86_64 7.2.15-1.el7.remi @remi-safe
php72-php-mysqlnd.x86_64 7.2.15-1.el7.remi @remi-safe
php72-php-pdo.x86_64 7.2.15-1.el7.remi @remi-safe
php72-php-pecl-mysql.x86_64 1.0.0-0.17.20160812git230a828.el7.remi
php72-php-xml.x86_64 7.2.15-1.el7.remi @remi-safe
php72-runtime.x86_64 1.0-1.el7.remi @remi-safe
php72w-pecl-apcu.x86_64 5.1.9-1.w7 @webtatic
php72w-pecl-igbinary.x86_64 2.0.5-1.w7 @webtatic
php72w-pecl-imagick.x86_64 3.4.3-1.2.w7 @webtatic
php72w-pecl-redis.x86_64 3.1.6-1.w7 @webtatic
Thank you in advance for any help.