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
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
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.
Incidentally, the error comes up when I try to load any theme as the Mobile Theme, including Elemental.
Good point.
Now I'm wondering about the hyphen in the directory name.
Now I'm wondering about the hyphen in the directory name.
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.
Thanks again for the effort.
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...
This issue appears to be fixed in the next release:
Fix unable to use mobile theme #5130
https://github.com/concrete5/concrete5/pull/5130...
Thanks for the update, MrKDilkington. Any idea when the next build will be released?
@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.
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.
Right, of course! Don't know why that didn't occur to me. An easy 3 line fix.
Thanks again!
Thanks again!
https://documentation.concrete5.org/developers/extending-concrete5-w...