• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

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