4I've made some custom namespaces and it all works fine.
At the end of the job the updateSearchIndex.php script will give an error
Thanks for the help
Thanks
MediaWiki | 1.34(a40bf67) |
PHP | 7.3.24 (cgi-fcgi) |
MariaDB | 10.3.18-MariaDB |
ICU | 64.2 |
Lua | 5.1.5 |
[wikiadmin@server w]$ php updateSearchIndex.php Could not open input file: updateSearchIndex.php [wikiadmin@server w]$ php maintenance/updateSearchIndex.php Updating searchindex between 20191123051521 and 20191124051521 --- Waiting for lock --- [3bec6ba4db8187183ebfd1dc] [no req] Wikimedia\Rdbms\DBQueryError from line 1587 of /home/wikiadmin/domains/wikiadmin.ir/public_html/rel_33/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 rev_id,rev_page,rev_timestamp,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,comment_rev_comment.comment_text AS `rev_comment_text`,comment_rev_comment.comment_data AS `rev_comment_data`,comment_rev_comment.comment_id AS `rev_comment_cid`,actor_rev_user.actor_user AS `rev_user`,actor_rev_user.actor_name AS `rev_user_text`,temp_rev_user.revactor_actor AS `rev_actor`,page_namespace,page_title,page_id,page_latest,page_is_redirect,page_len,user_name FROM `revision` JOIN `revision_comment_temp` `temp_rev_comment` ON ((temp_rev_comment.revcomment_rev = rev_id)) JOIN `comment` `comment_rev_comment` ON ((comment_rev_comment.comment_id = temp_rev_comment.revcomment_comment_id)) JOIN `revision_actor_temp` `temp_rev_user` ON ((temp_rev_user.revactor_rev = rev_id)) JOIN `actor` `actor_rev_user` ON ((actor_rev_user.actor_id = temp_rev_user.revactor_actor)) JOIN `page` ON ((page_id = rev_page)) LEFT JOIN `user` ON ((actor_rev_user.actor_user != 0) AND (user_id = actor_rev_user.actor_user)) WHERE rev_page = '156' AND page_id = '156' AND (rev_id=page_latest) LIMIT 1 Function: MediaWiki\Revision\RevisionStore::fetchRevisionRowFromConds Error: 1100 Table 'temp_rev_comment' was not locked with LOCK TABLES (localhost) Backtrace: #0 /home/wikiadmin/domains/wikiadmin.ir/public_html/rel_33/includes/libs/rdbms/database/Database.php(1556): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string) #1 /home/wikiadmin/domains/wikiadmin.ir/public_html/rel_33/includes/libs/rdbms/database/Database.php(1274): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean) #2 /home/wikiadmin/domains/wikiadmin.ir/public_html/rel_33/includes/libs/rdbms/database/Database.php(1784): Wikimedia\Rdbms\Database->query(string, string) #3 /home/wikiadmin/domains/wikiadmin.ir/public_html/rel_33/includes/libs/rdbms/database/Database.php(1875): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array) #4 /home/wikiadmin/domains/wikiadmin.ir/public_html/rel_33/includes/Revision/RevisionStore.php(2225): Wikimedia\Rdbms\Database->selectRow(array, array, array, string, array, array) #5 /home/wikiadmin/domains/wikiadmin.ir/public_html/rel_33/includes/Revision/RevisionStore.php(2154): MediaWiki\Revision\RevisionStore->fetchRevisionRowFromConds(Wikimedia\Rdbms\DatabaseMysqli, array, integer) #6 /home/wikiadmin/domains/wikiadmin.ir/public_html/rel_33/includes/Revision/RevisionStore.php(2033): MediaWiki\Revision\RevisionStore->loadRevisionFromConds(Wikimedia\Rdbms\DatabaseMysqli, array) #7 /home/wikiadmin/domains/wikiadmin.ir/public_html/rel_33/includes/Revision.php(261): MediaWiki\Revision\RevisionStore->loadRevisionFromPageId(Wikimedia\Rdbms\DatabaseMysqli, string, integer) #8 /home/wikiadmin/domains/wikiadmin.ir/public_html/rel_33/maintenance/Maintenance.php(1520): Revision::loadFromPageId(Wikimedia\Rdbms\DatabaseMysqli, string) #9 /home/wikiadmin/domains/wikiadmin.ir/public_html/rel_33/maintenance/updateSearchIndex.php(120): Maintenance->updateSearchIndexForPage(Wikimedia\Rdbms\DatabaseMysqli, string) #10 /home/wikiadmin/domains/wikiadmin.ir/public_html/rel_33/maintenance/Maintenance.php(1501): UpdateSearchIndex->searchIndexUpdateCallback(Wikimedia\Rdbms\DatabaseMysqli, stdClass) #11 /home/wikiadmin/domains/wikiadmin.ir/public_html/rel_33/maintenance/updateSearchIndex.php(114): Maintenance->updateSearchIndex(integer, array, Wikimedia\Rdbms\DatabaseMysqli, Wikimedia\Rdbms\ResultWrapper) #12 /home/wikiadmin/domains/wikiadmin.ir/public_html/rel_33/maintenance/updateSearchIndex.php(80): UpdateSearchIndex->doUpdateSearchIndex(string, string, integer) #13 /home/wikiadmin/domains/wikiadmin.ir/public_html/rel_33/maintenance/doMaintenance.php(96): UpdateSearchIndex->execute() #14 /home/wikiadmin/domains/wikiadmin.ir/public_html/rel_33/maintenance/updateSearchIndex.php(125): require_once(string) #15 {main} [wikiadmin@server w]$