Page MenuHomePhabricator

Warnings when running `mwscript eval.php` on deployment-prep
Closed, ResolvedPublic

Description

krenair@deployment-bastion:~$ mwscript eval.php --wiki=commonswiki
PHP Notice:  Undefined variable: wmgMFWikiDataEndpoint in /mnt/srv/mediawiki-staging/wmf-config/mobile-labs.php on line 26

Notice: Undefined variable: wmgMFWikiDataEndpoint in /mnt/srv/mediawiki-staging/wmf-config/mobile-labs.php on line 26
PHP Notice:  Undefined variable: wmgWikiBasePropertyConfig in /mnt/srv/mediawiki-staging/wmf-config/mobile-labs.php on line 27

Notice: Undefined variable: wmgWikiBasePropertyConfig in /mnt/srv/mediawiki-staging/wmf-config/mobile-labs.php on line 27
PHP Notice:  Undefined variable: wmgMFInfoboxConfig in /mnt/srv/mediawiki-staging/wmf-config/mobile-labs.php on line 28

Notice: Undefined variable: wmgMFInfoboxConfig in /mnt/srv/mediawiki-staging/wmf-config/mobile-labs.php on line 28
>

Also seen in P244

Event Timeline

Krenair raised the priority of this task from to Needs Triage.
Krenair updated the task description. (Show Details)
Krenair subscribed.
Krenair renamed this task from Warnings when running mwscript on deployment-prep to Warnings when running `mwscript eval.php` on deployment-prep.Jan 30 2015, 9:27 AM
Krenair set Security to None.

That is caused by https://gerrit.wikimedia.org/r/#/c/186319/ which adds the variables in mobile-labs.php :

+$wgMFWikiDataEndpoint = $wmgMFWikiDataEndpoint;
+$wgWikiBasePropertyConfig = $wmgWikiBasePropertyConfig;
+$wgMFInfoboxConfig = $wmgMFInfoboxConfig;

Apparently loaded before InitialiseSettings-labs.php had a chance to be loaded/applied.

Apparently loaded before InitialiseSettings-labs.php had a chance to be loaded/applied.

No, per @bd808's Gerrit comments from a week ago, it's because those settings don't have a default value set.

Change 189693 had a related patch set uploaded (by Florianschmidtwelzow):
Mobile: Fix JS-Exception for non-english beta projects

https://gerrit.wikimedia.org/r/189693

Patch-For-Review

Change 189693 merged by jenkins-bot:
Mobile: Fix JS-Exception for non-english beta projects

https://gerrit.wikimedia.org/r/189693

Patch approved and deployed.