Error loading Login.php Need help!
Permalink
I Just tried to login to one of my test sites and I recieved the following error.
-----
An unexpected error occurred.
File not found. All themes need default.php and view.php files in them. Consult concrete5 documentation on how to create these files.
------
I check that the concrete/single page is there, and also the signle page I have in the upper floder not the one in the concrete folder. both are there and both look fine. Not sure what happened from yesterday but need to know where to look?
-Frank
-----
An unexpected error occurred.
File not found. All themes need default.php and view.php files in them. Consult concrete5 documentation on how to create these files.
------
I check that the concrete/single page is there, and also the signle page I have in the upper floder not the one in the concrete folder. both are there and both look fine. Not sure what happened from yesterday but need to know where to look?
-Frank
Sorry if this is a stupid question -- but do you have both default.php and view.php files in your theme's directory? Was this error on the login page itself or a normal content page? If it was a system page (like login or register), check the config/site_theme_paths.php file to see if you changed it to a theme that doesn't have view.php file. If it's a normal content page, what theme was assigned to the page?
yes i have both default.php and view.php. the site was working fine for months, nothing change ( that i know of) yes i do have this in my site_theme_path.php
---
$v = View::getInstance();
$v->setThemeByPath('/login', "wotr1");
---
---
$v = View::getInstance();
$v->setThemeByPath('/login', "wotr1");
---
ok i removed the entry from the
site_theme_paths.php and it worked. any clue what happended?
site_theme_paths.php and it worked. any clue what happended?
Weird -- I have no idea. I was just going to suggest clearing the cache -- maybe something just got messed up (installed a misbehaving addon? I dunno).
Glad it's fixed (although now you won't be able to customize the login page -- but maybe tomorrow it will magically start working again??)
Glad it's fixed (although now you won't be able to customize the login page -- but maybe tomorrow it will magically start working again??)