locked out of site plus theme is down

Permalink
I set a site up for a client. They emailed me because they were able to basically destroy the site from the dashboard. attached is screen shot of home page with these error messages:
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.

Warning: Cannot modify header information - headers already sent by (output started at /home/rynomed1/public_html/saga2011.info/concrete/themes/core/error.php:5) in /home/rynomed1/public_html/saga2011.info/concrete/libraries/view.php on line 758

I checked and the theme is in tact with all necessary files. The client did NOT have FTP access to the core files.

1 Attachment

cannonf700
 
LucasAnderson replied on at Permalink Reply
LucasAnderson
Any idea on what they did or what they were trying to do at the time? Is the rest of the concrete directory intact with no missing files?
firehouse replied on at Permalink Reply
firehouse
Wild guess, but is it possible that when they were adding a page and selecting the page type they accidentally selected the icon of the wrong theme and its trying to access a different theme that is missing the needed files? Such as they did this to the home page? Can you visit a different URL on the site, a specific page? Can you access the login url yoursite.com/index.php/login or the dashboard at yoursite.com/dashboard after logging in?
cannonf700 replied on at Permalink Reply
cannonf700
I'm not sure what they were up to but nothing more than pretty basic stuff. It was supposed to be simple from their end. Login, populate pages with simple static content, etc...

NO Part of the website is accessible.
I even tried re-installing the core. I could get to the upgrade required page but after re-running the script - nothing.

The thing that's concerning is how the site could basically be destroyed from the front-end. Weird.
firehouse replied on at Permalink Reply
firehouse
actually from the front end they could easily have been editing the home page or other pages, etc. and selected the design button and selected a different theme, or they could have selected properties and unchecked the access to everything. Although that doesn't explain your error when it comes to not being able to get to the login page or dashboard directly. This is beyond my expertise level, sorry I couldn't be of more help. Be sure to post the answer once you find it. :)
Good luck.
Mnkras replied on at Permalink Reply
Mnkras
somehow you client activated an invalid theme, what you can do, its go in the db to manually change it, or you can temporarily make a view.php (copy the deafult one) to where it thinks the theme is just so you can login and get to the dashboard
cannonf700 replied on at Permalink Reply
cannonf700
Mike,
where in the db should i look? i checked the 1 installed theme and the 3 default themes and they are all intact. the error message doesn't specify where the error is coming from just a generic "all themes must have default and view php files."

I poked around in the database a little bit but only found a row about 'pagethemes' but the only thing in there was default and dark chocolate.
Shotster replied on at Permalink Reply
Shotster
> It was supposed to be simple from their end. Login,
> populate pages with simple static content, etc...

Which version of C5? Also, how were they "populating" the pages? Were they typing or copying and pasting from other apps?

Do you have FTP access? If so, what does the config.php look like? Do you have remote access to the DB via a local DB admin client or anything?

-Steve
firehouse replied on at Permalink Reply
firehouse
via FTP look in in ALL theme folders and make sure all of them have a view.php and default.php .. if they don't then put yours in each theme folder for now.

places to look:
/themes - look in each theme folder
/concrete/themes look in each theme folder

then if one was missing default.php or view.php then that is probably what happened, as I was saying before, they went to a page on front end clicked design and selected a different theme and applied it.

make sure each theme folder has a view and default file, then try to access the site.

If you can access the site, then go to each page on the front end and select the design button at the top menu and assign each page to the correct theme. Update each page. Then go to all your theme folders and delete all the other themes so it won't happen again.

If there is a view.php and default.php file in each and every theme in both theme directories, then likely it is not a theme selection issue, but some other permissions issue.

Check this out and see if helps.