Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка Invision Community, релизы, темы, плагины и приложения

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Ошибка при редактировании группы, когда включен модуль "Загрузки"

Featured Replies

Posted

При редактировании группы, если включен модуль "Загрузки", в админке вываливается ошибка:

Цитата

TypeError: Argument 1 passed to IPS\downloads\extensions\core\ContentRouter\_Downloads::__construct() must be an instance of IPS\Member or null, instance of IPS\Member\Group given, called in /var/www/www-root/data/www/wcat1.ru/system/Application/Application.php on line 788 (0)
#0 /var/www/www-root/data/www/wcat1.ru/system/Application/Application.php(788): IPS\downloads\extensions\core\ContentRouter\_Downloads->__construct(Object(IPS\Member\Group))
#1 /var/www/www-root/data/www/wcat1.ru/system/Application/Application.php(300): IPS\_Application->extensions('core', 'ContentRouter', true, Object(IPS\Member\Group))
#2 /var/www/www-root/data/www/wcat1.ru/applications/core/extensions/core/GroupForm/Content.php(35): IPS\_Application::allExtensions('core', 'ContentRouter', Object(IPS\Member\Group))
#3 /var/www/www-root/data/www/wcat1.ru/applications/core/modules/admin/members/groups.php(188): IPS\core\extensions\core\GroupForm\_Content->process(Object(IPS\Helpers\Form), Object(IPS\Member\Group))
#4 /var/www/www-root/data/www/wcat1.ru/system/Dispatcher/Controller.php(85): IPS\core\modules\admin\members\_groups->form()
#5 /var/www/www-root/data/www/wcat1.ru/applications/core/modules/admin/members/groups.php(34): IPS\Dispatcher\_Controller->execute()
#6 /var/www/www-root/data/www/wcat1.ru/system/Dispatcher/Dispatcher.php(146): IPS\core\modules\admin\members\_groups->execute()
#7 /var/www/www-root/data/www/wcat1.ru/admin/index.php(13): IPS\_Dispatcher->run()
#8 {main}

Если модуль отключить, всё ОК.

 

Конфигурация сервера: PHP 7.1.9 + nginx 1.13.5

Версия форума: 4.2.4 (ошибка наблюдается как минимум с 4.2.2)

 

На форуме находил тему с подобной проблемой, но там это наблюдалось в бете и был совет ждать релиза.

Обновление движка проводилось минуя бета-версии, с 4.1.19 на 4.2.

 

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

Как временное решение (до исправления в последующих исправлениях от IPS) проблема решается следующим образом:

В файле applications/downloads/extensions/core/ContentRouter/downloads.php

38 строка

public function __construct( \IPS\Member $member = NULL )

Заменяем на:

public function __construct(  $member = NULL )

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.