• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

Internal server error after upgrade to PHP 7.0

Status
Not open for further replies.

mkerala

👽 Chevereto Freak
I jumped into the Php 7.0 bandwagon the updated my server. Site is up and running but the upload and explore are broken.

Upload error report shows "Server error(Internal Server error)".

I found this error in nginx logs.

Code:
999#0: *960 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function G\utf8_encode() in /usr/share/nginx/html/lib/G/functions.php:1566
Stack trace:
#0 /usr/share/nginx/html/app/lib/functions.php(464): G\is_url('/usr/share/ngin...')
#1 /usr/share/nginx/html/app/lib/classes/class.image.php(1307): CHV\get_image_fileinfo('/usr/share/ngin...')
#2 /usr/share/nginx/html/app/lib/classes/class.image.php(1363): CHV\Image::fill(Array)
#3 /usr/share/nginx/html/app/lib/classes/class.listing.php(244): CHV\Image::formatArray(Array)
#4 /usr/share/nginx/html/app/routes/route.explore.php(87): CHV\Listing->exec()
#5 /usr/share/nginx/html/lib/G/classes/class.handler.php(216): G\Handler->{closure}(Object(G\Handler))
#6 /usr/share/nginx/html/lib/G/classes/class.handler.php(120): G\Handler->processRequest()
#7 /usr/share/nginx/html/app/loader.php(400): G\Handler->__construct(Array)
#8 /usr/share/nginx/html/index.php(20): include_once('/usr/share/ngin...')
#9 {main}
  thrown in /usr/share/nginx/html/lib/G/functions.php on l" while reading response header from upstream, client: 101.63.216.33, server: localhost, request: "GET /explore HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "gifyu.com"
2016/02/25 12:40:46 [error] 998#0: *981 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function G\utf8_encode() in /usr/share/nginx/html/lib/G/functions.php:1566
Stack trace:
#0 /usr/share/nginx/html/app/lib/functions.php(464): G\is_url('/usr/share/ngin...')
#1 /usr/share/nginx/html/app/lib/classes/class.image.php(1307): CHV\get_image_fileinfo('/usr/share/ngin...')
#2 /usr/share/nginx/html/app/lib/classes/class.image.php(1363): CHV\Image::fill(Array)
#3 /usr/share/nginx/html/app/lib/classes/class.listing.php(244): CHV\Image::formatArray(Array)
#4 /usr/share/nginx/html/app/routes/route.album.php(76): CHV\Listing->exec()
#5 /usr/share/nginx/html/lib/G/classes/class.handler.php(216): G\Handler->{closure}(Object(G\Handler))
#6 /usr/share/nginx/html/lib/G/classes/class.handler.php(120): G\Handler->processRequest()
#7 /usr/share/nginx/html/app/loader.php(400): G\Handler->__construct(Array)
#8 /usr/share/nginx/html/index.php(20): include_once('/usr/share/ngin...')
#9 {main}

I know this is might be a server issue. But any advise would be appreciated.

Site: http://gifyu.com
 
The error is telling you that php utf8 functions are not installed or enabled in your server. The problem is due to server misconfiguration.
 
Server was missing php-xml package. Ran below command to install it.

sudo apt-get install php7.0-xml

All working now.

It would be great if you could put a check for php-xml in the script like the current check for curl and GD library.
 
Status
Not open for further replies.
Back
Top