I'm getting a new error today that was not happening with the identical config yesterday.
With MW 1.31.1 and 1.31.2 I'm getting errors after installing dependencies and extensions with Composer. I have the following composer.local.json:
``` { "require": { "mediawiki/semantic-media-wiki": "3.0.0", "mediawiki/semantic-result-formats": "3.0.0", "mediawiki/semantic-compound-queries": "1.2.0", "mediawiki/sub-page-list": "1.5.0", "mediawiki/maps": "6.0.3", "pear/net_smtp": "1.8.0" <-- remove this when using MW 1.31.2 }, "extra": { "merge-plugin": { "include": [ "extensions/SyntaxHighlight_GeSHi/composer.json", "extensions/Elastica/composer.json" ] } } } ```
SyntaxHighlight_GeSHi and Elastica are both tracking their REL1_31 branches, which haven't changed in about a year. Despite that, yesterday running `composer update` caused no issues. Today I started getting the following error:
``` [Wed Jun 26 16:16:18.364715 2019] [php7:warn] [pid 12304] [client my.ip.add.ress:46156] PHP Warning: require(/opt/htdocs/mediawiki/vendor/composer/../jetbrains/phpstorm-stubs/PhpStormStubsMap.php): failed to open stream: No such file or directory in /opt/htdocs/mediawiki/vendor/composer/autoload_real.php on line 70, referer: https://example.com/ [Wed Jun 26 16:16:18.364896 2019] [php7:error] [pid 12304] [client my.ip.add.ress:46156] PHP Fatal error: require(): Failed opening required '/opt/htdocs/mediawiki/vendor/composer/../jetbrains/phpstorm-stubs/PhpStormStubsMap.php' (include_path='/opt/htdocs/mediawiki/vendor/pear/console_getopt:/opt/htdocs/mediawiki/vendor/pear/mail:/opt/htdocs/mediawiki/vendor/pear/mail_mime:/opt/htdocs/mediawiki/vendor/pear/mail_mime-decode:/opt/htdocs/mediawiki/vendor/pear/net_smtp:/opt/htdocs/mediawiki/vendor/pear/net_socket:/opt/htdocs/mediawiki/vendor/pear/pear-core-minimal/src:/opt/htdocs/mediawiki/vendor/pear/pear_exception:.:/usr/share/pear:/usr/share/php') in /opt/htdocs/mediawiki/vendor/composer/autoload_real.php on line 70, referer: https://example.com/ ```
Using MW 1.32.1 and 1.31.2 I did the following:
``` rm -f ./composer.lock && composer install && sudo systemctl reload httpd # no mention of phpstorm-stubs in output # page loads fail
rm -f ./composer.lock && composer install --no-dev && sudo systemctl reload httpd # output includes: Removing jetbrains/phpstorm-stubs (dev-master) # page loads succeed (no phpstorm-stubs)
composer install && sudo systemctl reload httpd # output includes: Installing jetbrains/phpstorm-stubs (dev-master 9d01ce3): Cloning 9d01ce3476 # page loads succeed (phpstorm-stubs @ 9d01ce3)
composer update && sudo systemctl reload httpd # output includes: Updating jetbrains/phpstorm-stubs dev-master (9d01ce3 => 1b99060): Checking out 1b9906084d # page loads fail (phpstorm-stubs @ 1b99060) ```
I need the httpd reload to invalidate opcache in my config. Based upon the above it seems that the phpstorm-stubs that is getting required from non-dev dependencies doesn't have issues, but the one from dev dependencies does. Or perhaps something to do with Composer or with the Composer merge plugin is causing one version of phpstorm-stubs to be checked out but the autoloader to be setup for the other version. Any thoughts?
Thanks, James
(planted question)
What happens if you remove composer.local.json?
On Wed, Jun 26, 2019, 21:54 James Montalvo jamesmontalvo3@gmail.com wrote:
I'm getting a new error today that was not happening with the identical config yesterday.
With MW 1.31.1 and 1.31.2 I'm getting errors after installing dependencies and extensions with Composer. I have the following composer.local.json:
{ "require": { "mediawiki/semantic-media-wiki": "3.0.0", "mediawiki/semantic-result-formats": "3.0.0", "mediawiki/semantic-compound-queries": "1.2.0", "mediawiki/sub-page-list": "1.5.0", "mediawiki/maps": "6.0.3", "pear/net_smtp": "1.8.0" <-- remove this when using MW 1.31.2 }, "extra": { "merge-plugin": { "include": [ "extensions/SyntaxHighlight_GeSHi/composer.json", "extensions/Elastica/composer.json" ] } } }SyntaxHighlight_GeSHi and Elastica are both tracking their REL1_31 branches, which haven't changed in about a year. Despite that, yesterday running `composer update` caused no issues. Today I started getting the following error:
[Wed Jun 26 16:16:18.364715 2019] [php7:warn] [pid 12304] [client my.ip.add.ress:46156] PHP Warning: require(/opt/htdocs/mediawiki/vendor/composer/../jetbrains/phpstorm-stubs/PhpStormStubsMap.php): failed to open stream: No such file or directory in /opt/htdocs/mediawiki/vendor/composer/autoload_real.php on line 70, referer: https://example.com/ [Wed Jun 26 16:16:18.364896 2019] [php7:error] [pid 12304] [client my.ip.add.ress:46156] PHP Fatal error: require(): Failed opening required '/opt/htdocs/mediawiki/vendor/composer/../jetbrains/phpstorm-stubs/PhpStormStubsMap.php' (include_path='/opt/htdocs/mediawiki/vendor/pear/console_getopt:/opt/htdocs/mediawiki/vendor/pear/mail:/opt/htdocs/mediawiki/vendor/pear/mail_mime:/opt/htdocs/mediawiki/vendor/pear/mail_mime-decode:/opt/htdocs/mediawiki/vendor/pear/net_smtp:/opt/htdocs/mediawiki/vendor/pear/net_socket:/opt/htdocs/mediawiki/vendor/pear/pear-core-minimal/src:/opt/htdocs/mediawiki/vendor/pear/pear_exception:.:/usr/share/pear:/usr/share/php') in /opt/htdocs/mediawiki/vendor/composer/autoload_real.php on line 70, referer: https://example.com/Using MW 1.32.1 and 1.31.2 I did the following:
rm -f ./composer.lock && composer install && sudo systemctl reload httpd # no mention of phpstorm-stubs in output # page loads fail rm -f ./composer.lock && composer install --no-dev && sudo systemctl reload httpd # output includes: Removing jetbrains/phpstorm-stubs (dev-master) # page loads succeed (no phpstorm-stubs) composer install && sudo systemctl reload httpd # output includes: Installing jetbrains/phpstorm-stubs (dev-master 9d01ce3): Cloning 9d01ce3476 # page loads succeed (phpstorm-stubs @ 9d01ce3) composer update && sudo systemctl reload httpd # output includes: Updating jetbrains/phpstorm-stubs dev-master (9d01ce3 => 1b99060): Checking out 1b9906084d # page loads fail (phpstorm-stubs @ 1b99060)I need the httpd reload to invalidate opcache in my config. Based upon the above it seems that the phpstorm-stubs that is getting required from non-dev dependencies doesn't have issues, but the one from dev dependencies does. Or perhaps something to do with Composer or with the Composer merge plugin is causing one version of phpstorm-stubs to be checked out but the autoloader to be setup for the other version. Any thoughts?
Thanks, James _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Yeah after I sent the first message I wished I'd tried removing composer.local.json. Doing so does not resolve the problem. I tested it on new installs as well (on a different machine):
``` git clone https://gerrit.wikimedia.org/r/mediawiki/core ./mw cd mw git checkout 1.33.0-rc.0 composer update ```
Navigating to http://localhost/mw I get the first page of the MW web installer. So things appear to be working normally on 1.33.
``` git checkout 1.32.2 composer update # ... errors at http://localhost/mw
git checkout 1.31.2 composer update # ... errors at http://localhost/mw ```
In both 1.31 and 1.32 above I get errors. 1.31 had:
``` Warning: require(C:\xampp\htdocs\mw\vendor\composer/../jetbrains/ phpstorm-stubs/PhpStormStubsMap.php): failed to open stream: No such file or directory in C:\xampp\htdocs\mw\vendor\composer\autoload_real.php on line 70
Fatal error: require(): Failed opening required 'C:\xampp\htdocs\mw\vendor\ composer/../jetbrains/phpstorm-stubs/PhpStormStubsMap.php' (include_path='C:\xampp\htdocs\mw\vendor/pear/console_ getopt;C:\xampp\htdocs\mw\vendor/pear/mail;C:\xampp\ htdocs\mw\vendor/pear/mail_mime;C:\xampp\htdocs\mw\ vendor/pear/net_smtp;C:\xampp\htdocs\mw\vendor/pear/net_ socket;C:\xampp\htdocs\mw\vendor/pear/pear-core-minimal/ src;C:\xampp\htdocs\mw\vendor/pear/pear_exception;C:\xampp\php\PEAR') in C:\xampp\htdocs\mw\vendor\composer\autoload_real.php on line 70 ```
So this appears to be a MW core or MW core dependencies issue.
On Thu, Jun 27, 2019 at 07:07 Daren Welsh darenwelsh@gmail.com wrote:
(planted question)
What happens if you remove composer.local.json?
On Wed, Jun 26, 2019, 21:54 James Montalvo jamesmontalvo3@gmail.com wrote:
I'm getting a new error today that was not happening with the identical config yesterday.
With MW 1.31.1 and 1.31.2 I'm getting errors after installing
dependencies
and extensions with Composer. I have the following composer.local.json:
{ "require": { "mediawiki/semantic-media-wiki": "3.0.0", "mediawiki/semantic-result-formats": "3.0.0", "mediawiki/semantic-compound-queries": "1.2.0", "mediawiki/sub-page-list": "1.5.0", "mediawiki/maps": "6.0.3", "pear/net_smtp": "1.8.0" <-- remove this when using MW 1.31.2 }, "extra": { "merge-plugin": { "include": [ "extensions/SyntaxHighlight_GeSHi/composer.json", "extensions/Elastica/composer.json" ] } } }SyntaxHighlight_GeSHi and Elastica are both tracking their REL1_31 branches, which haven't changed in about a year. Despite that, yesterday running `composer update` caused no issues. Today I started getting the following error:
[Wed Jun 26 16:16:18.364715 2019] [php7:warn] [pid 12304] [client my.ip.add.ress:46156] PHP Warning:require(/opt/htdocs/mediawiki/vendor/composer/../jetbrains/phpstorm-stubs/PhpStormStubsMap.php):
failed to open stream: No such file or directory in /opt/htdocs/mediawiki/vendor/composer/autoload_real.php on line 70, referer: https://example.com/ [Wed Jun 26 16:16:18.364896 2019] [php7:error] [pid 12304] [client my.ip.add.ress:46156] PHP Fatal error: require(): Failed opening required
'/opt/htdocs/mediawiki/vendor/composer/../jetbrains/phpstorm-stubs/PhpStormStubsMap.php'
(include_path='/opt/htdocs/mediawiki/vendor/pear/console_getopt:/opt/htdocs/mediawiki/vendor/pear/mail:/opt/htdocs/mediawiki/vendor/pear/mail_mime:/opt/htdocs/mediawiki/vendor/pear/mail_mime-decode:/opt/htdocs/mediawiki/vendor/pear/net_smtp:/opt/htdocs/mediawiki/vendor/pear/net_socket:/opt/htdocs/mediawiki/vendor/pear/pear-core-minimal/src:/opt/htdocs/mediawiki/vendor/pear/pear_exception:.:/usr/share/pear:/usr/share/php')
in /opt/htdocs/mediawiki/vendor/composer/autoload_real.php on line 70, referer: https://example.com/
Using MW 1.32.1 and 1.31.2 I did the following:rm -f ./composer.lock && composer install && sudo systemctl reload httpd # no mention of phpstorm-stubs in output # page loads fail
rm -f ./composer.lock && composer install --no-dev && sudo systemctl
reload
httpd # output includes: Removing jetbrains/phpstorm-stubs (dev-master) # page loads succeed (no phpstorm-stubs)
composer install && sudo systemctl reload httpd # output includes: Installing jetbrains/phpstorm-stubs (dev-master 9d01ce3): Cloning 9d01ce3476 # page loads succeed (phpstorm-stubs @ 9d01ce3)
composer update && sudo systemctl reload httpd # output includes: Updating jetbrains/phpstorm-stubs dev-master (9d01ce3
=>
1b99060): Checking out 1b9906084d # page loads fail (phpstorm-stubs @ 1b99060)
I need the httpd reload to invalidate opcache in my config. Based uponthe
above it seems that the phpstorm-stubs that is getting required from non-dev dependencies doesn't have issues, but the one from dev
dependencies
does. Or perhaps something to do with Composer or with the Composer merge plugin is causing one version of phpstorm-stubs to be checked out but the autoloader to be setup for the other version. Any thoughts?
Thanks, James _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
Hi,
On 6/26/19 10:53 PM, James Montalvo wrote:
I'm getting a new error today that was not happening with the identical config yesterday. <snip>
Tgr tracked down the root cause and filed https://phabricator.wikimedia.org/T226766 to figure out how to resolve it.
- -- Legoktm
Yes, sorry I should have followed up here. Thanks to Tgr, Mark Hershberger, and Legoktm for working on this.
On Fri, Jun 28, 2019 at 17:45 Kunal Mehta legoktm@member.fsf.org wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
Hi,
On 6/26/19 10:53 PM, James Montalvo wrote:
I'm getting a new error today that was not happening with the identical config yesterday. <snip>
Tgr tracked down the root cause and filed https://phabricator.wikimedia.org/T226766 to figure out how to resolve it.
- -- Legoktm
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEE2MtZ8F27ngU4xIGd8QX4EBsFJpsFAl0WmE8ACgkQ8QX4EBsF JpumFA//eY/N0ha/EEzwLQwTZhbNaqhMLmvRmtciOvOO1cizk1KrlGzLgDrltvlH Gz4UF2KI+WPtAMt/lrFe5hth4fmRM4LNx+Nj5H9wJ6WoYbZwfI9ugT1qrSt18cm1 FE1Xwp4oXpXbRZm5A+i51JzzgNDDbSAPu6qK3/r0aE41XPBe0P50JuY3NEn2fa7j 1UyayxO85ZVvKA1NCDBjUeyLb+raTDygilzVTv4jv1w9CT/L+UMbrbQy8gMIHmDc eDH8kLmlAQY2ROtXdI723PESo5c+iNQ/vXb2SvmxIkYZULe3BElQ650y556e1rg0 bQTUryj9CnXMN6kDw03u2j1R42PZftChTo/DZL6EXD0+dZqBOl+396us93Fndn2Q rGKIYnbp4l2tnrdK90zFz79gys128eV0Zx6+uUsZ+M/SjHO5AR/TfdAE37EHHNBD HRTe3qyx8tjexBvokTVjhAViswYscpiDapI7+dhMrc1EBLatacG4SPxmxzrpyy4U Mr/Nujbqon4JQuzm+9qxCPpW1D7D+ZsPL5mrBKSVP+FMVCfRsFNGnpQamVDoWKkw y4Q9raYMLP5sMBtfHiqkVhNsp7TJ5HPIIexgWNAh2H9gBpeazNUDGIf6w/NzeSu0 yVJunIImAjJ/poOcG1ngErwmmtw0iuzCw19MXZ5emu4foRSh/Ik= =JVNW -----END PGP SIGNATURE-----
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org