Running into api.php returning an 500 error when attempting to run the following query api.php?action=query&meta=siteinfo
The exact error is : Fatal error: Call to a member function getPrefixedText() on a non-object in /var/www/html/SupportWiki/includes/api/ApiQuerySiteinfo.php on line 110
I have installed an "Test" database along side my existing and if I change to the "fresh" database it works without fail. I THINK the error is related to $mainPage = Title :: newFromText( wfMsgForContent( 'mainpage' ) );
what should I be looking for inside my database as switching to the "new" instance resolves the API issue.
Thanks in advance for any assistance.
Zach
On 11-06-20 09:46 AM, Zach H. wrote:
Running into api.php returning an 500 error when attempting to run the following query api.php?action=query&meta=siteinfo
The exact error is : Fatal error: Call to a member function getPrefixedText() on a non-object in /var/www/html/SupportWiki/includes/api/ApiQuerySiteinfo.php on line 110
I have installed an "Test" database along side my existing and if I change to the "fresh" database it works without fail. I THINK the error is related to $mainPage = Title :: newFromText( wfMsgForContent( 'mainpage' ) );
what should I be looking for inside my database as switching to the "new" instance resolves the API issue.
Thanks in advance for any assistance.
Zach
Sound's like a reasonably expected error from that incorrectly written line for any site that has a blank MediaWiki:Mainpage message.
You can replace the `Title::newFromText(wfMsgForContent('mainpage'));` yourself with the proper `Title::newMainPage();`. This seams to have been fixed since 1.17 so you don't have to worry about any conflicts when you upgrade.
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name]
Good Afternoon MediaWiki Fans:
I'm finding many users are creating multiple accounts because they can not remember either their password or have forgotten their user name. Is there a way to enable a user to get their user name from the system if they know their email address ? I don't immediately see that possibility on the "reset password" login business.
--Hiram
Hiram Clawson wrote:
Good Afternoon MediaWiki Fans:
I'm finding many users are creating multiple accounts because they can not remember either their password or have forgotten their user name. Is there a way to enable a user to get their user name from the system if they know their email address ? I don't immediately see that possibility on the "reset password" login business.
--Hiram
MediaWiki doesn't provide such option. Since emails are considered private information, information such as "someone with this email is registered here" is not disclosed.* Given that the account list is public, they could browse the user list (Special:ListUsers) looking for their name, or the account creation log (Special:Log, account creation log). The latter allows them to search based on the approximate date on which they created the account, while the first one is better if they know an approximation of the account name (eg. how it begins). All of these requires the user to be able to identify the username they chose, when shown in a list.
Finally, they can also look in their own inbox for the welcome email the wiki would have sent them, in which the username is also listed.
* Your email address may be shown to the recipient after you send an email to another user inside the wiki.
On Tue, Jun 28, 2011 at 7:08 PM, Platonides Platonides@gmail.com wrote:
MediaWiki doesn't provide such option. Since emails are considered private information, information such as "someone with this email is registered here" is not disclosed.*
Such an option wouldn't have to disclose that: it could just provide an ambiguous message and send an email to the address if it's in the system.
Benjamin is correct, this reminder system wouldn't have to indicate anything about the legitimacy of the email address. Just say, watch for your new password in your email.
--Hiram
Benjamin Lees wrote:
On Tue, Jun 28, 2011 at 7:08 PM, Platonides Platonides@gmail.com wrote:
MediaWiki doesn't provide such option. Since emails are considered private information, information such as "someone with this email is registered here" is not disclosed.*
Such an option wouldn't have to disclose that: it could just provide an ambiguous message and send an email to the address if it's in the system.
Thanks for all the assistance, this indeed did resolve my issue (although my main_page is not blank :-/)
On Mon, Jun 20, 2011 at 11:46 AM, Zach H. luckenbach@gmail.com wrote:
Running into api.php returning an 500 error when attempting to run the following query api.php?action=query&meta=siteinfo
The exact error is : Fatal error: Call to a member function getPrefixedText() on a non-object in /var/www/html/SupportWiki/includes/api/ApiQuerySiteinfo.php on line 110
I have installed an "Test" database along side my existing and if I change to the "fresh" database it works without fail. I THINK the error is related to $mainPage = Title :: newFromText( wfMsgForContent( 'mainpage' ) );
what should I be looking for inside my database as switching to the "new" instance resolves the API issue.
Thanks in advance for any assistance.
Zach
mediawiki-l@lists.wikimedia.org