Topic on Project:Support desk

Did you forget to run your application's database schema updater after up

13
151.177.171.222 (talkcontribs)

Hello


I am trying to update my mediawiki to 1.33.0 but i get stuck at the error bello, ca someone help me get past this please ?


[51100210b20d6e90dd271609] [no req]   Wikimedia\Rdbms\DBQueryError from line 1587 of /home/student/public_html/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Query: SELECT  ar_id,ar_comment  FROM `archive`    WHERE ar_comment_id = '0' AND (1=1)  ORDER BY ar_id LIMIT 100

Function: MigrateComments::migrate

Error: 1054 Unknown column 'ar_comment_id' in 'where clause' (localhost)

Backtrace:

#0 /home/student/public_html/includes/libs/rdbms/database/Database.php(1556): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)

#1 /home/student/public_html/includes/libs/rdbms/database/Database.php(1274): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)

#2 /home/student/public_html/includes/libs/rdbms/database/Database.php(1784): Wikimedia\Rdbms\Database->query(string, string)

#3 /home/student/public_html/maintenance/migrateComments.php(159): Wikimedia\Rdbms\Database->select(string, array, array, string, array)

#4 /home/student/public_html/maintenance/migrateComments.php(53): MigrateComments->migrate(string, array, string)

#5 /home/student/public_html/maintenance/Maintenance.php(1719): MigrateComments->doDBUpdates()

#6 /home/student/public_html/includes/installer/DatabaseUpdater.php(1279): LoggedUpdateMaintenance->execute()

#7 /home/student/public_html/includes/installer/DatabaseUpdater.php(489): DatabaseUpdater->migrateComments()

#8 /home/student/public_html/includes/installer/DatabaseUpdater.php(453): DatabaseUpdater->runUpdates(array, boolean)

#9 /home/student/public_html/maintenance/update.php(203): DatabaseUpdater->doUpdates(array)

#10 /home/student/public_html/maintenance/doMaintenance.php(96): UpdateMediaWiki->execute()

#11 /home/student/public_html/maintenance/update.php(266): require_once(string)

#12 {main}
Wargo (talkcontribs)
151.177.171.222 (talkcontribs)

yes, i did "phph update.php" from the SSH command line.

Wargo (talkcontribs)
Ciencia Al Poder (talkcontribs)
47.31.119.123 (talkcontribs)

go to the ext. dir. and see the folder sql, go to phpmyadmin and manually create the table from sql. terminal .

Lea Schmidt93 (talkcontribs)

Hi, stupid question: I have the same error and every site keeps telling me tu "run" update.php. But how exactly do I do that?


Thanks in advance

Ciencia Al Poder (talkcontribs)
Lea Schmidt93 (talkcontribs)

I added wfLoadExtension( 'ApprovedRevs' ); to my Localsettings after I copied the file of ApprovedRevs in my extensions folder. What I get now is still the error from above. Following the instructions of Manual:Upgrading#Web updater , after step 2 I cant select any language because the error is still shown.

Lea Schmidt93 (talkcontribs)

My Error:

Warning: require_once(/home/www/mediawiki/Maintenance.php): failed to open stream: No such file or directory in /home/www/mediawiki/LocalSettings.php on line 141


Fatal error: require_once(): Failed opening required '/home/www/mediawiki/Maintenance.php' (include_path='/home/www/mediawiki/vendor/pear/console_getopt:/home/www/mediawiki/vendor/pear/mail:/home/www/mediawiki/vendor/pear/mail_mime:/home/www/mediawiki/vendor/pear/net_smtp:/home/www/mediawiki/vendor/pear/net_socket:/home/www/mediawiki/vendor/pear/pear-core-minimal/src:/home/www/mediawiki/vendor/pear/pear_exception:.:/usr/share/php') in /home/www/mediawiki/LocalSettings.php on line 141

Ciencia Al Poder (talkcontribs)

Why do you seem to have a require_once('Maintenance.php') in LocalSettings.php on line 141?

2601:285:303:DE60:E898:C696:E2EB:BBCB (talkcontribs)

Is there any update to this?

Malyacko (talkcontribs)

Everything written above in this thread are updates

Reply to "Did you forget to run your application's database schema updater after up"