Broken Site

Permalink
I don't have much experience with concrete5 (this is my first day on the site). I came here after I was asked to look into a problem with my boss' friends site. Upon accessing the site (which can be seen here:http://www.izdesignstudio.com/)... I noticed the error "Class 'Concrete\Core\Package\ContentSwapper' not found" appeared with almost nothing else on the page. I cannot access the CMS at all as all I get is that error message on every page I try to access. At first guess I want to say that the site had a new theme installed that wasn't supported on 5.7? I can't really tell since I can't access anything and that's all I have to go off of.

Can anyone help me out here? Is there any way I can roll back the site to something previous or find out what is needed to fix it up?

 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi rklitz11,

I believe you are correct, a theme was installed that isn't compatible with 5.7. The theme installed appears to be for version 8 of concrete5.

The site was/is using the Anitya theme.
http://webcache.googleusercontent.com/search?q=cache:LgYAsTCd1_UJ:w...

It looks like others have encountered this issue (including the user, izdesign):
https://www.concrete5.org/marketplace/themes/anitya/support/an-unexp...

The best person to help you with this would be the theme maker.

Is there a site backup available? If not, I would make a full backup of the site (files and database) and recreate it locally. You can then use the local version to see what steps are required to remove the theme or replace it with the last version of the theme that worked.
rklitz11 replied on at Permalink Reply
How were you able to determine the theme that was/is being used currently? I'm in PHPMyAdmin at the moment in the PageThemes table and don't see the one you mentioned listed there. Here are all the themes I currently see:
Acromin5
Dark Chocolate
ZenLike 1.0
FlexCRETE
Plain Yogurt
Greek Yogurt
Moldy Yogurt
Starter Template with 960 Grid System
Whitespace

With those being said, which ones could I try to revert this site to in order to try and getting back up and running? I'm not too familiar with how to check which themes are compatible with 5.7 and which aren't. Is there any way I can check to see the last theme used prior to this issue occurring?
ConcreteOwl replied on at Permalink Best Answer Reply
ConcreteOwl
Since you cannot access the site, I think you will have to modify the database using phpMyAdmin.
To do this, in phpMyAdmin find the database table called 'PageThemes' and note the 'pThemeID' for each theme installed.
Select the Theme you wish to enable by its pThemeID number.
For the purpose of this explanation lets assume the pThemeID of the theme we want is number '12'.
Next find the 'CollectionVersions' table and open the table, from the top menu click 'SQL'.
Delete the default sql and enter the following
UPDATE `CollectionVersions` SET `pThemeID` = 12

Next click 'Go' in the bottom right hand corner..
This will change all pages to use the Theme that has a Page Theme ID of 12.

As usual, please take a full backup of your database before attempting this procedure.
rklitz11 replied on at Permalink Reply
I'm currently in the database table for PageThemes but I'm having trouble determining which one was being used prior to this issue occurring. That being said, do you have any idea which one would be a safe bet to revert to using the list below that I've pulled from the table?
Acromin5
Dark Chocolate
ZenLike 1.0
FlexCRETE
Plain Yogurt
Greek Yogurt
Moldy Yogurt
Starter Template with 960 Grid System
Whitespace

I'd imagine the Stater Template is probably a safe one to revert to. But if there is any way to find out which theme was being used prior to the current one that broke the site, that'd be awesome
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
You may be able to detect this from the CollectionVersions table, see which pThemeID's are listed in that table.