5.5.2.1 to 5.6.0.2 Breaks Site/Theme

Permalink
I have been trying to upgrade to 5.6.0.2 from 5.5.2.1 for awhile now, and have not had success. The database upgrades fine but when I go to my index page, I have defaulted to a blank page with C5's "vanilla" theme. If I try to change the layout and theme through "Design," I receive the attached error message.

The big issue here is that the database has upgraded to 5.6.0.2 but I had to downgrade and run C5 at 5.5.2.1 and this is causing various compatibility errors in the backend. Needless to say, any help or a point in the right direction would be GREATLY appreciated!

1 Attachment

 
foster replied on at Permalink Reply
foster
What do you see when you go to:

http://www.your-concrete5-site.com/index.php/tools/required/upgrade...

(no ... at the end. I think the forum just adds that for all links)
TEades replied on at Permalink Reply
Thanks for the response! Here's what I get:

Upgrading from 5.6.0.2
Upgrading to 5.5.2.1

Your current website uses a version of Concrete5 greater than this one. You cannot upgrade.
foster replied on at Permalink Reply
foster
Referencing this thread:
http://www.concrete5.org/community/forums/installation/trying-to-up...

look for site.php in the config folder
check and make sure the version you want the site to be using is there, not the newer version
TEades replied on at Permalink Reply
I would like the site to run 5.6.0.2, but whenever I do is when I start experiencing problems. Right now, site.php is configured with 5.5.2.1.
foster replied on at Permalink Reply
foster
This is what I do to safely upgrade sites, especially if they are still in development mode.
It is a bit long, but you end up with a fresh install of C5 with your content, and no upgrades...

In your functioning site that you want to upgrade:
clear the cache
run a backup
download the backup

Create a fresh install of C5

Go to the old c5 folder by ftp or locally on your hard drive
copy everything in the folders:
blocks
packages
themes
and all folders named with numbers in the "files" folder (like 1913). I think they all end in 13
to
the corresponding folders in your fresh install
You would need to copy the contents of some other folders if you've created override files in there, but this is less common (sometimes I have something in "elements" for example)

in your new install, upload the backup from the old site into files/backups folder

in the new site, go to the dashboard in C5 and restore from backup
if all goes well the site will be good to go then... but upgrading from 5.5.2.1 to 5.6.0.2 I usually get a white page with an error code " Fatal error: Exception thrown without a stack frame in Unknown on line 0"

If that happens then
In a new tab go to
http://www.your-concrete5-site.com/index.php/tools/required/upgrade...
It will say that you need to upgrade the site from 5.5.2.1 to 5.6.0.2

Click the button and hopefully the whole site will be restored.

Hope that was easy to follow - if you have questions, let me know.
JohntheFish replied on at Permalink Reply
JohntheFish
I have an addon 'Backup Voodoo' in the PRB awaiting release that does the first part of this for you, all in a zip file so you can easily upload, unzip, import a database and go.
foster replied on at Permalink Reply
foster
That will be such a time saver - and a simplification of the process. Thanks for letting us know!
JohntheFish replied on at Permalink Reply
JohntheFish
TEades replied on at Permalink Reply
I figured a clean install was probably where I was headed. ;-) Working on that now...
TEades replied on at Permalink Reply
I followed your instructions exactly, but even though I restored the database, none of my site content is there.

Any ideas?
foster replied on at Permalink Reply
foster
well crud.

Does the old version of your site seem to be functioning correctly? All content there, no weird stuff happening...

In the new version, is your theme active and no content - or does it just look like a fresh install (default theme, no content) after you ran the restore from database?
TEades replied on at Permalink Reply
From the front-end, the old site works just as it should with content and templates. In the back, there are some database issues when updating certain add-ons, but I haven't ruled out compatibility issues yet. I can stay with 5.5.2.1, but I would like to know that I WILL be able to update successfully at some point to a newer version.

When I perform the upgrade, it looks like a fresh install after restoring the database...vanilla template and no content. Now, I DID try to upload the backup via phpMyAdmin and got a 2006 error, meaning my "max_allowed_packet" limit is too low to import. I'm working on fixing that now to see if it makes a difference.
foster replied on at Permalink Reply
foster
Yeah, maybe it timed out. I've had issues with that in the past, but was able to increase the max time allowed for php and that certainly makes a difference.

