Themes Available to Install shows bogus errors for page_theme.php. ver 5.7
Permalink
I am trying to create a very basic theme. I am following Andrew's video, "Converting an HTML Template..." and "Enabling the Bootstrap 3 Grid...". When I select "Pages & Themes" from the dashboard, I find my theme with this error message;
"The theme file page_theme.php does not defines the class Application\Theme\Simple\PageTheme".
I have gone over and over my code and I can't see a problem except the discrepancy between Andrew's rendition of this file in his videos. He shows the namespace "Application\Theme\Urbanic" and yet this works for him. Isn't the path "application/themes/urbanic" and not "theme"? I have tried it both ways with the same ill response. The following is my file in question;
<?php
namespace Application\Themes\Simple;
use Concrete\Core\Page\Theme\Theme;
class PageTheme extends Theme {
protected $pThemeGridFrameworkHandle = 'bootstrap3';
}
I first tried it the way Andrew showed in the video with "Theme" in the namespace declaration. After the first failure with this error message I then changed the namespace to show Themes instead. I resellected "Pages & Themes" from the dashboard and got the same error message showing "Application\Theme\Simple", not with "Themes" as I changed it in the file. This seems to indicate that Concrete5.7 is remembering the first loading of the theme and using that instead of using any subsequent updates.
I then, thought that perhaps the word "simple" might be a restricted word so I changed the name of the directory to "minimal" I then changed description.txt and page_theme.php to match the new path to the theme. This didn't help. In fact, it got worse. The theme "Simple" doesn't exist any more and yet it is still showing up along with the theme "Minimal" when "Pages & Themes" are selected again. The real mind boggler is that have each other's error messages. the following were cut from "Themes Available to Install";
#
Simple
A very basic minimal theme.
The theme file page_theme.php does not defines the class Application\Theme\Minimal\PageTheme
#
Minimal
A very basic minimal theme.
The theme file page_theme.php does not defines the class Application\Theme\Simple\PageTheme
What am I doing wrong or am I just having another bad day?
"The theme file page_theme.php does not defines the class Application\Theme\Simple\PageTheme".
I have gone over and over my code and I can't see a problem except the discrepancy between Andrew's rendition of this file in his videos. He shows the namespace "Application\Theme\Urbanic" and yet this works for him. Isn't the path "application/themes/urbanic" and not "theme"? I have tried it both ways with the same ill response. The following is my file in question;
<?php
namespace Application\Themes\Simple;
use Concrete\Core\Page\Theme\Theme;
class PageTheme extends Theme {
protected $pThemeGridFrameworkHandle = 'bootstrap3';
}
I first tried it the way Andrew showed in the video with "Theme" in the namespace declaration. After the first failure with this error message I then changed the namespace to show Themes instead. I resellected "Pages & Themes" from the dashboard and got the same error message showing "Application\Theme\Simple", not with "Themes" as I changed it in the file. This seems to indicate that Concrete5.7 is remembering the first loading of the theme and using that instead of using any subsequent updates.
I then, thought that perhaps the word "simple" might be a restricted word so I changed the name of the directory to "minimal" I then changed description.txt and page_theme.php to match the new path to the theme. This didn't help. In fact, it got worse. The theme "Simple" doesn't exist any more and yet it is still showing up along with the theme "Minimal" when "Pages & Themes" are selected again. The real mind boggler is that have each other's error messages. the following were cut from "Themes Available to Install";
#
Simple
A very basic minimal theme.
The theme file page_theme.php does not defines the class Application\Theme\Minimal\PageTheme
#
Minimal
A very basic minimal theme.
The theme file page_theme.php does not defines the class Application\Theme\Simple\PageTheme
What am I doing wrong or am I just having another bad day?