Hello all,
After dumping and restoring to a fresh wiki install a fairly large database (over 2GB) the main page fails to load, all I get is a white page. I'm assuming the backup/restore failed, but I'm not sure which one. Are there any special considerations to take when working with large databases that could be causing my backup and/or import to fail?
Thanks!
beachboy4231 wrote:
Hello all,
After dumping and restoring to a fresh wiki install a fairly large database (over 2GB) the main page fails to load, all I get is a white page. I'm assuming the backup/restore failed, but I'm not sure which one. Are there any special considerations to take when working with large databases that could be causing my backup and/or import to fail?
Usually a blank page means a PHP fatal error (especially if it's got a 500 status code and X-Powered-By header). It would be helpful if you could determine the text of the error message, by finding your error log file, or by setting display_errors, or otherwise configuring your error display settings as described here:
http://php.net/manual/en/errorfunc.configuration.php
-- Tim Starling
Hello All,
I have (tried) to install ConfirmEdit in my Wiki (www.titje.be).
I have unzipped and installed the files in /extensions/ConfirmEdit
I have modified the LocalSettings.php with the following: require_once( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" );
I have changed the following files in ConfirmEdit.php (I want a check on each edit): $wgCaptchaTriggers['edit'] = true; // Would check on every edit $wgCaptchaTriggers['create'] = true; // Check on page creation.
When I go to the wiki... there is just nothing occurring on the edits...
Does anyone have a clue?
Thanks in advance,
Thomas
On Sat, Nov 28, 2009 at 12:13 AM, Thomas Quinet tquinet@gmail.com wrote:
Hello All,
I have (tried) to install ConfirmEdit in my Wiki (www.titje.be).
I have unzipped and installed the files in /extensions/ConfirmEdit
I have modified the LocalSettings.php with the following: require_once( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" );
I have changed the following files in ConfirmEdit.php (I want a check on each edit): $wgCaptchaTriggers['edit'] = true; // Would check on every edit $wgCaptchaTriggers['create'] = true; // Check on page creation.
When I go to the wiki... there is just nothing occurring on the edits...
Does anyone have a clue?
Are you logged in as sysop, perhaps?
Sysops are exempt from captcha triggres. Try editing as an anon.
Thanks for the prompt answer... it was indeed the issue
Cheers!
Thomas
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Lukasz Garczewski Sent: samedi 28 novembre 2009 0:22 To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] ConfirmEdit issues
On Sat, Nov 28, 2009 at 12:13 AM, Thomas Quinet tquinet@gmail.com wrote:
Hello All,
I have (tried) to install ConfirmEdit in my Wiki (www.titje.be).
I have unzipped and installed the files in /extensions/ConfirmEdit
I have modified the LocalSettings.php with the following: require_once( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" );
I have changed the following files in ConfirmEdit.php (I want a check on each edit): $wgCaptchaTriggers['edit'] = true; // Would check on every edit $wgCaptchaTriggers['create'] = true; // Check on page creation.
When I go to the wiki... there is just nothing occurring on the edits...
Does anyone have a clue?
Are you logged in as sysop, perhaps?
Sysops are exempt from captcha triggres. Try editing as an anon.
Thomas Quinet wrote:
Hello All,
I have (tried) to install ConfirmEdit in my Wiki (www.titje.be).
I have unzipped and installed the files in /extensions/ConfirmEdit
I have modified the LocalSettings.php with the following: require_once( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" );
I have changed the following files in ConfirmEdit.php (I want a check on each edit): $wgCaptchaTriggers['edit'] = true; // Would check on every edit $wgCaptchaTriggers['create'] = true; // Check on page creation.
You should add those lines to LocalSettings.php below the require, not by changing ConfirmEdit.php. This way, all your changes are stored at LocalSettings.php
Hey,
Let say I have a few articles, some are in category A and B and C, some in all the categories, some in 2 of them, etc.
Can I get a list of all the articles in category A and C, in one list?
Its easy just the get the articles in one category, but listing all articles that are in certain categories is difficult.
Can anyone please assist me?
Thanks.
Regards, Sarel
South Africa
I don't know how to do it for now.
For the long run, you might want to define a category D for articles that belong in both A & C. Then make it a subcategory of categories A & C.
You could also figure out what tables & fields there are in the associated DB (e.g., MySQL) & query the DB direct ;-) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Haim (Howard) Roman Computer Center, Jerusalem College of Technology Phone: 052-8-592-599 (6022 from within Machon Lev)
On Thu, Dec 3, 2009 at 09:24, Sarel Wessels (Agri Wiki) < swessels@agriwiki.co.za> wrote:
Hey,
Let say I have a few articles, some are in category A and B and C, some in all the categories, some in 2 of them, etc.
Can I get a list of all the articles in category A and C, in one list?
Its easy just the get the articles in one category, but listing all articles that are in certain categories is difficult.
Can anyone please assist me?
Thanks.
Regards, Sarel
South Africa
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On Thu, Dec 3, 2009 at 7:24 AM, Sarel Wessels (Agri Wiki) swessels@agriwiki.co.za wrote:
Hey,
Let say I have a few articles, some are in category A and B and C, some in all the categories, some in 2 of them, etc.
Can I get a list of all the articles in category A and C, in one list?
Its easy just the get the articles in one category, but listing all articles that are in certain categories is difficult.
Can anyone please assist me?
If an external tool will be OK, you could try to adapt one of my scripts: http://toolserver.org/~magnus/catscan_rewrite.php
Code is here: https://fisheye.toolserver.org/browse/Magnus/catscan_rewrite.php?r=HEAD
Cheers, Magnus
Sarel Wessels (Agri Wiki) wrote:
Hey,
Let say I have a few articles, some are in category A and B and C, some in all the categories, some in 2 of them, etc.
Can I get a list of all the articles in category A and C, in one list?
Its easy just the get the articles in one category, but listing all articles that are in certain categories is difficult.
Can anyone please assist me?
Thanks.
Regards, Sarel
South Africa
This can be done with http://www.mediawiki.org/wiki/Extension:Multi-Category_Search.
I have not actually tried this but I've read that this can be done by adding the extension: http://www.mediawiki.org/wiki/Extension:CategoryTree and then you can transclude one or more category pages into another page using the syntax: {{#categorytree:Foo}} Where Foo is a category page.
So, for example you could combine categories A and B by specifying:
{{#categorytree:A}} {{#categorytree:B}}
-Jim
-----Original Message----- From: Sean McAfee [mailto:smcafee@collaborativefusion.com] Sent: Thursday, December 03, 2009 9:04 AM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Categories
Sarel Wessels (Agri Wiki) wrote:
Hey,
Let say I have a few articles, some are in category A and B and C, some in all the categories, some in 2 of them, etc.
Can I get a list of all the articles in category A and C, in one list?
Its easy just the get the articles in one category, but listing all articles that are in certain categories is difficult.
Can anyone please assist me?
Thanks.
Regards, Sarel
South Africa
This can be done with http://www.mediawiki.org/wiki/Extension:Multi-Category_Search.
Sullivan, James (NIH/CIT) [C] wrote:
I have not actually tried this but I've read that this can be done by adding the extension: http://www.mediawiki.org/wiki/Extension:CategoryTree and then you can transclude one or more category pages into another page using the syntax: {{#categorytree:Foo}} Where Foo is a category page.
So, for example you could combine categories A and B by specifying:
{{#categorytree:A}} {{#categorytree:B}}
-Jim
Categorytree displays subcategories of the given category. By using the <categorytree> syntax and specifying arguments, you can get it to list articles as well, but nothing can be done to combine them.
The example you've given would just give two separate trees:
[−] Example 1 Example 1 Page 1 Example 1 Page 2 Example 1 and 2 Page 1 [−] Example 2 Example 1 and 2 Page 1 Example 2 Page 1 Example 2 Page 2
I do have display_errors On, but nothing is outputted. The browser doesn't get a 500, but rather the page source is blank. It appears that certain pages just don't generate any source. Some do, others don't, without about a 30% failure rate.
On Fri, Nov 27, 2009 at 5:17 PM, Tim Starling tstarling@wikimedia.orgwrote:
beachboy4231 wrote:
Hello all,
After dumping and restoring to a fresh wiki install a fairly large
database
(over 2GB) the main page fails to load, all I get is a white page. I'm assuming the backup/restore failed, but I'm not sure which one. Are there any special considerations to take when working with large databases that could be causing my backup and/or import to fail?
Usually a blank page means a PHP fatal error (especially if it's got a 500 status code and X-Powered-By header). It would be helpful if you could determine the text of the error message, by finding your error log file, or by setting display_errors, or otherwise configuring your error display settings as described here:
http://php.net/manual/en/errorfunc.configuration.php
-- Tim Starling
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
beachboy4231 wrote:
I do have display_errors On, but nothing is outputted. The browser doesn't get a 500, but rather the page source is blank.
I'm talking about the situation where the page source is blank, and it also has a 500 status code. When a well-behaved application needs to send a 500 response, it also sends an explanatory error message as the response body. PHP is not well-behaved in this way, it sends a 500 status code and a blank body, which looks in your browser to be the same as any other blank page. You can tell the difference with the LiveHTTPHeaders extension for Firefox.
The output of display_errors can be lost under various circumstances, such as when there is an out-of-memory error when a custom output buffer is enabled. Try disabling MediaWiki's custom output buffer by putting this in LocalSettings.php:
define( 'MW_NO_OUTPUT_BUFFER', 1 );
-- Tim Starling
Tim, that worked perfectly. PHPs memory limit was set too low, fixed by adding ini_set("memory_limit","32M");
Thanks
On Sat, Nov 28, 2009 at 11:26 PM, Tim Starling tstarling@wikimedia.orgwrote:
beachboy4231 wrote:
I do have display_errors On, but nothing is outputted. The browser
doesn't
get a 500, but rather the page source is blank.
I'm talking about the situation where the page source is blank, and it also has a 500 status code. When a well-behaved application needs to send a 500 response, it also sends an explanatory error message as the response body. PHP is not well-behaved in this way, it sends a 500 status code and a blank body, which looks in your browser to be the same as any other blank page. You can tell the difference with the LiveHTTPHeaders extension for Firefox.
The output of display_errors can be lost under various circumstances, such as when there is an out-of-memory error when a custom output buffer is enabled. Try disabling MediaWiki's custom output buffer by putting this in LocalSettings.php:
define( 'MW_NO_OUTPUT_BUFFER', 1 );
-- Tim Starling
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org