Error with GridFramework crashing custom theme

Permalink
My Peak Parallax theme has been in the marketplace for a couple of years now. https://www.concrete5.org/marketplace/themes/peak-parallax/...

I made a small update to the footer and now when the theme is updated to the latest version, on the latest version of concrete5, this error is shown.
Class 'Concrete\Package\ThemePeak\Src\SkeletonGridFramework' not found

The screenshot below is from the debug view. I followed this tutorial exactly ->https://www.youtube.com/watch?v=F0lwOYbcvcE... and the grid was working on the previous versions. Can anyone help me with why this is occurring now?

I can send over the controller, pagetheme and SkeletonGridFramework files if needed.

Thanks
Steve

1 Attachment

C5ThemeTeam
 
jakobfuchs replied on at Permalink Reply
jakobfuchs
That tutorial is outdated. You need to autoload your classes as described here:https://documentation.concrete5.org/developers/packages/adding-custo...
C5ThemeTeam replied on at Permalink Reply
C5ThemeTeam
Jacob, Thank you for the advice.

I tried to follow the steps in the link you provided but I couldn't get my paths to work or something. I kept getting undefined errors.

In the end I gave up, I've just taken out the custom grid framework I was trying to install. The Free-form grid will work fine, there's plenty of page types to make up for the lack of custom grids for layouts.
jakobfuchs replied on at Permalink Reply
jakobfuchs
I can send you a package with a grid system that should work in v8+ PM me your email.
C5ThemeTeam replied on at Permalink Reply
C5ThemeTeam
Thanks very much. Will do that now.
janwidmer replied on at Permalink Reply
janwidmer
hey Steve,

I had the same problem, described here:https://www.concrete5.org/community/forums/customizing_c5/custom-gri...

With the help of the community, we found my problem, which might be the same you had:
If your package app required version is > 8, you need to add the following to your package controller:
protected $pkgAutoloaderRegistries = array(
   'src' => '\Concrete\Package\ThemePeak\Src'
);
C5ThemeTeam replied on at Permalink Reply
C5ThemeTeam
Thanks Jan.

It's so long ago I've forgotten the exact fix but I know JontheFish gave me a hand as well as Jakob to get it sorted.