Urgent! Website broken after upgrading attempt.

Permalink 1 user found helpful
Hi there,

I need urgently help with this! I was having issues before with "Fatal Error: Maximum execution time" then I lost all the content from my homepage and could not restore previous versions = "Fatal Error: Maximum execution time." I thought it thought it could be related to lack of upgrading and decided to upgrade to the new C5 version and got this:
I can't login now, I do not have access to my website.

PLEASE HELP!
Warning: require() [function.require]: Unable to access /home/jobs4librarians.com/web/updates/concrete5.5.2.1/concrete/dispatcher.php in /usr/home/jobs4librarians.com/web/concrete/startup/updated_core_check.php on line 6
Warning: require(/home/jobs4librarians.com/web/updates/concrete5.5.2.1/concrete/dispatcher.php) [function.require]: failed to open stream: No such file or directory in /usr/home/jobs4librarians.com/web/concrete/startup/updated_core_check.php on line 6
Warning: require() [function.require]: Unable to access /home/jobs4librarians.com/web/updates/concrete5.5.2.1/concrete/dispatcher.php in /usr/home/jobs4librarians.com/web/concrete/startup/updated_core_check.php on line 6
Warning: require(/home/jobs4librarians.com/web/updates/concrete5.5.2.1/concrete/dispatcher.php) [function.require]: failed to open stream: No such file or directory in /usr/home/jobs4librarians.com/web/concrete/startup/updated_core_check.php on line 6
Fatal error: require() [function.require]: Failed opening required '/home/jobs4librarians.com/web/updates/concrete5.5.2.1/concrete/dispatcher.php' (include_path='.:/usr/share/php:/usr/share/pear') in /usr/home/jobs4librarians.com/web/concrete/startup/updated_core_check.php on line 6

ggutierrez79
 
Mainio replied on at Permalink Reply
Mainio
This is probably a file permission issue, you should probably contact your service provider to fix it. Or if you have straight shell access, you could try running this IN THE CONCRETE'S INSTALLATION DIR:
chmod -R 755 .
ggutierrez79 replied on at Permalink Reply
ggutierrez79
Sorry for this, but how should I proceed to run that? I do have access to my server through ftp.
Thanks a lot!
Mainio replied on at Permalink Reply
Mainio
That is run in the command shell of your server, so you should connect there e.g. with SSH. And I've assumed this site is running on a Linux-based server.

You can usually also update your file-level permissions from FTP but updating thousands of files manually one by one might take you hours or even days whereas running that command takes a couple of seconds.

If you don't have shell access, your service provider might have given you e.g. cPanel access where you have tools to do this.
ggutierrez79 replied on at Permalink Reply
ggutierrez79
Hi,
An agent of my service provider has run the command for me, but I don't have access to the log in page yet. Same error.
Any idea? What should I do next?

Thanks a lot!
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Where did you download the update package from?
ggutierrez79 replied on at Permalink Reply
ggutierrez79
From the dashboard, updates news board.
I just clicked on the link to upgrade....

I hope it helps.
Mainio replied on at Permalink Reply
Mainio
Yeah, that might also be that your update has not been successful.

You could try downloading version 5.5.2.1 from the download dir and replace your /updates/concrete5.5.2.1/ contents with the files contained in the originally downloaded file.
ggutierrez79 replied on at Permalink Reply
ggutierrez79
By checking updates/concrete5.5.2.1/ I find an inedx.html and the folder concrete which contains all the folders page_types, single pages, themes, etc.

So should I delete all the contents and put them again (downloaded files)?

Thanks!
ggutierrez79 replied on at Permalink Reply
ggutierrez79
Should I keep the same directory structure withing the folder Concrete5.5.21?

Index.html

Concrete/ and within this folder all the other folders?

Thank you... My first upgrade :/
Mainio replied on at Permalink Reply
Mainio
Just to clear up:
1. Download 5.5.2.1 from here:http://www.concrete5.org/developers/downloads/...
2. Extract the folder "concrete5.5.2.1/concrete" from that zip file
3. Upload that (=replace current one) to your /upgrades/concrete5.5.2.1/concrete

And if you get database errors after that, you still probably need to run the upgrade scripts.
ggutierrez79 replied on at Permalink Reply
ggutierrez79
Hi there,

After doing that I get the following error when trying to log in.

