Project:Support desk/Sections/PHP

__NEWSECTIONLINK__ = PHP Error Support =

Server Problems...
I've been some problems with my server (I think). There are several times when I will visit my wiki and the resulting page will be completely blank. This is not a 404 error, the URl is clearly visible in the address bar, but the page is completely blank....even the source code.

It doesn't happen for very long (the longest "outage" so far was 10 minutes), usually it is only down for 1-2 minutes, and then it comes right back. But it is very annoying, and if someone is visiting my page for the first time and encounters the blank age, they may not come back, thinking it a dead site.

My hosting company (Siteground) insists that there is no problem and that it must be my internet connection. However, I have a friend in another state whom I was chatting with via IM, and I asked them to look at the site at the exact moment, and they got the same thing, a blank page, so it cannot be just me.

My questions are:


 * Has this happened to anyone else?
 * Is Siteground a good server, or should I look into someone else?
 * If I need to transfer to another server...how easy/difficult is it to move an entire wiki database? Is it just a matter of exporting and re-importing the MySQL database? I am sure there are more steps than this.

Sorry for the long post, but....this is getting frustrating. It happens 3-4 times an hour as of late.

—74.128.207.61 16:12, 12 February 2008 (UTC)


 * If its an intermittent problem like that and you're not experiencing the same thing with other sites, then I can't see how the provider can say its not their problem. It should be no problem moving the site elsewhere, just take a complete copy of your wiki directory structure so you get your localsettings and uploaded files, and export your database as SQL (not XML or other custom format or you may not have the same tools on your target server). When you set up your new database, try and keep all the login and database name the same to avoid need to do any configuration changes. --Nad 19:42, 12 February 2008 (UTC)

This is what they told me:

The issue you have experienced was explained in my previous reply. That is why I have used the same response. I apologize if it sounded unprofessional.

I have now double checked the error logs on the server and the error_log under the public_html folder on your account. There is not errors which may cause this issue.

That means that the issue could be caused only from a script which is timing out. This caused the blank screen on location from which there is a lack of Internet to our Data-Center.

Unfortunately there is nothing we can do to prevent such network glitches because they are not on our network.

Please let us know if we may assist you further on this matter.

Looking forward to your reply.

I don't understand how it can be happening to me and to other viewers of the site...from another state even...and it is our faults and not the servers! Maybe someone here can explain it?

-74.128.207.61 22:35, 12 February 2008 (UTC)

PHP Errors

 * MediaWiki: 1.11.0
 * PHP: 5.2.4 (isapi)
 * MySQL: 5.0.45-community-nt
 * URL: http://wiki.internal.omitec.com

We are experiencing intermittent errors as below:-

The error may not occur for days - but when it does occur, it generally happens repeatedly for all users for a period of time before stopping again. I have checked the permissions on the files and they seem fine. I've tried editing the file to replace the relative path with an absolute path and this works - but just seems to move the same problem to a later point in the code.

Any help would be greatly appreciated. —Darkenergy 09:03, 26 February 2008 (UTC)
 * I'm not sure to have the solution, but the file index.php has been modified in this place since 1.11 : in the revision 30751 diff nikerabbit has changed the code to have full paths.
 * You can try to modify this like he has made, but keep a clean copy of the file before modifying.
 * Or you can wait some days (I think) to upgrade MediaWiki with the version 1.12.
 * ~ Seb35 08:40, 27 February 2008 (UTC)

I replaced my index.php with this updated version. It did fix the problem in index.php but, as before, the problem then appeared in WebStart.php on line 69.

[10-Mar-2008 11:16:21] PHP Warning: require_once(./StartProfiler.php) [function.require-once]: failed to open stream: No such file or directory in D:\www\wiki\includes\WebStart.php on line 69

How to run/use on PHP 6?
Greetings,

I have asked this question elsewhere on this site, but never got an answer...

Is there any way to run/use MediaWiki while using PHP 6 ? Also with MySQL 6 ?

Thanks,

CielProfond 23:47, 27 February 2008 (UTC)


 * If I recall correctly there is some sort of conflict with PHP 6, although that may just be due to the build the person used. Otherwise I don't see why PHP 6 won't work. MySQL 6 on the other hand probably won't work, or if it does not well, considering it's alpha status. --Skizzerz talk - contribs [[Image:Tournesol.png|20px]] MediaWiki Support Team  21:25, 28 February 2008 (UTC)
 * Thanks for the replies. I had found a way to *install* MediaWiki on PHP6, by disabling a check for a PHP function that no longer exists (can't seem to remember or find which one), but there are problems afterwards. I'd like to hear of anybody who has tried and succeeding in using MediaWiki with PHP6, and of course I'll (slowly) work on the issue myself! CielProfond 06:18, 5 March 2008 (UTC)