epsilonrequiem57707
epsilonrequiem57707

Hi , Im a newbie on October CMS.

I make a Component via php artisan new component , and everything works on mi local side ( Win 10, Xampp, debug mode activated, October version:468 ) .. but when I deploy in production , didn't works.(linux, apache , debug mode off, October Version 465)

I got this message: Class name is not registered for the component

I saw my file /plugins/(author_name)/(plugin_name)/Plugin.php

public function registerComponents()
{
    return [     
        '(author_name)\(plugin_name)\Components\SectionLanding'               => 'SectionLanding',
        '(author_name)\(plugin_name)\SectionOferta'                => 'SectionOferta',
        '(author_name)\(plugin_name)\SectiontBanner'                => 'SectionBanner'  
    ];
}

In theory everithing Its ok ( works in local) Here a chunk of my page code

title = "Section Oferta" url = "/section/:slugOferta" layout = "default" is_hidden = 0 child_of = "subsection" hide_crumb = 0 remove_crumb_trail = 0 crumb_disabled = 0 crumbElementTitle = "crumb-title" slug = "{{:slugOferta}}"

[SectionLanding]

[SectionOferta] slug = "{{:slugOferta}}"

==

function onStart() {
    $this['slugOferta'] = $this->param('slugOferta');

}

==

mjauvin
mjauvin

most likely a permission problem within the plugin folder.

what does php artisan plugin:list return from your production installation ?

1-2 of 2