Thread:Project:Support desk/Errors upgrading 1.16.to 1.20

Previous MediaWiki version 1.16.5 Updating to 1.20.3 PHP 5.4.12 MySQL 5.1.67 I am updating via the command line as per the MediaWiki Manual.

Problem #1

... Populating category table, printing progress markers.

Warning: Illegal string offset 'LIMIT' in w/includes/db/Database.php on line 953

A database error has occurred

Query: SELECT COUNT(*),COUNT( (CASE WHEN Array THEN 1 ELSE NULL END) ),COUNT( (CASE WHEN Array THEN 1 ELSE NULL END) )

FROM `mw_categorylinks`,`mw_page` WHERE cl_to = 'Bey-Partial' AND (page_id = cl_from)

Function: Category::refreshCounts Error: 1054 Unknown column 'Array' in 'field list' (db371450277.db.1and1.com) ...

'Bey-Partial' in the above query is a category name. The Category::conditional method seems to be returning the string 'Array' somehow, even though the code looks correct (checking is_array).

Problem #2

After the above error is handled, I get this: ... Fatal error: Cannot redeclare wfProfileIn (previously declared in w/includes/ProfilerStub.php:18) in w/includes/profiler/Profiler.php on line 38

...

I have followed the Profiler instructions updating StartProfiler.php, and have tried this both with and without StartProfiler.php in the root wiki directory.

Problem #3

Thinking the command line didn't work, I tried surfing to /mw-config/ per the update instructions, and get this: ... Fatal error: Call to undefined method BitmapHandler::canRotate in /homepages/14/d291724220/htdocs/pdxrp/w/includes/Setup.php on line 235 ... This is after I set $wgEnableAutoRotation = false -- still not sure why I needed to do that but it allowed the command line script past an earlier error.