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

kai20720
kai20720

Hi! Im very thankfull for help, seem that there is not a post with this error/help somewhere yet.

I created a Plugin with Builder, respectivly several sub-Plugins in a main Plugin. On the main Plugin.php, I register it (Galleries) as Snippet, as I want to use it in Static Pages, like this

public function registerPageSnippets() { return [ 'MName\Ffte\Components\TeamProfiles' => 'team_profiles', 'MNamer\Ffte\Components\Galleries' => 'galleries' ]; }

I did TeamProfiles yesterday, everything works. Today with Galleries a Error comes up:

"Class 'MName\Ffte\Components\Galleries' not found" (/Users/xy/Sites/ffde/plugins/rainlab/pages/classes/Snippet.php line 284), when I try to open Static Pages now.

Running php artisan october:up and clear:cache in the Terminal did nothing. Create:component is not doing anything either, also not creating new components (it did yesterday, but perhaps not possible if there is already a component folder now?) The component class galleries.php seems to be, the path too.

I have no idea what I could do to solve this. Im more a webdesigner than a developer, a low-level answer is highly welcomed! Thanx.

JeffGoldblum
JeffGoldblum

Did you check to see that the class actually exists within the '/Users/xy/Sites/ffde/plugins/mname\ffte\components' folder with the filename of Galleries.php? Also, is the namespace at the top of that class file correct? (i.e. namespace Mname/Ffte;). And finally, is that component class name actually class Galleries {?

One other thing, MName\Ffte\Components\TeamProfiles has a different namespace than MNamer\Ffte\Components\Galleries (notice MName vs MNamer). That's very likely your problem.

1-2 of 2

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