Topic on Project:Support desk

Errors on load.php in Apache logfile

4
94.209.10.101 (talkcontribs)

Dear sir/madam,

Since I'm using MediaWiki 1.23.1, I have a lot of times that the CSS file for the application is not loading when I open a page. When I refresh the page, it loads and my page looks fine. This happends multiple times each day. When I was looking in the Apache Error log for the MediaWiki site, I found the following line on the times of the error I receive:

Fatal error:  Call to a member function checkUrlExtension() on a non-object in /var/www/load.php on line 37, referer: https://wiki.dstark.nl/wiki/Main_Page

When looking through the load.php file, I noticed the $wgRequest object isn't defined before calling the checkUrlExtension method:

34 wfProfileIn( 'load.php' );
35 
36 // URL safety checks
37 if ( !$wgRequest->checkUrlExtension() ) {
38         return;
39 }

I cannot find anyone else on the Internet with the same issue and cannot find anything on the MediaWiki site, so I'm almost 100% sure it has to do with my settings. Can anyone give me a pointer to the reason of this strange behaviour?

Wiki-url: https://wiki.dstark.nl/ (ignore the certificate warning, the certificate is not signed by any third party CA's)

Application versions:

  • MediaWiki: 1.23.1
  • PHP: 5.4.4
  • MySQL: 5.5.37

Installed module:

  • CategoryTree – (b879dbd) 19:58, 24 June 2014
  • SyntaxHighlight - 1.0.8.11-wmf1
  • MobileFrontend – (f4fabf4) 19:32, 26 June 2014

Kind regards, Daryl Stark

This post was posted by 94.209.10.101, but signed as 193.172.8.207.

Florianschmidtwelzow (talkcontribs)

Hello!

$wgRequest will be defined and initialized when the class WebRequest is created the first time, normally in the process of WebStart (require __DIR__ . '/includes/WebStart.php';), so it's right, that load.php uses it.

I can reproduce this error for some loads on your page, but if i open the requested URL directly i can't. Are you sure, that the fatal error is related to your problem?! Are there any other erros before/after?

DaSt1986 (talkcontribs)

It's absolutly related to the issue since I always check the logs when it happends and the timestamp is always the same, so it have to be. I also notice my plugins sometimes don't get loaded, in which cases the error also popups.

I have the same with the direct requests, but I think that mainly has to do with the caching.

DaSt1986 (talkcontribs)

I installed MediaWiki in a new directory, created a new database and a new virtual host on the same server and I still have the same errors and behaviour. Should be something with the serverconfig or a mistake in the MediaWiki code.

Reply to "Errors on load.php in Apache logfile"