Ошибки на portal Board3 Portal v2

Apache, NGINX, PHP ...

Модератор: ROOT

Ошибки на portal Board3 Portal v2

Сообщение ROOT » 05 окт 2012, 09:33

[phpBB Debug] PHP Warning: in file [ROOT]/portal/modules/portal_main_menu.php on line 107: array_intersect(): Argument #1 is not an array
[phpBB Debug] PHP Warning: in file [ROOT]/portal/modules/portal_main_menu.php on line 107: array_intersect(): Argument #1 is not an array
[phpBB Debug] PHP Warning: in file [ROOT]/portal/modules/portal_main_menu.php on line 107: array_intersect(): Argument #1 is not an array
[phpBB Debug] PHP Warning: in file [ROOT]/portal/modules/portal_main_menu.php on line 107: array_intersect(): Argument #1 is not an array
[phpBB Debug] PHP Warning: in file [ROOT]/portal/modules/portal_main_menu.php on line 107: array_intersect(): Argument #1 is not an array
[phpBB Debug] PHP Warning: in file [ROOT]/portal/modules/portal_main_menu.php on line 107: array_intersect(): Argument #1 is not an array
[phpBB Debug] PHP Warning: in file [ROOT]/portal/modules/portal_main_menu.php on line 107: array_intersect(): Argument #1 is not an array
[phpBB Debug] PHP Warning: in file [ROOT]/portal/modules/portal_main_menu.php on line 107: array_intersect(): Argument #1 is not an array
[phpBB Debug] PHP Warning: in file [ROOT]/portal/modules/portal_main_menu.php on line 107: array_intersect(): Argument #1 is not an array
[phpBB Debug] PHP Warning: in file [ROOT]/portal/modules/portal_links.php on line 97: array_intersect(): Argument #1 is not an array
[phpBB Debug] PHP Warning: in file [ROOT]/portal/modules/portal_links.php on line 97: array_intersect(): Argument #1 is not an array


Решение
найти в portal_main_menu.php:
Код: выделить все
public function get_template_side($module_id)
   {
      global $config, $template, $phpEx, $phpbb_root_path, $user, $db;

      $links = array();
      $portal_config = obtain_portal_config();


заменить на:
Код: выделить все
public function get_template_side($module_id)
   {
      global $config, $template, $phpEx, $phpbb_root_path, $user, $db;

      $links = array();
      $groups_ary = array();
      $portal_config = obtain_portal_config();


в файле portal_links.php:
Код: выделить все
public function get_template_side($module_id)
   {
      global $config, $template, $phpEx, $phpbb_root_path, $user, $db;

      $links = array();
      $portal_config = obtain_portal_config();


меняем на:
Код: выделить все
  public function get_template_side($module_id)
   {
      global $config, $template, $phpEx, $phpbb_root_path, $user, $db;

      $links = array();
      $groups_ary = array();
      $portal_config = obtain_portal_config();


Далее находим:
Код: выделить все
$link_url = request_var('link_url', ' ');
...
               $groups_ary[] = $row['group_id'];
            }

и заменяем блок на:
Код: выделить все
$link_url = request_var('link_url', ' ');
            $link_url = str_replace('&', '&', $link_url);
            $link_permission = request_var('permission-setting-link', array(0 => ''));
            $groups_ary = array();
           
            // get groups and check if the selected groups actually exist
            $sql = 'SELECT group_id
                  FROM ' . GROUPS_TABLE . '
                  ORDER BY group_id ASC';
            $result = $db->sql_query($sql);
            while($row = $db->sql_fetchrow($result))
            {
               $groups_ary[] = $row['group_id'];
            }
Для желающих поддержать
Карта SB: 5469 4009 6510 2267
Аватар пользователя
ROOT
Администратор
 
Сообщений: 417
Зарегистрирован: 01 авг 2011, 09:36
Откуда: Моск. обл., г. Железнодорожный

Вернуться в Конфигурация WEB - сервисов

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

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

cron