Last modified: 2010-05-15 16:03:00 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T17367, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15367 - populateCategory.php script does not work under PostgreSQL (corrupted results)
populateCategory.php script does not work under PostgreSQL (corrupted results)
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
1.13.x
All Linux
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
http://chimaera-european.org/wiki/Cat...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-08-29 13:23 UTC by Jaume Sabater
Modified: 2010-05-15 16:03 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jaume Sabater 2008-08-29 13:23:53 UTC
Using PostgreSQL 8.3.3 and Mediawiki 1.13. Upgraded from Mediawiki 1.12
to 1.13. Had to execute the populateCategory.php script inside
maintenance due to the changes made by upstream in the software, so that
new category and categorylinks tables are populated.

When doing so, it fails and leaves the pages plenty of corrupted
information, displaying tons of links/pages that should not be there.
Please note the segmentation fault at the end. The update.php executed
before also ended in a segmentation fault error, but seemed to work
fine. See this URL to see the result of the execution:

http://chimaera-european.org/wiki/Category:Characters

These are the errors that the script return when executing from the
console:

php maintenance/populateCategory.php

Warning: Invalid argument supplied for foreach() in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 106

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 122

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 124

Warning: Invalid argument supplied for foreach() in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 106

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 122

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 124

Warning: Invalid argument supplied for foreach() in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 106

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 122

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 124

Warning: Invalid argument supplied for foreach() in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 106

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 122

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 124

Warning: Invalid argument supplied for foreach() in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 106

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 122

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 124

Warning: Invalid argument supplied for foreach() in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 106

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 122

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 124

Warning: Invalid argument supplied for foreach() in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 106

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 122

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 124

Warning: Invalid argument supplied for foreach() in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 106

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 122

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 124

Warning: Invalid argument supplied for foreach() in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 106

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 122

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 124

Warning: Invalid argument supplied for foreach() in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 106

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 122

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 124

Warning: Invalid argument supplied for foreach() in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 106

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 122

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 124

Warning: Invalid argument supplied for foreach() in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 106

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 122

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 124

Warning: Invalid argument supplied for foreach() in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 106

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 122

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 124

Warning: Invalid argument supplied for foreach() in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 106

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 122

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 124

Warning: Invalid argument supplied for foreach() in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 106

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 122

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 124

Warning: Invalid argument supplied for foreach() in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 106

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 122

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 124

Warning: Invalid argument supplied for foreach() in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 106

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 122

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 124

Warning: Invalid argument supplied for foreach() in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 106

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 122

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 124

Warning: Invalid argument supplied for foreach() in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 106

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 122

Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/mediawiki/includes/db/DatabasePostgres.php on line 124
Category population complete.
Segmentation fault
Comment 1 Jaume Sabater 2008-08-30 11:48:46 UTC
Hello again.

After some talk with the Debian maintainer of the package, it turned out to be a Debian-specific bug. Using the original DatabasePostgres.php file sorted out the problem.

Still, both update.php and populateCategory.php scripts return a segmentation fault error at the end of their execution, although they seem to do their jobs:

/var/lib/mediawiki# php maintenance/populateCategory.php  --force
Category population complete.
Segmentation fault

Shall I be of any help getting rid of that segmentation fault error on PostgreSQL, please let me know. I will gladly help as much as possible.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links