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

Apache, NGINX, PHP ...
Ответить
Аватара пользователя
root
Site Admin
Сообщения: 501
Зарегистрирован: 15 авг 2026 01:31

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

Сообщение root »

[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'];
            }
Ответить