Hi,
I have a fresh install of Mediawiki 1.15.3, but I get a blank page when trying to access the test wiki. I've upgraded from Mediawiki 1.11.0.
Here is the error in the log file: PHP Fatal error: Call to private method User::loadFromSession() from context '' in /appl/web/devwiki/public_www/mediawiki-1.15.3/extensions/Auth_remoteuser.php on line 57
Current setup: -------------- MediaWiki http://www.mediawiki.org/: 1.15.3 PHP http://www.php.net/: 5.1.6 (apache2handler) MySQL http://www.mysql.com/: 5.0.77
Thanks
Hello,
Did you update the database also?
Option1 commandline php update.php
Option2 let the webinstaller run the update on the database.
Best regards,
Hello,
Yes, I did perform option1:
php update.php --aconf ../AdminSettings.php
Thanks -------------------- Huib Laurens wrote:
Hello,
Did you update the database also?
Option1 commandline php update.php
Option2 let the webinstaller run the update on the database.
Best regards,
Tolliver wrote:
Hi,
I have a fresh install of Mediawiki 1.15.3, but I get a blank page when trying to access the test wiki. I've upgraded from Mediawiki 1.11.0.
Here is the error in the log file: PHP Fatal error: Call to private method User::loadFromSession() from context '' in /appl/web/devwiki/public_www/mediawiki-1.15.3/extensions/Auth_remoteuser.php on line 57
Current setup:
MediaWiki http://www.mediawiki.org/: 1.15.3 PHP http://www.php.net/: 5.1.6 (apache2handler) MySQL http://www.mysql.com/: 5.0.77
Thanks
Update your AutomaticREMOTE_USER extension.
Hello Platonides,
I ran update.php again, and I got and error that I hadn't previously noticed: PHP Notice: Undefined index: PHP_AUTH_USER in /appl/web/devwiki/public_www/mediawiki-1.15.3/extensions/Auth_remoteuser.php on line 92
This is line 92 of Auth_remoteuser.php: - line 92 = if ( strlen($_SERVER['PHP_AUTH_USER']) ) {
You suggested that I Update my AutomaticREMOTE_USER extension, but I didn't have that extension for 1.11.0.
Thank you.
Platonides wrote:
Tolliver wrote:
Hi,
I have a fresh install of Mediawiki 1.15.3, but I get a blank page when trying to access the test wiki. I've upgraded from Mediawiki 1.11.0.
Here is the error in the log file: PHP Fatal error: Call to private method User::loadFromSession() from context '' in /appl/web/devwiki/public_www/mediawiki-1.15.3/extensions/Auth_remoteuser.php on line 57
Current setup:
MediaWiki http://www.mediawiki.org/: 1.15.3 PHP http://www.php.net/: 5.1.6 (apache2handler) MySQL http://www.mysql.com/: 5.0.77
Thanks
Update your AutomaticREMOTE_USER extension.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Tolliver wrote:
Hello Platonides,
I ran update.php again, and I got and error that I hadn't previously noticed: PHP Notice: Undefined index: PHP_AUTH_USER in /appl/web/devwiki/public_www/mediawiki-1.15.3/extensions/Auth_remoteuser.php on line 92
This is line 92 of Auth_remoteuser.php:
- line 92 = if ( strlen($_SERVER['PHP_AUTH_USER']) ) {
You suggested that I Update my AutomaticREMOTE_USER extension, but I didn't have that extension for 1.11.0.
Thank you.
Auth_remoteuser.php doesn't seem to be the last version.
Hello Platonides,
Performed the following:
- Created Auth_remoteuser.php from the code at (http://www.mediawiki.org/wiki/Extension:AutomaticREMOTE_USER#Code) - Ensured the permissions where correct on the new extension - Replaced Auth_remoteuser.php - Run php update.php --aconf ../AdminSettings.php
Received the error again: PHP Notice: Undefined index: REMOTE_USER in /appl/web/devwiki/public_www/mediawiki-1.15.3/extensions/Auth_remoteuser.php on line 195
Line 195 of Auth_remoteuser.php if ( strlen($_SERVER['REMOTE_USER']) )
Thanks again.
Platonides wrote:
Tolliver wrote:
Hello Platonides,
I ran update.php again, and I got and error that I hadn't previously noticed: PHP Notice: Undefined index: PHP_AUTH_USER in /appl/web/devwiki/public_www/mediawiki-1.15.3/extensions/Auth_remoteuser.php on line 92
This is line 92 of Auth_remoteuser.php:
- line 92 = if ( strlen($_SERVER['PHP_AUTH_USER']) ) {
You suggested that I Update my AutomaticREMOTE_USER extension, but I didn't have that extension for 1.11.0.
Thank you.
Auth_remoteuser.php doesn't seem to be the last version.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Tolliver wrote:
Hello Platonides,
Performed the following:
- Created Auth_remoteuser.php from the code at
(http://www.mediawiki.org/wiki/Extension:AutomaticREMOTE_USER#Code)
- Ensured the permissions where correct on the new extension
- Replaced Auth_remoteuser.php
- Run php update.php --aconf ../AdminSettings.php
Received the error again: PHP Notice: Undefined index: REMOTE_USER in /appl/web/devwiki/public_www/mediawiki-1.15.3/extensions/Auth_remoteuser.php on line 195
Line 195 of Auth_remoteuser.php if ( strlen($_SERVER['REMOTE_USER']) )
Thanks again.
Getting that notice on command line would be expected since it is directly accessing $_SERVER['REMOTE_USER']. It was the loadFromSession() call what showed that it was outdated. Do you see your wiki now?
Hello,
This is what I get on the wiki page:
MediaWiki internal error.
Exception caught inside exception handler
Log file: PHP Notice: Undefined variable: token in /appl/web/devwiki/public_www/mediawiki-1.15.3/extensions/Auth_remoteuser.php on line 138
Auth_remoteuser.php: line 138 = 'wpLoginToken' => $token,
Thanks Platonides wrote:
Tolliver wrote:
Hello Platonides,
Performed the following:
- Created Auth_remoteuser.php from the code at
(http://www.mediawiki.org/wiki/Extension:AutomaticREMOTE_USER#Code)
- Ensured the permissions where correct on the new extension
- Replaced Auth_remoteuser.php
- Run php update.php --aconf ../AdminSettings.php
Received the error again: PHP Notice: Undefined index: REMOTE_USER in /appl/web/devwiki/public_www/mediawiki-1.15.3/extensions/Auth_remoteuser.php on line 195
Line 195 of Auth_remoteuser.php if ( strlen($_SERVER['REMOTE_USER']) )
Thanks again.
Getting that notice on command line would be expected since it is directly accessing $_SERVER['REMOTE_USER']. It was the loadFromSession() call what showed that it was outdated. Do you see your wiki now?
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Tolliver wrote:
Hello,
This is what I get on the wiki page:
MediaWiki internal error.
Exception caught inside exception handler
Log file: PHP Notice: Undefined variable: token in /appl/web/devwiki/public_www/mediawiki-1.15.3/extensions/Auth_remoteuser.php on line 138
Auth_remoteuser.php: line 138 = 'wpLoginToken' => $token,
Place $token = ''; before the do http://www.mediawiki.org/w/index.php?title=Extension%3AAutomaticREMOTE_USER&...
Hi Platonides,
I tried it, and I got the same error message on the page, but no error in my httpd log.
All of your assistance is much appreciated!
Platonides wrote:
Tolliver wrote:
Hello,
This is what I get on the wiki page:
MediaWiki internal error.
Exception caught inside exception handler
Log file: PHP Notice: Undefined variable: token in /appl/web/devwiki/public_www/mediawiki-1.15.3/extensions/Auth_remoteuser.php on line 138
Auth_remoteuser.php: line 138 = 'wpLoginToken' => $token,
Place $token = ''; before the do http://www.mediawiki.org/w/index.php?title=Extension%3AAutomaticREMOTE_USER&...
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Hello Platonides,
Just touching base with you to determine If you had any further ideas as to what the issue could be?
Thank you.
Tolliver wrote:
Hi Platonides,
I tried it, and I got the same error message on the page, but no error in my httpd log.
All of your assistance is much appreciated!
Platonides wrote:
Tolliver wrote:
Hello,
This is what I get on the wiki page:
MediaWiki internal error.
Exception caught inside exception handler
Log file: PHP Notice: Undefined variable: token in /appl/web/devwiki/public_www/mediawiki-1.15.3/extensions/Auth_remoteuser.php on line 138
Auth_remoteuser.php: line 138 = 'wpLoginToken' => $token,
Place $token = ''; before the do http://www.mediawiki.org/w/index.php?title=Extension%3AAutomaticREMOTE_USER&...
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
There are a bunch of these web server authentication plugins that all mostly suck. Web server authentication would be fairly easy to add to core, with a minimal amount of change. The auto-auth code does nearly everything required of web server authentication, except the things that extensions *really* shouldn't be doing, like adding users to the database, and checking sessions.
Would anyone object if I add this support to core?
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Tolliver Sent: Wednesday, May 05, 2010 7:59 AM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] New 1.15.3 install
Hello Platonides,
Performed the following:
- Created Auth_remoteuser.php from the code at
(http://www.mediawiki.org/wiki/Extension:AutomaticREMOTE_USER#Code)
- Ensured the permissions where correct on the new extension
- Replaced Auth_remoteuser.php
- Run php update.php --aconf ../AdminSettings.php
Received the error again: PHP Notice: Undefined index: REMOTE_USER in /appl/web/devwiki/public_www/mediawiki-1.15.3/extensions/Auth_ remoteuser.php on line 195
Line 195 of Auth_remoteuser.php if ( strlen($_SERVER['REMOTE_USER']) )
Thanks again.
Platonides wrote:
Tolliver wrote:
Hello Platonides,
I ran update.php again, and I got and error that I hadn't
previously
noticed: PHP Notice: Undefined index: PHP_AUTH_USER in
/appl/web/devwiki/public_www/mediawiki-1.15.3/extensions/Auth_ remoteuser.php
on line 92
This is line 92 of Auth_remoteuser.php:
- line 92 = if ( strlen($_SERVER['PHP_AUTH_USER']) ) {
You suggested that I Update my AutomaticREMOTE_USER
extension, but I
didn't have that extension for 1.11.0.
Thank you.
Auth_remoteuser.php doesn't seem to be the last version.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org