missing files or file not found

Permalink
I'm getting file not found errors on the registration and login pages.

i cant find any missing files and have diffed the version of the site on my laptop with the published version and can find no difference.

can anyone shed any light on this please.

http://www.peters-studio.co.uk/index.php/register/...

File not found. All themes need default.php and view.php files in them. Consult concrete5 documentation on how to create these files.

http://www.peters-studio.co.uk/index.php/login/...

has same error. apart from this the site all works.

 
okhayat replied on at Permalink Best Answer Reply
okhayat
As you error message says, you need those two files, especially view.php for /login and register.
The view.php file is simply your header and footer with the page content, like:
<!-- your header code -->
<? print $innerContent; ?>
<!-- your footer code -->

For more information see:
http://www.concrete5.org/documentation/developers/pages/single-page...
peteswat replied on at Permalink Reply
Ive now tracked this down to /concrete/libraries/view.php

This section of code below $this->theme is looking for a theme called Peters note the capital P.
the theme directory is peters lowercase P.
If I rename the theme directory to Peters then the login and register pages work but the rest of the site fails. A temporary work around is to create 2 theme directories Peters and peters so the whole site works. is this a bug? I have created customised registration and login pages.

if (file_exists($this->theme)) {
include($this->theme);
} else {
throw new Exception(t('File %s not found. All themes need default.php and view.php files in them. Consult concrete5 documentation on how to create these files.', $this->theme));
}
okhayat replied on at Permalink Reply
okhayat
Maybe removing and reinstalling the theme would solve the issue, after you make the theme directory name like the_theme_name using only small letters and underscores.
peteswat replied on at Permalink Reply
thanks for your suggestion. if i remove the theme will i lose any of my mods or will they load back in when i reinstate it?
okhayat replied on at Permalink Reply
okhayat
If you changed page default, yes, they will be reset.
But the code will not be affected.
gabrielkolbe replied on at Permalink Reply
Make sure your site_them_paths are not set

$v->setThemeByPath('/login', "yourtheme");
$v->setThemeByPath('/page_forbidden', "yourtheme");
$v->setThemeByPath('/register', "yourtheme");
$v->setThemeByPath('/page_not_found', "yourtheme");