ВидеоКонф(ВКС)  ::   FAQ  ::   Поиск  ::   Регистрация  ::   Вход

Orange PI +FreePBX

Обо всем касательно TrixBox, Elastix, AstPBX и всех других дистрибутивов

Модераторы: april22, Zavr2008

Re: Orange PI +FreePBX

Сообщение ded » 06 июл 2016, 15:41

не надо.
Смотри в php.ini
default_charset = "UTF-8",
проблема точно была, давно, на ветке 2.11 и очень узкая - только на Raspberry Pi, какой-то итальянец писал в багтрак.
ded
 
Сообщений: 15822
Зарегистрирован: 26 авг 2010, 19:00

Re: Orange PI +FreePBX

Сообщение april22 » 06 июл 2016, 16:01

и там тоже UTF-8
Код: выделить все
cat /etc/php5/apache2/php.ini | grep default_charset
default_charset = "UTF-8"


видать придется в английском интерфейсе жить .
Своими вопросами , вы загоняете меня в ГУГЛЬ.
april22
 
Сообщений: 2187
Зарегистрирован: 09 июл 2012, 09:47

Re: Orange PI +FreePBX

Сообщение april22 » 06 июл 2016, 16:54

при смене языка в логах Апача
Код: выделить все
[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
пока не знаю как решить в моей ситуации , буду думать .
Своими вопросами , вы загоняете меня в ГУГЛЬ.
april22
 
Сообщений: 2187
Зарегистрирован: 09 июл 2012, 09:47

Re: Orange PI +FreePBX

Сообщение ded » 06 июл 2016, 17:22

/var/log/asterisk/freepbx_debug ??
ded
 
Сообщений: 15822
Зарегистрирован: 26 авг 2010, 19:00

Re: Orange PI +FreePBX

Сообщение april22 » 06 июл 2016, 17:39

[Показать] Спойлер:
[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

когда пытаюсь сменить язык
Своими вопросами , вы загоняете меня в ГУГЛЬ.
april22
 
Сообщений: 2187
Зарегистрирован: 09 июл 2012, 09:47

Re: Orange PI +FreePBX

Сообщение ded » 06 июл 2016, 18:35

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
ded
 
Сообщений: 15822
Зарегистрирован: 26 авг 2010, 19:00

Re: Orange PI +FreePBX

Сообщение april22 » 07 июл 2016, 10:16

Проделал все что по теме .
поменял локаль .
сделал исправления во всех рекомендованных местах.

ошибки в логах пропали , но и язык не переключается.
пока копаю в наблюдение логов , и повышением вербозности в апаче и пыхе.

если будут идеи - готов выслушать . кто готов помочь , дам доступ до железяки.
PS есть копия карточки . так что боятся завалить не стоит .
Своими вопросами , вы загоняете меня в ГУГЛЬ.
april22
 
Сообщений: 2187
Зарегистрирован: 09 июл 2012, 09:47

Re: Orange PI +FreePBX

Сообщение ded » 07 июл 2016, 13:33

Файл /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');
         }
}
ded
 
Сообщений: 15822
Зарегистрирован: 26 авг 2010, 19:00

Re: Orange PI +FreePBX

Сообщение april22 » 07 июл 2016, 13:57

Спасибо !!!!
Это я раскопал . поменял - но чуда не случилось ...

потом сделал
dpkg-reconfigure locales
сгенерировать cp1251 utf8 koi8-r выбрать по умолчанию utf8
рестарт апач


опа ! и вот он ....

проверить правильность догадки . и последовательность действий смогу только вечером . когда залью образ вчерашней системы. и пройдя путь еще раз , и на каждом шаге проверять что меняется.
Обязательно отпишусь на каком шаге , и что предшествовало этому , произошло счастье .

PS не все модули с русским языком , но я думаю это другая тема , и как решить ее я примерно представляю ;-)
Своими вопросами , вы загоняете меня в ГУГЛЬ.
april22
 
Сообщений: 2187
Зарегистрирован: 09 июл 2012, 09:47

Re: Orange PI +FreePBX

Сообщение april22 » 07 июл 2016, 23:27

Я не знаю ..... проделал весь путь снова , ни один из моих приемов , что делал с утра, не увенчался успехом.
я в полном замешательстве .....
для меня это загадка ..... :shock:
Своими вопросами , вы загоняете меня в ГУГЛЬ.
april22
 
Сообщений: 2187
Зарегистрирован: 09 июл 2012, 09:47

Пред.След.

Вернуться в Готовые VoIP дистрибутивы

Кто сейчас на форуме

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 9

© 2008 — 2024 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH