This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Hessel
Hessel

Hi, I don't understand what went wrong. After updating the cms to version 376 my plugin won't work anymore. I get the following error:

Class name is not registered for the component "staticMenu". Check the component plugin. /home/deb87509n2/domains/elmanso.nl/public_html/site/modules/cms/classes/ComponentManager.php line 201

I tried to compare my plugin.php file with other plugins but I can't find anything unusual. The plugin has also dissapeared in the builder plugin and the component add menu.

here is my plugin.phh code:

<?php namespace PowerSystem\Menus;

use System\Classes\PluginBase;
use Backend;

/**
* Menus Plugin Information File
*/
class Plugin extends PluginBase
{

/*test*/
/**
 * Returns information about this plugin.
 *
 *@return array
 */
public function pluginDetails()
{
    return [
        'name'        => 'staticMenu',
        'description' => 'No description provided yet...',
        'author'      => 'Hessel',
        'icon'        => 'icon-leaf'
    ];
}

public function registerNavigation()
{
    return [
        'menus' => [
            'label'     => 'Activiteiten',
            'url'       => Backend::url('powersystem/menus'),
            'icon'      => 'icon-futbol-o',
            'order'     => 500,
        ],
    ];
}

public function registerComponents()
{
    return [
        'PowerSystem\Menus\Components\Menu' => 'menu',
        'PowerSystem\Menus\Components\MenuItems' => 'menuItems',
        'PowerSystem\Menus\Components\MenuList' => 'menuList',
    ];
}

public function registerPageSnippets()
{
    return [
        'PowerSystem\Menus\Components\Menu' => 'menu',
        'PowerSystem\Menus\Components\MenuItems' => 'menuItems',
        'PowerSystem\Menus\Components\MenuList' => 'menuList',
    ];
}

}

I would really appreciate some help with this issue.Thanks!

daftspunky
daftspunky

Check to make sure your plugin is still available in the system, and is also enabled. You can do this via the System > Updates & Plugins page.

Hessel
Hessel

Thanks for the fast reply.

daftspunk said:

Check to make sure your plugin is still available in the system, and is also enabled. You can do this via the System > Updates & Plugins page.

I checked, it wasn't disabled, but after I saved the plugin appeared in the builder plugin again and in the component menu.

However the front-end error remains the same. Any thoughts on that?

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.