Страница 2 из 4
Re: Orange PI +FreePBX
Добавлено: 06 июл 2016, 14:41
ded
не надо.
Смотри в php.ini
default_charset = "UTF-8",
проблема точно была, давно, на ветке 2.11 и очень узкая - только на Raspberry Pi, какой-то итальянец писал в багтрак.
Re: Orange PI +FreePBX
Добавлено: 06 июл 2016, 15:01
april22
и там тоже UTF-8
Код: Выделить всё
cat /etc/php5/apache2/php.ini | grep default_charset
default_charset = "UTF-8"
видать придется в английском интерфейсе жить .
Re: Orange PI +FreePBX
Добавлено: 06 июл 2016, 15:54
april22
при смене языка в логах Апача
Код: Выделить всё
[Wed Jul 06 14:25:52.403531 2016] [:error] [pid 29179] [client 10.10.18.118:50215] PHP Notice: Undefined offset: 8192 in /var/www/html/admin/libraries/utility.functions.php on lin
e 383, referer: http://10.10.18.173/admin/config.php?display=phpinfo
найдено на
FreePBX
пока не знаю как решить в моей ситуации , буду думать .
Re: Orange PI +FreePBX
Добавлено: 06 июл 2016, 16:22
ded
/var/log/asterisk/freepbx_debug ??
Re: Orange PI +FreePBX
Добавлено: 06 июл 2016, 16:39
april22
[2016-Jul-06 15:37:55] [PHP-] (/usr/share/php/DB.php:1387) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:37:55] [PHP-] (/usr/share/php/DB/common.php:1683) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:37:56] [PHP-] (/usr/share/php/DB/common.php:2200) - Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:37:56] [PHP-] (/usr/share/php/DB/common.php:2200) - Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:37:56] [PHP-] (/usr/share/php/DB/common.php:2200) - Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:37:56] [PHP-] (/usr/share/php/DB/common.php:1217) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:37:56] [PHP-] (/usr/share/php/DB/common.php:1292) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:37:56] [PHP-] (/usr/share/php/DB.php:1387) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:37:57] [PHP-] (/usr/share/php/DB/common.php:2200) - Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:37:57] [PHP-] (/usr/share/php/DB/common.php:1217) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:37:57] [PHP-] (/usr/share/php/DB/common.php:1407) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:37:57] [PHP-] (/usr/share/php/DB.php:1387) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:37:57] [PHP-] (/usr/share/php/DB/common.php:1428) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:03] [PHP-] (/usr/share/php/DB/common.php:2200) - Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:03] [PHP-] (/usr/share/php/DB/common.php:2200) - Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:03] [PHP-] (/usr/share/php/DB/common.php:2200) - Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:03] [PHP-] (/usr/share/php/DB/common.php:1217) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:03] [PHP-] (/usr/share/php/DB/common.php:1292) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:03] [PHP-] (/usr/share/php/DB.php:1387) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:05] [PHP-] (/usr/share/php/DB/common.php:2200) - Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:05] [PHP-] (/usr/share/php/DB/common.php:1217) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:05] [PHP-] (/usr/share/php/DB/common.php:1407) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:05] [PHP-] (/usr/share/php/DB.php:1387) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:05] [PHP-] (/usr/share/php/DB/common.php:1428) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:11] [PHP-] (/usr/share/php/DB/common.php:2200) - Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:11] [PHP-] (/usr/share/php/DB/common.php:2200) - Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:11] [PHP-] (/usr/share/php/DB/common.php:2200) - Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:11] [PHP-] (/usr/share/php/DB/common.php:1217) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:11] [PHP-] (/usr/share/php/DB/common.php:1292) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:11] [PHP-] (/usr/share/php/DB.php:1387) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:12] [PHP-] (/usr/share/php/DB/common.php:2200) - Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:12] [PHP-] (/usr/share/php/DB/common.php:1217) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:12] [PHP-] (/usr/share/php/DB/common.php:1407) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:12] [PHP-] (/usr/share/php/DB.php:1387) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:12] [PHP-] (/usr/share/php/DB/common.php:1428) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:18] [PHP-] (/usr/share/php/DB/common.php:2200) - Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:18] [PHP-] (/usr/share/php/DB/common.php:2200) - Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:18] [PHP-] (/usr/share/php/DB/common.php:2200) - Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:18] [PHP-] (/usr/share/php/DB/common.php:1217) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:18] [PHP-] (/usr/share/php/DB/common.php:1292) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:18] [PHP-] (/usr/share/php/DB.php:1387) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:19] [PHP-] (/usr/share/php/DB/common.php:2200) - Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:19] [PHP-] (/usr/share/php/DB/common.php:1217) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:19] [PHP-] (/usr/share/php/DB/common.php:1407) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:19] [PHP-] (/usr/share/php/DB.php:1387) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:19] [PHP-] (/usr/share/php/DB/common.php:1428) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:25] [PHP-] (/usr/share/php/DB/common.php:2200) - Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:25] [PHP-] (/usr/share/php/DB/common.php:2200) - Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:25] [PHP-] (/usr/share/php/DB/common.php:2200) - Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:25] [PHP-] (/usr/share/php/DB/common.php:1217) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:25] [PHP-] (/usr/share/php/DB/common.php:1292) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:25] [PHP-] (/usr/share/php/DB.php:1387) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:25] [PHP-] (/usr/share/php/DB/common.php:2200) - Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:25] [PHP-] (/usr/share/php/DB/common.php:1217) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:25] [PHP-] (/usr/share/php/DB/common.php:1666) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:25] [PHP-] (/usr/share/php/DB.php:1387) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:25] [PHP-] (/usr/share/php/DB/common.php:1683) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:25] [PHP-] (/usr/share/php/DB/common.php:2200) - Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:25] [PHP-] (/usr/share/php/DB/common.php:2200) - Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:25] [PHP-] (/usr/share/php/DB/common.php:2200) - Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:25] [PHP-] (/usr/share/php/DB/common.php:1217) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:25] [PHP-] (/usr/share/php/DB/common.php:1292) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:25] [PHP-] (/usr/share/php/DB.php:1387) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:27] [PHP-] (/usr/share/php/DB/common.php:2200) - Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:27] [PHP-] (/usr/share/php/DB/common.php:1217) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:27] [PHP-] (/usr/share/php/DB/common.php:1407) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:27] [PHP-] (/usr/share/php/DB.php:1387) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
[2016-Jul-06 15:38:27] [PHP-] (/usr/share/php/DB/common.php:1428) - Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
когда пытаюсь сменить язык
Re: Orange PI +FreePBX
Добавлено: 06 июл 2016, 17:35
ded
There is no way to fix it unless you'd like to go make the necessary changes to the PearDB library. In 13 we stopped using that library,
Debian has two php.ini files, one for CLI (/etc/php5/cli/php.ini) and another for Apache (/etc/php5/apache2/php.ini) and both are set as stated above. Even if I set error_reporting to 0 the warnings appear, so I assume that some script is forcing a different value for error_reporting.
That is how you have setup php.ini
These errors come from PearDB. You can see the bug here:
http://pear.php.net/bugs/bug.php?id=182543
Which basically started at around 5.2.
You need to disable strict errors in php.ini. FreePBX does not enable these be default until 13. In 12 and lower the system would be enabling these, through php.ini or other means
Patching it like this shuts down these warnings;
Код: Выделить всё
--- /var/www/html/admin/bootstrap.php.original 2015-05-04 19:26:08.667967195 +0100
+++ /var/www/html/admin/bootstrap.php 2015-06-04 08:47:40.302080351 +0100
@@ -38,7 +38,7 @@
//
//enable error reporting and start benchmarking
ini_set("default_charset","UTF-8");
-error_reporting(E_ALL & ~E_STRICT);
+error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT);
date_default_timezone_set(@date_default_timezone_get());
function microtime_float() { list($usec,$sec) = explode(' ',microtime()); return ((float)$usec+(float)$sec); }
$benchmark_starttime = microtime_float();
@@ -81,7 +81,7 @@
if ($bootstrap_settings['freepbx_error_handler']) {
$error_handler = $bootstrap_settings['freepbx_error_handler'] === true ? 'freepbx_error_handler' : $bootstrap_settings['freepbx_error_handler'];
if (function_exists($error_handler)) {
- set_error_handler($error_handler, E_ALL & ~E_STRICT);
+ set_error_handler($error_handler, E_ALL & ~E_DEPRECATED & ~E_STRICT);
}
}
http://community.freepbx.org/t/php-depr ... s/29505/19
Re: Orange PI +FreePBX
Добавлено: 07 июл 2016, 09:16
april22
Проделал все что по теме .
поменял локаль .
сделал исправления во всех рекомендованных местах.
ошибки в логах пропали , но и язык не переключается.
пока копаю в наблюдение логов , и повышением вербозности в апаче и пыхе.
если будут идеи - готов выслушать . кто готов помочь , дам доступ до железяки.
PS есть копия карточки . так что боятся завалить не стоит .
Re: Orange PI +FreePBX
Добавлено: 07 июл 2016, 12:33
ded
Файл /admin/libraries/view.functions.php
Код: Выделить всё
function set_language() {
if (extension_loaded('gettext')) {
if (!isset($_COOKIE['lang']) || $_COOKIE['lang'] == '') {
$_COOKIE['lang'] = 'en_US';
}
setlocale(LC_ALL, $_COOKIE['lang']);
putenv("LANGUAGE=".$_COOKIE['lang']);
bindtextdomain('amp','./i18n');
bind_textdomain_codeset('amp', 'utf8');
textdomain('amp');
}
}
Меняем на ru_RU
function set_language() {
if (extension_loaded('gettext')) {
if (!isset($_COOKIE['lang']) || $_COOKIE['lang'] == '') {
$_COOKIE['lang'] = 'ru_RU';
}
setlocale(LC_ALL, $_COOKIE['lang']);
putenv("LANGUAGE=".$_COOKIE['lang']);
bindtextdomain('amp','./i18n');
bind_textdomain_codeset('amp', 'utf8');
textdomain('amp');
}
}
Re: Orange PI +FreePBX
Добавлено: 07 июл 2016, 12:57
april22
Спасибо !!!!
Это я раскопал . поменял - но чуда не случилось ...
потом сделал
dpkg-reconfigure locales
сгенерировать cp1251 utf8 koi8-r выбрать по умолчанию utf8
рестарт апач
опа ! и вот он ....
проверить правильность догадки . и последовательность действий смогу только вечером . когда залью образ вчерашней системы. и пройдя путь еще раз , и на каждом шаге проверять что меняется.
Обязательно отпишусь на каком шаге , и что предшествовало этому , произошло счастье .
PS не все модули с русским языком , но я думаю это другая тема , и как решить ее я примерно представляю

Re: Orange PI +FreePBX
Добавлено: 07 июл 2016, 22:27
april22
Я не знаю ..... проделал весь путь снова , ни один из моих приемов , что делал с утра, не увенчался успехом.
я в полном замешательстве .....
для меня это загадка .....