Fatal error: Uncaught exception 'ADODB_Exception' with message 'mysql error: [1054: Unknown column 'Pages.cIsActive' in 'field list'] in EXECUTE("select Pages.cID, Pages.pkgID, Pages.cPointerID, Pages.cPointerExternalLink, Pages.cIsActive, Pages.cIsSystemPage, Pages.cPointerExternalLinkNewWindow, Pages.cFilename, Collections.cDateAdded, Pages.cDisplayOrder, Collections.cDateModified, cInheritPermissionsFromCID, cInheritPermissionsFrom, cOverrideTemplatePermissions, cPendingAction, cPendingActionUID, cPendingActionTargetCID, cPendingActionDatetime, cCheckedOutUID, cIsTemplate, uID, cPath, Pages.ctID, ctHandle, ctIcon, ptID, cParentID, cChildren, ctName, cCacheFullPageContent, cCacheFullPageContentOverrideLifetime, cCacheFullPageContentLifetimeCustom from Pages inner join Collections on Pages.cID = Collections.cID left join PageTypes on (PageTypes.ctID = Pages.ctID) left join PagePaths on (Pages.cID = PagePaths.cID and PagePaths.ppIsCanonical = 1) where Pages.cID = '5'") ' in /usr/home/jobs4librarians.com/web/updates/concre in /usr/home/jobs4librarians.com/web/updates/concrete5.5.2.1/concrete/libraries/3rdparty/adodb/adodb-exceptions.inc.php on line 78


It is this what you mean? Would I have to run upgrade scripts? thanks!!
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Go to this location and login
http://jobs4librarians.com/index.php/dashboard/...
Clear your cache..
ggutierrez79 replied on at Permalink Reply
ggutierrez79
I get this:
Fatal error: Class 'Stack' not found in /usr/home/jobs4librarians.com/web/updates/concrete5.5.2.1/concrete/models/collection.php on line 705
Mainio replied on at Permalink Best Answer Reply
Mainio
MAKE SURE that BEFORE doing that, please take a backup of your database. If this goes wrong, the process cannot be reverted without a backup. This means that if this breaks your site, your site is broken, period. ALWAYS BACKUP BEFORE UPDATE!

Second thing you should make sure is that your current version of concrete5 has been AT LEAST 5.4.2.2. If it has been previous, you should first upgrade to 5.4.2.2. If you try upgrading previous version to 5.5.2.1, that will not work, period! The upgrade paths do not support this.

So my word to you: you have been warned!

But here's how to do it after making sure everything above is OK, go to:
www.yoursite.com/index.php/tools/required/upgrade


And click the button to upgrade.
ggutierrez79 replied on at Permalink Reply
ggutierrez79
I am afraid I tried to log in, before getting your message.

Still having the error about the Stacks :(

Any suggestion?
Mainio replied on at Permalink Reply
Mainio
Check your file system and make sure there is this file:
/upgrades/concrete5.5.2.1/concrete/models/stack/model.php


If that's not there, some files have probably not been uploaded during your file uploads to the server.
ggutierrez79 replied on at Permalink Reply
ggutierrez79
I am now deleting the folder concrete5.5.2.1 from the the updates directory and will transfer all the files from the version 5.4.2.2.
I think I was running before the 5.4.1. So let see whether that's is part of the problem....

By the way, that file model.php was there.
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
You will also need to edit your root/config/site.php file and delete this section
define('DIRNAME_APP_UPDATED', 'concrete5.5.2.1');
ggutierrez79 replied on at Permalink Reply
ggutierrez79
Thanks! The situation is like this now.

- Deleted the snippet you mentioned.
- unpacked and transferred to updates folder the version 5.4.2.2

I do the login and works.

However:
1. Should I know try to upgrade?

2. When I go to dashboard/system& settings to clear the cache, it does not find the page "Page not found" that's odd...

3. When I log in the home page looks how left it last time, however when going to edit mode: EVERYTHING is gone! No content, no header, ... a blank page with the block ready to put info in there. I have tried to restore the previous version but it doesn't let me... can't hit the button?

A huge thank you for all this help, I would have given up if I had not your help
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
I can see from your sites source code that you are running concrete5.4.2.2,
I can also see that you have not upgraded to that version, so I suspect that you were running 5.4.2.2 in the first instance,
This kinda makes sense because if you had tried to upgrade via the dashboard to 5.5.2.1 and you were running an earlier than 5.4.2.2 you would (or should) have received a warning notice!

So how best to proceed,
Try accessing your system using this method
http://jobs4librarians.com/index.php/dashboard/system/...
Let me know if that works..
ggutierrez79 replied on at Permalink Reply
ggutierrez79
Sorry, it doesn't work. "Page not found"
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Can you PM me some login details, ftp and website would be ideal.
ggutierrez79 replied on at Permalink Reply
ggutierrez79
sure, right now!