Page 1 of 1

[Solved] Fresh Install of 2.1.1 showing error 500

Posted: Mon Mar 05, 2018 12:37 am
by gavinhenry
Even though utf8_decode is in php-xml my fedora uses php-fpm, so restarting apache never actually loaded xml.so.

How annoying. If you hit this,

Code: Select all

systemctl restart php-fpm

Re: Fresh Install of 2.1.1 showing error 500

Posted: Mon Mar 05, 2018 12:41 am
by gavinhenry
Adding this to index.php

Code: Select all

error_reporting(-1); // reports all errors
ini_set("display_errors", "1"); // shows all errors
ini_set("log_errors", 1);
ini_set("error_log", "/tmp/php-error.log");
gives:

Code: Select all

Fatal error: Uncaught Error: Call to undefined function utf8_decode() in /var/www/ghenry/include/functions_permalinks.inc.php:127 Stack trace: #0 /var/www/ghenry/include/functions_permalinks.inc.php(526): serendipity_makeFilename('OpenLDAP as a P...') #1 /var/www/ghenry/include/functions_permalinks.inc.php(625): serendipity_makePermalink('archives/%id%-%...', Array) #2 /var/www/ghenry/include/functions_entries.inc.php(1168): serendipity_archiveURL('1', 'OpenLDAP as a P...', 'serendipityHTTP...', true, Array) #3 /var/www/ghenry/include/genpage.inc.php(129): serendipity_printEntries(Array) #4 /var/www/ghenry/include/functions_routing.inc.php(18): include('/var/www/ghenry...') #5 /var/www/ghenry/index.php(108): serveIndex() #6 {main} thrown in /var/www/ghenry/include/functions_permalinks.inc.php on line 127

Re: Fresh Install of 2.1.1 showing error 500

Posted: Mon Mar 05, 2018 12:45 am
by gavinhenry
I do have php-xml installed on Fedora 27 64bit though. php 7.1.14

Re: Fresh Install of 2.1.1 showing error 500

Posted: Mon Mar 12, 2018 12:45 pm
by garvinhicking
gavinhenry wrote:I do have php-xml installed on Fedora 27 64bit though. php 7.1.14
Hm, does it work in a test script with the PHP CLI? Create a "info.php" in your s9y webspace, use "<?php phpinfo(); ?>" as content and call it in your browser and check if the xml library really shows up?!

Regards,
Garvin

Re: Fresh Install of 2.1.1 showing error 500

Posted: Mon Mar 12, 2018 12:50 pm
by gavinhenry
garvinhicking wrote:
gavinhenry wrote:I do have php-xml installed on Fedora 27 64bit though. php 7.1.14
Hm, does it work in a test script with the PHP CLI? Create a "info.php" in your s9y webspace, use "<?php phpinfo(); ?>" as content and call it in your browser and check if the xml library really shows up?!

Regards,
Garvin
I didn't restart php fpm so it only worked after that. My bad. Thanks though!