Last modified: 2010-05-15 16:03:00 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
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.