Jump to content

Topic on Project:Support desk

[RESOLVED] blank white wiki home page

11
91.244.229.33 (talkcontribs)

Hi All,

I moved my wikis location and created a new subdomain for my wiki. lets call it wiki.blahblah.co.uk

I edited the localsettings.php to reflect the new location ($wgScriptPath and $wgServer) the wiki has remained on the same server just in a new folder location. The SQL details have not changed.

I found this;-

http://www.mediawiki.org/wiki/Manual:Errors_and_symptoms#You_see_a_Blank_Page

I have followed the instructions but still a blank page. is there another place I need to check.

It is located on server 2008r2 with IIS 7.5

Ciencia Al Poder (talkcontribs)

What does the error logs say?

91.244.229.33 (talkcontribs)

which error logs? PHP Server IIS?

Ciencia Al Poder (talkcontribs)

That would be a start. But also, as explained on that link:

You can also set a value for error_log in PHP.ini and read the PHP error log to find out what's going on. In some cases, PHP errors might also be recorded in the web server error log.

91.244.229.33 (talkcontribs)

This is the error in the PHP log

[31-Oct-2014 09:01:56 Europe/Dublin] PHP Parse error: syntax error, unexpected 'to' (T_STRING) in G:\site\Wiki\LocalSettings.php on line 130

91.244.229.33 (talkcontribs)

I'm looking at the localsettings.php inside the wiki folder. this is line 130

$wgCacheDirectory to a writable directory on the web server

this bit above should have had a # before it to be

    1. set $wgCacheDirectory to a writable directory on the web server

it still fails to function so I checked php error log again. and got [31-Oct-2014 09:14:04 Europe/Dublin] PHP Fatal error: Function name must be a string in G:\site\Wiki\LocalSettings.php on line 20

91.244.229.33 (talkcontribs)

SO I went back to local settings and I looked at line 20 which is the error reporting function so I turned it off by commenting it out with a hash.

so now when I load the wiki main page I get

[e18eda2f] 2014-10-31 09:34:46: Fatal exception of type MWException

and when I check the php error log it now gives me this error

0777 [Called from wfMkdirParents in G:\site\Wiki\includes\GlobalFunctions.php at line 2543] in G:\site\Wiki\includes\debug\Debug.php on line 296

91.244.229.33 (talkcontribs)

Looking at the above Debug.PHP This is well beyond me now if anyone is able to shed any light. is there a way to reinstall the wiki and then manually import the articles?

Ciencia Al Poder (talkcontribs)

Apparently MediaWiki is trying to create a folder on your server, but it is unable to do it, probably because it doesn't have permissions to do so.

It may be because of the location of $wgCacheDirectory or $wgDebugLogFile. Check if both are set to an existing folder and that the IIS server process (or maybe PHP) is able to write on them (you can try givin full permissions to the special security group EVERYONE).

You can comment out $wgDebugLogFile if there's no other error, since it's only for debugging purposes.

88.130.114.167 (talkcontribs)

I ask myself, which function there is starting on line 20. I am not sure that you can just comment it and things will continue to work...

91.244.229.33 (talkcontribs)

I checked the $swCacheDirectory and it is set to

$wgCacheDirectory = " $IP/cache"

SO I have set the directory to everyone full access and this doesnt fix the problem I don't think its a permissions error as I tried to send it back to its original location and its still the same.

I noticed the code is over two lines which got me thinking why????? I then noticed a single hash above also like so

$wgCacheDirectory = " $IP/cache"

So I edited the code to this #$wgCacheDirectory = "$IP/cache" to comment it out and it works again.

Thanks a lot for guiding me in the right direction. I am beyond in your debt.

Reply to "[RESOLVED] blank white wiki home page"