5.7.5.9 -> 5.7.5.10 dashboard update breaks site

Permalink 2 users found helpful
I attempted to update to from 5.7.5.9 -> 5.7.5.10 via the dashboard but got an error on installation

syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$'


and now the whole site (including dashboard) doesn't work and shows the below error

Doctrine\Common\Proxy\AbstractProxyFactory::getProxyDefinition(): Failed opening required '/home/karen123/public_html/application/config/doctrine/proxies/__CG__ConcreteCoreFileStorageLocationStorageLocation.php' (include_path='/home/karen123/public_html/updates/concrete5.7.5.10_remote_updater/concrete/vendor:.:/usr/lib/php:/usr/local/lib/php:/usr/local/php54/lib/php')


Following the instructions
http://documentation.concrete5.org/developers/installation/upgradin...
adding the update to the folder and then calling it through
http://thesiteinquestion.com/ccm/system/upgrade...

but this errors as well on applying the update
syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$'


As worked out bellow if you add the proxies folder from a backup (or old website) the website runs. The vesion that it displays says both 5.7.5.10 and 5.7.5.9

# concrete5 Version
Core Version - 5.7.5.10
Version Installed - 5.7.5.9
Database Version - 20160615000000

Is this right or is this a hybrid?

Any help would be greatly apreciated

Pitchuk
 
jesterw00t replied on at Permalink Reply
I've run into the exact same issue, 5.7.5.9 -> 5.7.5.10
jesterw00t replied on at Permalink Reply
The obvious problem is that the /application/config/doctrine/proxies folder is empty on my install.

I'm assuming if I could find these files it would allow the process to finish.
jmairs replied on at Permalink Reply
Ditto.

I rolled back to 5.7.5.9 manually (deleted update.php). Was able to restore the /application/config/proxies folder from another site I had. Hopefully I'm not missing anything.... :)
GNUguy replied on at Permalink Reply
jmairs:

I'm really new with C5. Any chance you can give me a step by step re this recovery method?
GNUguy replied on at Permalink Reply
jmairs:

Nevermind. I figured it out. Environment info now shows:

# concrete5 Version
Core Version - 5.7.5.9
Version Installed - 5.7.5.9

Before it showed Core at 10 and Installed at 9.

Everything appears to be working again. (Key word "appears.")

Also note fwiw, I had to replace the "update.php" file from the failed version 10 upgrade with a copy from a version 9 site.

BTW, jmairs, thank you very much for posting that info. It was just enough to get me back in operation. I really appreciated your share.
PineCreativeLabs replied on at Permalink Reply
PineCreativeLabs
I, too, have had this problem. In my case, I tried doing a manual upgrade from 5.7.5.8 to 5.7.5.10, and got this error on the upgrade page:

Call to undefined method Concrete\Core\View\View::getPageObject()
PineCreativeLabs replied on at Permalink Reply
PineCreativeLabs
GNUguy replied on at Permalink Reply
Same here. Extracted zip file. Ran update. C5 indicates it sees the update and attempts to run and fails.
GNUguy replied on at Permalink Reply
Pitchuk:

Not sure if this will help you, but I followed jmairs method (see exchange above on Dec 2, 2016 at 10:42 pm) to do a "manual roll back." But you'll need another version 9 site from which to grab the proxies dir (/application/config/proxies) and then you'll need to replace the "update.php" file (/application/config/update.php) that was placed by the version 10 update with a copy from a version 9 install.

This approach got me back up and running again. No guarantees though 'cuz I'm really a rookie with C5 yet.

Good luck.
Pitchuk replied on at Permalink Reply
Pitchuk
Hey Guys,
Thanks all for your replies. I replaced the whole of my public_html folder with a verson backed up a few months ago. This seemed to have worked suggesting that atleast the database was untouched by the failed installation.
Now that I know I can restore I am going to try a few different update methods.
steve2016 replied on at Permalink Reply
I too have had this update 5.7.5.9 to 5.7.5.10 issue, I am a real novice with concrete and feel I may have to reinstall from scratch. I do not have another site so I am unable to retrieve the proxies folder or version 9 update.php and I had not got round to doing a full site backup yet - I know I should have done it before trying the update!

Is there any chance someone could send me copies via PM? If not I guess I will have to do a fresh install.

Any help would be appreciated.

Thanks
Pitchuk replied on at Permalink Reply
Pitchuk
I will upload my proxy folder in next hour or two for your self
Pitchuk replied on at Permalink Reply
Pitchuk
sent through, let me know if you need anything else
steve2016 replied on at Permalink Reply
Thanks so much for that, I have installed those and I seem to have 5.7.5.9 up and running again. I need to check the whole site but so far it looks OK.

So do you have you managed to 5.7.5.10 or are you still on 5.7.5.9?

Thanks again, I was starting to feel out of my depth:-)
jesterw00t replied on at Permalink Reply
So I decided to test installing a fresh copy of 5.7.10 on my server in a different sub-directory.

I'm getting the exact same syntax error on a fresh install that I did on the upgrade from 5.7.9.

I have not been able to diagnose a cause of this error though.

My error log does show this:
[05-Dec-2016 16:39:58 UTC] PHP Parse error: syntax error, unexpected T_CLASS, expecting T_STRING or T_VARIABLE or '$' in /home/jotegowe/public_html/c5upgrade/concrete/src/Utility/Service/Identifier.php on line 37

I don't know enough coding to know exactly what's going on here.

