Jump to content
Дизайн и модификация Invision Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Zero108

Ошибка после установки Musicbox 1.1.4

Recommended Posts

При заходе в настройки группы выдает ошибку после установки Musicbox 1.1.4.

Видимо, из-за несовместимости версий. Стоит 4.1.x в совместимости программы. Ставлю на 4.2.8. Кроме этого все работает. Кто-то сталкивался?

 

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

Share this post


Link to post

\applications\musicbox\extensions\core\ContentRouter\Musicbox.php

Раньше конструктор был

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

Сейчас

	public function __construct( $memberOrGroup = NULL )

 

Может еще в методе что-то нужно будет отредактировать.

Share this post


Link to post

Накопал версию Musicbox 2.0.4 на одном сайте. Работает в 4.2.8.

Share this post


Link to post

Активирую RSS в админке в настройках этого аддона. В публичной части перехожу по ссылке RSS и получаю:

 

TypeError: Failed to construct 'URL': Invalid URL

 

Как исправить?

Share this post


Link to post

Вроде заработало. Как-то само. После добавления плей-листов и композиций.

Edited by Zero108

Share this post


Link to post

Объясните, как побороть Friendly URLs.

 

Аддон добавил свои Friendly URLs. Хочу поменять их или заменить на свои. Пока не получается.

 

1. Пытаюсь поменять в уже добавленном Friendly URL musicbox на listen:

 

LtzOsBc.png

 

Сохраняю и получаю вот это:

 

xN1uXK5.png

 

2. Пытаюсь добавить свой Friendly URL. Он добавляется. Но остаются два Friendly URL, первый из которых никак не удалить.

 

uqpffng.png

 

Как изменить дефолтный Friendly URL как мне надо, а не как он в п.1 сам подставляет? Либо как удалить дефотный, чтобы потом добавить свой? Если только через базу данных, то печаль. Где оно вообще хранится, в какой таблице?

Edited by Zero108

Share this post


Link to post

Исправил так:

 

1. Открыл файл /applications/musicbox/data/furl.json

 

2. Исправил в содержимом (где видите listen, было musicbox; songs -> compositions; artists -> performers):

 

{
"topLevel": "listen",
"pages": {
    "musicbox_postSong": {
        "friendly": "upload",
        "real": "app=musicbox&module=musicbox&controller=post&do=postSong"
    },
    "musicbox_createPlaylist": {
        "friendly": "createPlaylist",
        "real": "app=musicbox&module=musicbox&controller=post&do=createPlaylist"
    },		
    "musicbox_newestSongs": {
	    "friendly": "compositions",
	    "real": "app=musicbox&module=musicbox&controller=songs"
    },
    "musicbox_songs": {
	    "friendly": "compositions/{#id}-{?}",
	    "real": "app=musicbox&module=musicbox&controller=songs",
	    "verify": "\\IPS\\musicbox\\Category"
    },
    "musicbox_newestPlaylists": {
	    "friendly": "playlists",
	    "real": "app=musicbox&module=musicbox&controller=playlists"
    },
    "musicbox_playlists": {
	    "friendly": "playlists/{#id}-{?}",
	    "real": "app=musicbox&module=musicbox&controller=playlists"
    },			
    "musicbox_favorite": {
        "friendly": "favorites",
        "real": "app=musicbox&module=musicbox&controller=favorite"	
    },
    "musicbox_artists": {
        "friendly": "performers",
        "real": "app=musicbox&module=musicbox&controller=artists"	
    },
    "musicbox_artistProfile": {
	    "friendly": "performers/{#id}-{?}",
	    "real": "app=musicbox&module=musicbox&controller=profile",
	    "verify": "\\IPS\\musicbox\\Artist"
    },
    "musicbox_playSong": {
	    "friendly": "play/{#id}-{?}",
	    "real": "app=musicbox&module=musicbox&controller=view",
	    "verify": "\\IPS\\musicbox\\Song"
    },	
    "musicbox_search": {
        "friendly": "searchsongs",
        "real": "app=musicbox&module=musicbox&controller=search"	
    },		
    "musicbox_podcastByGenre": {
	    "friendly": "podcastbygenre/{#id}-{?}.xml",
	    "real": "app=musicbox&module=musicbox&controller=index&do=podcastbygenre"
    },	
    "musicbox_podcastByArtist": {
	    "friendly": "podcastbyartist/{#id}-{?}.xml",
	    "real": "app=musicbox&module=musicbox&controller=index&do=podcastbyartist"
    },
    "musicbox_podcast": {
	    "friendly": "podcast",
	    "real": "app=musicbox&module=musicbox&controller=index&do=podcast"
    },			
    "musicbox": {
        "friendly": "",
        "real": "app=musicbox&module=musicbox&controller=index"
    }
  }
}

 

3. Загрузил обратно поверх старого файла. Сбросил cache в админцентре:

 

l0prgyU.png

 

Примечание: метод подходит для всех аддонов (форум, блоги и т.д.)

Edited by Zero108

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...