Hello!
Finally had the time to test what you asked, setting $wgOverrideHostname seems to solve the "Undefined index: SERVER_NAME" error, now I got no errors, but it seems there are no jobs to be executed:
[root@mediawiki maintenance]# php showJobs.php
0
[root@mediawiki maintenance]# php runJobs.php
- You can see below the outcome for updateSearchIndex.php it seems ok, but i get the "*** Couldn't write to the searchUpdate.mediawiki.pos!" in the end.
[root@mediawiki maintenance]# php updateSearchIndex.php -s 20081020224040
Updating searchindex between 20081020224040 and 20170115073747
--- Waiting for lock ---
Bem_Vindo_a_Wiki_Vianet!...
Fornecedores:Lista_de_Fornecedores_e_Parceiros...
MediaWiki:Mainpage...
Planos...
Relatório_Identificação_de_Falha...
MediaWiki:Sidebar...
Widget:PDF...
MediaWiki:Common.css...
COMANDOS_SSH-ELASTIX...
Fornecedores:Internexa...
Fornecedores:Americanet...
Predefinição:Fornecedores...
Fornecedores:Ascent...
Ferramentas:Keepass...
Fornecedores:China_Telecom...
Fornecedores:SAMM...
MediaWiki:Vector.css...
MediaWiki:Tweeki-navbar-left...
MediaWiki:Tweeki-navbar-right...
MediaWiki:Tweeki-subnav...
MediaWiki:Tweeki-sidebar-left...
MediaWiki:SidebarTree...
MediaWiki:Common.js...
Fornecedores:Varphonex...
Fornecedores:Khomp...
Fornecedores:PTT...
Fornecedores:Fox...
Fornecedores:GTGI_(GT_Group)...
Tutorial:Instalando_Elastix...
Tutorial:Configuração_-_Regra_de_discagem...
Tutorial:Processo_para_instalação_do_ELASTIX_2.5...
Fornecedores:Tip_Brasil...
Tutorial:Processo_após_Instalação_do_Elastix_2.5...
Tutorial:Criar_Redirecionamento_de_Porta_-_IP...
Tutorial:RESET_KHOMP_-_UMG100...
Tutorial:ADICIONAR_CLIENTE_-_VIAPHONE...
Fornecedores:Vonex...
Fornecedores:Vivo...
--- Unlocking --
Done
*** Couldn't write to the searchUpdate.mediawiki.pos!
- Autocomplete still only working for pages in the Main namespace. I have made a new "test" page on Main namespace, and it instantly appeared in the serch box. I also have noticed that this test page appeared on special:orphanedpages with the other Main namespace pages... nothing for other namespaces...
- My LocalSettings.php still has the following entry:
$wgNamespacesToBeSearchedDefault = [
NS_MAIN => true,
NS_Fornecedores => true,
NS_Tutorial => true,
NS_Ferramentas => true,
];
- I also tried too use the rebuildtextindex.php:
[root@mediawiki maintenance]# php rebuildtextindex.php
Dropping index...
Clearing searchindex table...Done
Rebuilding index fields for 52 pages...
Rebuild the index...
Done.
- I have the feeling the entry $wgNamespacesToBeSearchedDefault is doing nothing! Does the line where it is placed on LocalSettings.php matter?