What I do know is:
-I've had no troubles with 5.7.9
-I've re-downloaded and unzipped 5.7.10 a couple of times to the same result.
-The installation page shows all green as though nothing is missing
-This is the only thread I've found that mentions the error at all and I've now encountered it on both an upgrade and a new install.

Is there some new server requirement that's not listed?
Pitchuk replied on at Permalink Reply
Pitchuk
That's very strange. I have done dashboard download and update and unzip into updates folder and update but both error.
Very strange to here that the clean install is not working either.
I agree, if it breaks on install it bust either be the installation (although others have it working) or is a incompatibility with the server!!

I wonder if they will fix it soon
bmswebsi replied on at Permalink Reply
bmswebsi
Is there any chance you can upload those proxy files as an attachment to one of your replies? I don't know that I have a version 5.7.9 site to steal from and my page went down as well. It seems like a common problem though so I too am hoping that there is a permanent fix.
Gondwana replied on at Permalink Reply
Gondwana
If you're stuck/desperate, you can download earlier versions of c5 from
https://www.concrete5.org/developers/developer-downloads/...
bmswebsi replied on at Permalink Reply
bmswebsi
Thanks! I think I can handle this.

1. So to review, I will either download a fresh 5.7.9 from the Concrete5 Legacy Downloads or pull from an existing site at 5.7.9.

2. I will drill to the /application/config/doctrine/proxies folder

3. From the pulled 5.7.9 folder I will copy all of the contents and replace any contents of my /application/config/doctrine/proxies folder in the current installation.

4. I will take the 5.7.9 file at /application/config/update.php and use it to replace the current /application/config/update.php

That should take me back from 5.7.10 to 5.7.9 - at which point I can attempt to install again if I choose to at this time.

I plan on doing this when I return home for the evening. Please feel free to interrupt me with better instructions. Thanks again!
Pitchuk replied on at Permalink Reply
Pitchuk
Yea that should bring you back, but it is unlikely that you will be able to install 5.7.5.10 after. If you can keep us posted.

It seams that once it fails it always fails
bmswebsi replied on at Permalink Reply
bmswebsi
Steps 1-3 got me back up and running! It was great! It was also short lived. After I got the website up and refreshed, I said to myself, "Last step is clean up that update.php file, and I will be done here."

I foolishly deleted update.php without copying the file's contents first. There was no update.php to move from the fresh installation of 5.7.5.9 and most of my other installs which had not received an update had no update.php file either; I figured what's the harm. It is only a short few lines of code, but after I deleted the file AS SUGGESTED I received:

Class \Concrete\Core\Permission\Key\AddConversationMessageConversationKey does not exist

I then attempted to copy and paste this code from an earlier (5.7.5.2) install:

<?php

return array(
'core' => 'concrete5.7.5.2'
);

In which I changed 'concrete5.7.5.2' to read 'concrete5.7.5.9'. That did not work! It gave me a different error which essentially said "wrong code stupid" in really extensive computer terms.

The updated one which references '5.7.5.10_remote_updater' was working momentarily. The original 'concrete5.7.5.2' gets me back to the dashboard and wants me to update several generations but has this on the home screen:

Property Concrete\Core\StyleCustomizer\Inline\StyleSet::$backgroundSize does not exist

So in the end rather than ask sheepishly ask for a copy of update.php that would work, I decided to take my fresh installation of 5.7.5.9 (with no content) and update that to 5.7.5.10 and use the update.php file which I knew would be generated to replace the incompatible code. Voila! It might not be perfect, but it works right now! Let me know if I should make any further changes.

Thanks for the help guys! I love my C5 Community!
steve2016 replied on at Permalink Reply
When I logged in to my concrete site this morning it is showing 5.7.5.11 available, anyone that had 5.7.5.10 installation problems tried installing it yet? I am bit hesitant after 5.7.5.10.
Pitchuk replied on at Permalink Reply
Pitchuk
Just upgraded to 5.7.5.11 and worked straight away
seems there were are few bugs that were affecting upgrades
http://documentation.concrete5.org/developers/background/version-hi...
steve2016 replied on at Permalink Reply
Dashboard or manual upgrade? Think I will back up and try it later, would like to get the site ready for version 8 eventually.
steve2016 replied on at Permalink Reply
Just installed 5.7.5.11 from dashboard all went smoothly and very quick. As far as I can see everything is working OK.
GarryJClarke replied on at Permalink Reply
Tried and had the same result, I get the warning about overrides but I haven't made any. I have also deactivated my modified theme and still no luck. have to remove update.php and upload fresh proxies to get site back. Upgrades breaking the site are nothing new.
GarryJClarke replied on at Permalink Reply
A footnote

I have now upgraded php version to 5.6 and all is working.
bmswebsi replied on at Permalink Reply
bmswebsi
No such luck for me.

Doctrine\Common\Proxy\AbstractProxyFactory::getProxyDefinition(): Failed opening required '/home/users/web/b237/d5.bmswebsi/AdamRealtorWebsite/application/config/doctrine/proxies/__CG__ConcreteCoreFileStorageLocationStorageLocation.php' (include_path='/hermes/bosnaweb13a/b237/d5.bmswebsi/AdamRealtorWebsite/updates/concrete5.7.5.11_remote_updater/concrete/vendor:.:/usr/local/lib/php-5.3.29-amd64/lib/php')

Dashboard update to 5.7.5.11 sends me into the same issue as before with the "doctrines" not being found. I am taking the above steps now to go back to the 5.7.5.9 setup which Concrete5 unfortunately reads as 5.7.5.10. I have a feeling that this is going to continue getting worse, and I will be stuck with 5.7.5.9 indefinitely.