Custom Mobile Theme not working

Permalink
Hi all,

I have been creating custom mobile themes for Concrete5 sites for a while, and have had great results. My normal process is to develop a base theme folder with 3 sub folders. One sub folder has the desktop PHP files, one has the mobile PHP files, and the last one is an assets folder which has the following folders: CSS, Fonts, SASS, IMG, INC and JS. These are shared assets used by the 2 other folders. I attached an image of the file structure.

I am creating my first site in 5.8, and I am getting an error when I try to use my mobile folder as a mobile theme. The error is :

Class 'Concrete\Core\Http\Theme' not found

If anyone has any insight as to what I need to change, I would appreciate it. I have searched the forums and Stack Overflow, but can't find a solution.

Thanks!
Craig

1 Attachment

vergedesign
 
Gondwana replied on at Permalink Reply
Gondwana
I wonder if it could be something to do with the changed autoloader routing in 5.8:
https://documentation.concrete5.org/developers/extending-concrete5-w...
vergedesign replied on at Permalink Reply
vergedesign
Thanks for the quick response, but I don't believe this is the problem, as it would probably cause the same issue with my main "Desktop" theme. That theme loads perfectly. Only selecting a different Mobile Theme causes the error.

Incidentally, the error comes up when I try to load any theme as the Mobile Theme, including Elemental.
Gondwana replied on at Permalink Reply
Gondwana
Good point.

Now I'm wondering about the hyphen in the directory name.
vergedesign replied on at Permalink Reply
vergedesign
Yeah, that had occurred to me early in, even though that is how I always did it pre-5.8. I already tried removing the hyphen, with no joy.

Thanks again for the effort.
MrKDilkington replied on at Permalink Best Answer Reply
MrKDilkington
Hi vergedesign,

This issue appears to be fixed in the next release:
Fix unable to use mobile theme #5130
https://github.com/concrete5/concrete5/pull/5130...
vergedesign replied on at Permalink Reply
vergedesign
Thanks for the update, MrKDilkington. Any idea when the next build will be released?
MrKDilkington replied on at Permalink Reply
MrKDilkington
@vergedesign

I don't know of any release date. I imagine the next month or two.

If you make a full backup (database and files), you can patch the bug yourself in the meantime.
vergedesign replied on at Permalink Reply
vergedesign
Right, of course! Don't know why that didn't occur to me. An easy 3 line fix.

Thanks again!