[OC6Beta2} white screen in windows 2008 R2 server when logging in
Expected Result Ability to log in
Actual Result White screen
Steps
- Install ownCloud 6 Beta 2 on Windows 2008 r2 server
- Configure with MS SQL as database
- After inputting all information, the screen goes white and cannot log in
{OC6 Beta 2 Windows 2008 R2 server} Tested with both PHP 5.4.14 PHP 5.4.21
Both fail with the following error in the PHP error log:
[07-Nov-2013 15:17:46 UTC] PHP Fatal error: Call to protected method OC\DB\Connection::replaceTablePrefix() from context 'OC\DB\AdapterSQLSrv' in C:\inetpub\wwwroot\owncloud6beta2\lib\private\db\adaptersqlsrv.php on line 15
@ringmaster @DeepDiver1975 @butonic Any idea?
this has been fixed recently afaik
@ser72 can you please retest with a more recent version - THX
let's close it for now and reopen if still exist.
Attempted several times to try later build. Tried Nov 8 build and the latest build. Cannot even get to the login screen in either instance:
All other instances of ownCloud on the same windows server, including my OC6Beta 2 I can get to the login screen.
Are you using an admin account to create a new database or an existing account to an existing database?
I'll say this about my experience: I can't use an existing database and account since OC always tries to create a new database with the same name and this (obviously) fails. Are there docs for the MSSQL install in 6.0? Maybe I've got incorrect expectations about what is expected for the installation.
@ringmaster This is before I even create a database at this time. The error above occurs immediately when I try to browse to the initial setup login screen.?.?
To confirm then, you are providing a SQL Server admin username and password and the name of the database that you're intending for ownCloud to create for you?
Maybe this seems like a snarky/obtuse question, but did the MSSQL installer work before?
I am not even getting that far. I can't even bring up the initial setup login to be able to enter whether I want to use MS SQL or mysql.
You're saying you don't see the page to enter initial OC and database credentials? This one?:

I guess all I can say is that this "works for me" in master -- I see the initial setup page, as screenshot above. Though the installer itself working for MSSQL is another matter entirely.
That's the screen. I have tried Nov 8 build, Today's build. I will try OC Beta 4 and see if I can get it.
@ringmaster : Must have had corrupt builds. Beta 4 gets me to that screen.
Now let me log in and see if I still get white screen or not.
More to come
If I install MSSQL on master with admin credentials and allow OC to create a new database for me, then the installation works. If I install MSSQL on master with the credentials of an existing user and database, the install fails with "database creation" related errors.
@ringmaster : Yes I installed MSSQL with admin credentials and a NEW DB and I did not get white screen,
The behavior you describe about using an existing DB occurs on Linux installs as well -- not just Windows. If you want to use the same DB, you need to copy the config.php from the existing owncloud directory to the new owncloud directory -- you can modify the default data location to match the new instance, and then ownCloud will not bring you to the initial screen -- it will be just the login screen as if the instance has always existed. No new DB will be created.
:+1:
Maybe I need to file a new issue, then. Since I'm under the impression that regardless of the database engine (SQLite excepted), I should be able to manually create a database and user, then supply those to ownCloud at installation, and then instead of ownCloud using those credentials to create a new database, it would use them to log into the database that I created manually for that puprose. I'm a long-time proponent of keeping my server admin passwords to myself, so call me a little paranoid.
That said, can we close this ticket?
@ringmaster Yes -- I'm closing it now.