Koozali.org: home of the SME Server

MediaWiki - Can't create accounts

Offline pauljclarke

  • ***
  • 61
  • +0/-0
MediaWiki - Can't create accounts
« on: July 11, 2010, 01:07:19 PM »
Hi,

Note: Running SME 7.5.1 with all updates applied.

I have had MediaWiki (1.6.10-6) for some time now and was able to generate acounts etc. But have not looked at it for some time (maybe a year ago), then found I could not create acounts any more. The Login page no longer had the 'Create Acount' link.

I have checked LocalSetting.php and have following set:
Code: [Select]
$wgGroupPermissions['*']['createaccount']   = true;
$wgGroupPermissions['*']['read']            = true;
$wgGroupPermissions['*']['edit']            = false;
$wgGroupPermissions['*']['createpage']      = false;
$wgGroupPermissions['*']['createtalk']      = false;
$wgGroupPermissions['*']['createaccount']   = false;

As I had nothing special in the Wiki I have done a uninstall, including removal of DB and install files, downloaded latest image (1.6.10-8) and re installed, modified LoaclSettings.php file so 'creataccount' = true. But still not working?

I tried to create an account under Admin, via Special:Userlogin, which has the 'create account' link, but get a blank page (under the "log in / create account" heading).

Anyone got any ideas?

Thanks
Paul

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: MediaWiki - Can't create accounts
« Reply #1 on: July 12, 2010, 01:02:37 PM »

I tried to create an account under Admin, via Special:Userlogin, which has the 'create account' link, but get a blank page (under the "log in / create account" heading).

Anyone got any ideas?
Look in the /var/log/httpd/error_log and /var/log/httpd/access_log around the time you tried. There should be some clues in there. If you have troubles interpreting them post the snippets here, perhaps we can help.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline pauljclarke

  • ***
  • 61
  • +0/-0
Re: MediaWiki - Can't create accounts
« Reply #2 on: July 12, 2010, 07:33:40 PM »
Thanks, see below...

The error log reported nothing.

This is from the access log:
Code: [Select]
shipdhamgreen.co.uk 192.168.0.12 - - [12/Jul/2010:18:27:54 +0100] "GET /mediawiki/index.php?title=Special:Userlogin&type=signup HTTP/1.1" 200 1971 "http://192.168.0.2/wiki/Special:Userlogin" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6"
shipdhamgreen.co.uk 192.168.0.12 - - [12/Jul/2010:18:27:55 +0100] "GET /mediawiki/skins/monobook/main.css?7 HTTP/1.1" 304 - "http://192.168.0.2/mediawiki/index.php?title=Special:Userlogin&type=signup" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6"

Paul

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: MediaWiki - Can't create accounts
« Reply #3 on: July 12, 2010, 07:45:59 PM »
Thanks, see below...

The error log reported nothing.

This is from the access log:
Code: [Select]
shipdhamgreen.co.uk 192.168.0.12 - - [12/Jul/2010:18:27:54 +0100] "GET /mediawiki/index.php?title=Special:Userlogin&type=signup HTTP/1.1" 200 1971 "http://192.168.0.2/wiki/Special:Userlogin" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6"
shipdhamgreen.co.uk 192.168.0.12 - - [12/Jul/2010:18:27:55 +0100] "GET /mediawiki/skins/monobook/main.css?7 HTTP/1.1" 304 - "http://192.168.0.2/mediawiki/index.php?title=Special:Userlogin&type=signup" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6"
This unfortunately doesn't either... perhaps you should consider (for debugging purposes only) to enable the display of error messages using: http://wiki.contribs.org/PHP#Display_Error_Messages
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline pauljclarke

  • ***
  • 61
  • +0/-0
Re: MediaWiki - Can't create accounts
« Reply #4 on: July 12, 2010, 08:01:19 PM »
Umm..

Unfortunately I got no errors displayed.!?

Is there a PHP log file anywhere?

Ive done a little playing about, viewing the page source,
With a normal page request
Code: [Select]
http://192.168.0.2/mediawiki/index.php?title=Special:UserloginI get a chunk of html that is valid:
Code: [Select]
<div id="userloginForm">
<form name="userlogin" method="post" action="/mediawiki/index.php?title=Special:Userlogin&amp;action=submitlogin&amp;type=login">

