Error after Install New Theme

Permalink
Hello
I got the following error after the installation of any Theme made by me inside 5.7.1:

An unexpected error occurred.
Undefined class constant 'FILENAME_PAGE_TEMPLATE_DEFAULT_ICON'


Any idea why and if this can be set?

Thank you very much.

pedroserapio
 
phre4k replied on at Permalink Reply
quick workaround: comment the following lines in /concrete/controllers/single_page/dashboard/pages/themes/inspect.php:
if (!file_exists(DIR_FILES_PAGE_TEMPLATE_ICONS . '/' . $pTemplateIcon)) {
                $pTemplateIcon = Theme::FILENAME_PAGE_TEMPLATE_DEFAULT_ICON;
                }

like this:
//~ if (!file_exists(DIR_FILES_PAGE_TEMPLATE_ICONS . '/' . $pTemplateIcon)) {
                //~ $pTemplateIcon = Theme::FILENAME_PAGE_TEMPLATE_DEFAULT_ICON;
                //~ }
pedroserapio replied on at Permalink Reply
pedroserapio
Thanks, worked perfectly!

To me looks not a very important information, that will broken something. Do you think this is a option that is been prepared for the future?
andrew replied on at Permalink Reply
andrew
We are fixing this in a release this week.
pedroserapio replied on at Permalink Reply
pedroserapio
Got it, nice.
Flora replied on at Permalink Reply
Did the release happen? I'm on 5.7.1 and it's telling me I'm up-to-date. Thanks.
andrew replied on at Permalink Reply
andrew
Yes – we haven't yet enabled auto update or update notifications for 5.7. We hope to do that with a release very soon. You can download the release from concrete5.org/download.

FYI – there is a bug in 5.7.1 (when updated to from a previous version) that actually deletes the inspect/page templates page in a theme. This shouldn't be an issue if you start with 5.7.1 or higher. We will be fixing that soon, but if anyone sees this bug in action, you can fix it by going to Dashboard > Pages & Themes > Single Pages, and typing this line in the add single page input:

"/dashboard/pages/themes/inspect"

and hitting enter.