Installatron Warning: json_encode(): Invalid UTF-8 sequence in argument hatası çözümü

Merhabalar,

Installatron, dil olarak Türkçe seçili iken kurulabilir app lara tıklandığında hiçbir tepki göstermiyor ve,

/var/installatron/logs/error_log dosyasında andığınız hata;

2018-10-17 23:28:27.45195700 Linux PHP 5.2.17 /usr/local/installatron/lib/boot.php(13179): Warning: json_encode(): Invalid UTF-8 sequence in argument
#0 /usr/local/installatron/lib/boot.php(35): __i_error_handler()
#1 /usr/local/installatron/lib/boot.php(13179): __i_error_handler(2, ‘json_encode(): …’, ‘/usr/local/inst…’, 13179, Array)
#2 /usr/local/installatron/lib/gui/browser.php(1184): i_lib::json_encode()
#3 /usr/local/installatron/lib/gui/init.php(1356): i_gui_browser->main()
#4 /usr/local/installatron/lib/boot.php(23738): i_gui_default->display()
#5 /usr/local/installatron/lib/boot.php(29958): itron::init()
#6 {main}
2018-10-17 23:28:27.45223700 Linux PHP 5.2.17 /usr/local/installatron/lib/boot.php(13179): Warning: json_encode(): Invalid UTF-8 sequence in argument
#0 /usr/local/installatron/lib/boot.php(35): __i_error_handler()
#1 /usr/local/installatron/lib/boot.php(13179): __i_error_handler(2, ‘json_encode(): …’, ‘/usr/local/inst…’, 13179, Array)
#2 /usr/local/installatron/lib/gui/browser.php(1205): i_lib::json_encode()
#3 /usr/local/installatron/lib/gui/init.php(1356): i_gui_browser->main()
#4 /usr/local/installatron/lib/boot.php(23738): i_gui_default->display()
#5 /usr/local/installatron/lib/boot.php(29958): itron::init()
#6 {main}
2018-10-17 23:28:27.45246700 Linux PHP 5.2.17 /usr/local/installatron/lib/boot.php(13179): Warning: json_encode(): Invalid UTF-8 sequence in argument
#0 /usr/local/installatron/lib/boot.php(35): __i_error_handler()
#1 /usr/local/installatron/lib/boot.php(13179): __i_error_handler(2, ‘json_encode(): …’, ‘/usr/local/inst…’, 13179, Array)
#2 /usr/local/installatron/lib/gui/browser.php(1440): i_lib::json_encode()
#3 /usr/local/installatron/lib/gui/init.php(1356): i_gui_browser->main()
#4 /usr/local/installatron/lib/boot.php(23738): i_gui_default->display()
#5 /usr/local/installatron/lib/boot.php(29958): itron::init()
#6 {main}
2018-10-17 23:28:27.45262300 Linux PHP 5.2.17 /usr/local/installatron/lib/boot.php(13179): Warning: json_encode(): Invalid UTF-8 sequence in argument
#0 /usr/local/installatron/lib/boot.php(35): __i_error_handler()
#1 /usr/local/installatron/lib/boot.php(13179): __i_error_handler(2, ‘json_encode(): …’, ‘/usr/local/inst…’, 13179, Array)
#2 /usr/local/installatron/lib/gui/browser.php(1459): i_lib::json_encode()
#3 /usr/local/installatron/lib/gui/init.php(1356): i_gui_browser->main()
#4 /usr/local/installatron/lib/boot.php(23738): i_gui_default->display()
#5 /usr/local/installatron/lib/boot.php(29958): itron::init()
#6 {main}

Şeklinde bir hata ise PHP sürümü, Installatronun güncellenmesinin ardından yetersiz kalıyor demektir.

Çözüm için aşağıdaki kodları sırası ile çalıştırmak yeterlidir;

mkdir -p /usr/local/installatron
cd /usr/local/installatron
curl -O http://php.net/distributions/php-5.6.33.tar.gz
tar xzf php-5.6.33.tar.gz
cd php-5.6.33
./configure –prefix=/usr/local/installatron/php –disable-libxml –disable-dom –disable-simplexml –disable-xml –disable-xmlreader –disable-xmlwriter –enable-posix –enable-mbstring –enable-ftp –enable-sockets –without-pear –without-iconv –with-zlib –with-gd –with-jpeg-dir –with-png-dir –with-mysql=mysqlnd –with-mysqli=mysqlnd –with-pdo-mysql=mysqlnd –with-gettext
make
make install
cd ..
rm -fr php-5.6.33 php-5.6.33.tar.gz /usr/local/installatron/bin

Ardından Installaton’u tamir etmeliyiz.

rm -fr /usr/local/installatron/lib /usr/local/installatron/etc/php.ini
curl -O https://data.installatron.com/installatron-plugin.sh
chmod +x installatron-plugin.sh
./installatron-plugin.sh -f –quick

Problem giderilmiş olacaktır.

İyi çalışmalar dilerim.

Yorum yapın

This site uses Akismet to reduce spam. Learn how your comment data is processed.