<h2>Log in</h2>
<p id="userloginlink">Don't have a login? <a href="/mediawiki/index.php?title=Special:Userlogin&amp;type=signup">Create an account</a>.</p>
<div id="userloginprompt"><p>You must have cookies enabled to log in to Wiki.
</p></div>
<table>
<tr>
<td align='right'><label for='wpName1'>Username:</label></td>

<td align='left'>
<input type='text' class='loginText' name="wpName" id="wpName1"
value="Admin" size='20' />
</td>
</tr>
<tr>
<td align='right'><label for='wpPassword1'>Password:</label></td>
<td align='left'>
<input type='password' class='loginPassword' name="wpPassword" id="wpPassword1"
value="" size='20' />

</td>
</tr>
<tr>
<td></td>
<td align='left'>
<input type='checkbox' name="wpRemember"
value="1" id="wpRemember"
/> <label for="wpRemember">Remember me</label>
</td>
</tr>

<tr>
<td></td>
<td align='left' style="white-space:nowrap">
<input type='submit' name="wpLoginattempt" id="wpLoginattempt" value="Log in" />&nbsp; </td>
</tr>
</table>
</form>
</div>

However with the "type=signup" on the end
Code: [Select]
http://192.168.0.2/mediawiki/index.php?title=Special:Userlogin&type=signupThen you will see there is a chunk of html missing.
Code: [Select]
<div id="userlogin">

</table>
</form>
</div>

So as your suggesting, the HTML is not being generated, possible by a PHP error or setting.

Paul

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: MediaWiki - Can't create accounts
« Reply #5 on: July 12, 2010, 08:15:22 PM »
Unfortunately I got no errors displayed.!?
That is strange. You are sure you followed the instruction to the letter, including the restart of the web server daemon?

Is there a PHP log file anywhere?
No, PHP error messages should be logged to the error_log file of the web server daemon or to the screen as well (when enabled per given instructions).

Perhaps you can somehow set Mediawiki into debug mode to find what might go wrong. I am familiar with PHP and troubleshooting it, but I am unfamiliar with the internals if MediaWiki.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline pauljclarke

  • ***
  • 61
  • +0/-0
Re: MediaWiki - Can't create accounts
« Reply #6 on: July 12, 2010, 08:20:24 PM »
I copied and pasted each line and as I have 7.5.1run the SV service to restart. even used a different browser in cash of caching.

A 'cat' of php.ini in /etc/ shows the debugging turned on

I'll try a full reboot...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: MediaWiki - Can't create accounts
« Reply #7 on: July 12, 2010, 08:22:03 PM »
I copied and pasted each line and as I have 7.5.1run the SV service to restart. even used a different browser in cash of caching.

A 'cat' of php.ini in /etc/ shows the debugging turned on

I'll try a full reboot...
No need to, tray and see if httpd was recently restarted using:
Code: [Select]
sv s httpd-e-smithIt should report you the number of seconds it has been up.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline pauljclarke

  • ***
  • 61
  • +0/-0
Re: MediaWiki - Can't create accounts
« Reply #8 on: July 12, 2010, 08:28:25 PM »
did a 'sv t' waited few seconds, ran 'sv s' and got a time of 5s so guess that works.

But still no errors.

I've found the .php file that generates the user login page, looking though that for a clue, maybe work backwards or insert @comments@ to see if they appear on the page.

:?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: MediaWiki - Can't create accounts
« Reply #9 on: July 12, 2010, 08:30:19 PM »
Here is how to enable debug mode, perhaps worth a try: http://kb.siteground.com/article/How_to_set_my_MediaWiki_in_debug_mode.html
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline pauljclarke

  • ***
  • 61
  • +0/-0
Re: MediaWiki - Can't create accounts
« Reply #10 on: July 12, 2010, 08:52:48 PM »
 :-(
Not going well...

...reboot, no errors on page from php...
...added mediawiki error logging... no file, so guess no errors.!?

Going to try something radical - install SME in virtual box and install media wiki and see if I get the same? cant think of anything else to try...

:-(

Offline pauljclarke

  • ***
  • 61
  • +0/-0
Re: MediaWiki - Can't create accounts
« Reply #11 on: July 13, 2010, 10:09:44 PM »
Still not working!!!  :-x

Anyone got any ideas? please?

Offline pauljclarke

  • ***
  • 61
  • +0/-0
Re: MediaWiki - Can't create accounts
« Reply #12 on: July 14, 2010, 04:03:48 PM »
ok - having installed on a machine at same level (7.5.1) and using same mediawiki image on a new machine that has never used mediawiki I have found the same problem. So now assumeing this is a bug - off to file a bug report.