Let us know if that gets your site going...
TEades replied on at Permalink Reply
What did you increase your limit to?
foster replied on at Permalink Reply
foster
On one larger site I had to go to 256M to get the database to import, plus changed the time. Not sure if that is safe to leave once you get it imported or not. Maybe someone else will chime in...

This is what I used:
max_execution_time = 480     ; Maximum execution time of each script, in seconds
max_input_time = 480   ; Maximum amount of time each script may spend parsing request data
memory_limit = 256M      ; Maximum amount of memory a script may consume (8MB)
TEades replied on at Permalink Reply
I WAS able to import my database--YAY!--but now I can't login. It says my username or password is wrong but even after going into the database to put in a new MD5 hash, it won't work.
foster replied on at Permalink Reply
foster
you are good to go now - having to reset the admin password when restoring the database is fairly common in my experience.
First try and reset your password by putting in your email address in the "forgot password?" box - I know you didn't forget it, but this is just a way to reset it.
If you get the reset email, just follow the instructions and you are done.
If you don't get the email - sometimes localhost, or a site still on an IP address will not send the reset email - you can find the text of the email by:
access your database with phpMyAdmin or whatever tool you use,
Find the Logs
open and look for a reset email
copy the reset link
paste into browser
enter new password
Done!

You are so close! Let me know if you need a little more info on the database log/reset email thing.
TEades replied on at Permalink Reply
I go to the URL it sends me, but I get "Page Forbidden." No place to put in a new password.

Thank you so much for hanging in there with me. :-) My own patience is beginning to wane!
TEades replied on at Permalink Reply
I'm in now! Just poking around...content is in the Full Sitemap, but my "Home" is still in vanilla mode with no content.
foster replied on at Permalink Reply
foster
If you visit a page (not home) through the sitemap is the theme applied?
TEades replied on at Permalink Reply
Yes it is, and all content is there.
foster replied on at Permalink Reply
foster
That's good. I've never seen the theme not show up on the home page like that. I'd try clearing concrete5 cache, clearing browser cache, refreshing...
Then try changing themes and then back to your theme....

If that doesn't get it I'm not sure how to get the theme applied to the home page.
As far as the content goes, at this point I'd probably just recreate it, not optimal, but hopefully doable.

If the cache flushing doesn't work you might want to start a new thread on the theme not showing on the homepage to see if someone else would know what to do.
TEades replied on at Permalink Reply
I tried to edit the design of the page, (clearing the cache did not work), but when I clicked on "Design," received this error:

Fatal error: Call to a member function getThemeID() on a non-object in D:\Website\Joomla\concrete5\cms\concrete\elements\collection_theme.php on line 38
foster replied on at Permalink Reply
foster
I think you need to start a new thread. Sorry!
foster replied on at Permalink Reply
foster
Did you try to use a different theme, and then change back to your original theme?
TEades replied on at Permalink Reply
Is there a way to change the theme without going to the "Design" link?
foster replied on at Permalink Best Answer Reply
foster
/index.php/dashboard/pages/themes/
or
Click on Full Dashboard
Find Page & Themes
Click Themes
activate some other theme, check to see if it is applied
then activate your original theme and see if it has any effect on the home page

I think it is a long shot, but I'm curious to see if that could help.
If it doesn't, I am wondering if there is something on the template or in the content of your home page that is in conflict with the update.
TEades replied on at Permalink Reply
AHA! That worked! Thank you so much for ALL of your help!
foster replied on at Permalink Reply
foster
Yessssss! Glad to hear your site is good to go.
olavax replied on at Permalink Reply
Hi,

I do have the same problem :
In the transfer (from 5.6.3.2 of a wamp server to a server) I've for the third time reinstall according to the mentioned process but at the end I've an empty site.

I've succed in restoring the theme : selecting a vanilla and back to mine. but the content is completely empty.
I've tried to add and delete some temporary content, in works, but i cant figure out how to make the copied content active in the new environment.


Can you please advice ?

Regards