Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: pauljclarke 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:
$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
-
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.
-
Thanks, see below...
The error log reported nothing.
This is from the access log:
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
-
Thanks, see below...
The error log reported nothing.
This is from the access log:
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
-
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 http://192.168.0.2/mediawiki/index.php?title=Special:Userlogin
I get a chunk of html that is valid:
<div id="userloginForm">
<form name="userlogin" method="post" action="/mediawiki/index.php?title=Special:Userlogin&action=submitlogin&type=login">
<h2>Log in</h2>
<p id="userloginlink">Don't have a login? <a href="/mediawiki/index.php?title=Special:Userlogin&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" /> </td>
</tr>
</table>
</form>
</div>
However with the "type=signup" on the end http://192.168.0.2/mediawiki/index.php?title=Special:Userlogin&type=signup
Then you will see there is a chunk of html missing.
<div id="userlogin">
</table>
</form>
</div>
So as your suggesting, the HTML is not being generated, possible by a PHP error or setting.
Paul
-
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.
-
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...
-
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:
sv s httpd-e-smith
It should report you the number of seconds it has been up.
-
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.
P :?
-
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
-
:-(
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...
P :-(
-
Still not working!!! :-x
Anyone got any ideas? please?
-
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.