Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

PLEASE HELP!! Upgrade to SS 3.4.0: WHITE SCREEN OF DEATH!!!


Go to End


5 Posts   2080 Views

Avatar
mhdesign

Community Member, 216 Posts

5 July 2016 at 8:44pm

Edited: 05/07/2016 8:47pm

Upgraded my website to SS 3.4.0 today. It took a couple of ?flush=all, a /dev/build/ and a few kicks but the local environment was up and running fairly easily. So I decided to push site to live server -- and now I have a 'white screen of death'. No Admin, no Messages, Nothing, Nyet and Nada.

I did manage to get a trace (?isDev=1) whcih produced the following message:

Source

5 /**
6  * A class for creating new objects by the injector.
7  *
8  * @package framework
9  * @subpackage injector
10  */
11 class InjectionCreator implements Factory {
12 
13 	public function create($class, array $params = array()) {
14 		$reflector = new ReflectionClass($class);
15 
16 		if (count($params)) {
17 			return $reflector->newInstanceArgs($params);
18 		}
19 
20 		return $reflector->newInstance();

Trace

    ReflectionClass->__construct(Cookie_Backend)
    InjectionCreator.php:14
    InjectionCreator->create(Cookie_Backend,Array)
    Injector.php:555
    Injector->instantiate(Array,Cookie_Backend)
    Injector.php:861
    Injector->get(Cookie_Backend)
    Cookie.php:22
    Cookie::get_inst()
    Cookie.php:51
    Cookie::get(alternativeDatabaseName)
    DB.php:178
    DB::get_alternative_database_name()
    DB.php:229
    DB::connect(<filtered>)
    main.php:138
    {closure}(ErrorControlChain)
    call_user_func(Closure,ErrorControlChain)
    ErrorControlChain.php:215
    ErrorControlChain->step()
    ErrorControlChain.php:206
    ErrorControlChain->execute()
    main.php:165

Something about a 'Reflection Class'. I found the affected php file but am not sure what I need to do to fix it.

Plus: [Error] Uncaught ReflectionException: Class Cookie_Backend does not exist ??

Can anybody advise? Please?

Avatar
camfindlay

Forum Moderator, 267 Posts

7 July 2016 at 2:40pm

Hey there, did you update using composer? Also how did you deploy to your live server?

Avatar
mhdesign

Community Member, 216 Posts

7 July 2016 at 3:19pm

Hi Cam. Updated local site using composer -- only deployment method I know is FTP. So I cleaned out root directory on server, uploaded everything again including a new copy of DB and site fired up this time. Had considered uploading Silverstripe .ZIP and unzipping on server but decided to match my local configuration. Would be great to know a more reliable method but at least we're going.

Avatar
camfindlay

Forum Moderator, 267 Posts

7 July 2016 at 3:32pm

Good to hear it's working. Might have just been a problem with a file during FTP. You could look into using Git post-receive hooks to do you deploys (depends if you're using share hosting or a Virtual Private Server or similar). See http://krisjordan.com/essays/setting-up-push-to-deploy-with-git

Avatar
mhdesign

Community Member, 216 Posts

7 July 2016 at 4:23pm

Thanks for that. I'll check it out -- there has to be a better way than FTP!!