Login error after theme removal
Permalink
Hi
Firstly I am no expert at this so please be gentle. I simply removed an un-used theme from the dashboard, it wasn't the theme I was using or indeed still am. But since the removal the website works fine but I cannot login I get this error message.
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.
The theme I removed was Uhuru Theme, and the theme I am using is Whitelist.
I read on these forums that someone corrected a similar problem by going into phpmyadmin and packages and turning of the offending theme by changing 1 to 0. this just caused the whole site to crash.
I have searched as much as I know in the file manager within Cpanel for anything obvious but like I said my knowledge is limited in this field.
Please can anyone advise me.
Thanks
Firstly I am no expert at this so please be gentle. I simply removed an un-used theme from the dashboard, it wasn't the theme I was using or indeed still am. But since the removal the website works fine but I cannot login I get this error message.
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.
The theme I removed was Uhuru Theme, and the theme I am using is Whitelist.
I read on these forums that someone corrected a similar problem by going into phpmyadmin and packages and turning of the offending theme by changing 1 to 0. this just caused the whole site to crash.
I have searched as much as I know in the file manager within Cpanel for anything obvious but like I said my knowledge is limited in this field.
Please can anyone advise me.
Thanks
Can anyone help me please
Sounds like a missing view.php file in the theme's directory. See here for a fix.http://www.concrete5.org/community/forums/chat/missing-files-or-fil...
Hi
LatFarry
Every theme should have view.php file...so view.php file is missing from your installed theme
please rectify
Regards
jupiter
LatFarry
Every theme should have view.php file...so view.php file is missing from your installed theme
please rectify
Regards
jupiter
Thank you for replying, when I look in my file manager - public_html / My website / packages the deleted theme Uhuru is still there and has both view.php and default.php in the theme folder within Uhuru, and the same for the theme I am using, Whitespace theme, the same two files are present. This is what is confusing me. Am I looking in the wrong folders? and which of the two themes is this missing files error refering to. Would it be the deleted one ar the one I have been using all along.
Thanks for your help
Thanks for your help
It would be the active theme that you're looking for.
If you download the file view.php from whitespace and open it up - is there anything there?
If you download the file view.php from whitespace and open it up - is there anything there?
Hi juddc
I have downloaded the view.php file from whitespace an this is what it contains
<?php
defined('C5_EXECUTE') or die(_("Access Denied."));
$this->inc('elements/header.php'); ?>
<div id="content">
<div id="contentleft" class="full">
<?php
print $innerContent;
?>
</div>
</div>
<!-- The main column ends -->
<?php $this->inc('elements/footer.php'); ?>
I have downloaded the view.php file from whitespace an this is what it contains
<?php
defined('C5_EXECUTE') or die(_("Access Denied."));
$this->inc('elements/header.php'); ?>
<div id="content">
<div id="contentleft" class="full">
<?php
print $innerContent;
?>
</div>
</div>
<!-- The main column ends -->
<?php $this->inc('elements/footer.php'); ?>
Huh. That's what should be there. Odd - I'm not sure what else it would be.
This is what is in the view.php file from the Uhuru theme that I deleted but is still in the directory, are the differences significant and should the deleted theme still be there?
<?php
$this->inc('elements/header.php');
?>
<div id="content" class="container">
<section class="row">
<article class="span12">
<?php print $innerContent; ?>
</article>
</section>
</div>
<?php
$this->inc('elements/footer.php');
?>
<?php
$this->inc('elements/header.php');
?>
<div id="content" class="container">
<section class="row">
<article class="span12">
<?php print $innerContent; ?>
</article>
</section>
</div>
<?php
$this->inc('elements/footer.php');
?>
Did you perhaps set the site_theme_paths.php in the root Config folder to the deleted theme?
<?php defined('C5_EXECUTE') or die("Access Denied."); /* you can override system layouts here - but we're not going to by default For example: if you would like to theme your login page with the Green Salad theme, you would uncomment the lines below and change the second argument of setThemeByPath to be the handle of the the Green Salad theme "greensalad" */ $v = View::getInstance(); $v->setThemeByPath('/login', "custom"); $v->setThemeByPath('/page_forbidden', "custom"); $v->setThemeByPath('/register', "custom"); $v->setThemeByPath('/page_not_found', "custom");
Did you perhaps set the site_theme_paths.php in the root Config folder to the deleted theme?
<?php defined('C5_EXECUTE') or die("Access Denied."); /* you can override system layouts here - but we're not going to by default For example: if you would like to theme your login page with the Green Salad theme, you would uncomment the lines below and change the second argument of setThemeByPath to be the handle of the the Green Salad theme "greensalad" */ $v = View::getInstance(); $v->setThemeByPath('/login', "custom"); $v->setThemeByPath('/page_forbidden', "custom"); $v->setThemeByPath('/register', "custom"); $v->setThemeByPath('/page_not_found', "custom");