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

epsilonrequiem
epsilonrequiem

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 ?

smartpx.studio
smartpx.studio

Hi! Have you resolved this? I experience the same: local ok, dev server ok, production - only one component, very similar to others, is not shown. Already set 777 to the plugin's folder, have no ideas, no visible errors.

daftspunky
daftspunky

This is usually caused by case sensitivity in the folder names. Make sure everything is lower case

1-4 of 4

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