Hi all,
I am trying to test a package called UAParser, which is on Packagist already. I created this patch[1] to demonstrate it. After making the change shown in the patch, I ran composer update and verified that UAParser is in the /vendor directory. However, when I open Special:HelloWorld on wiki, I get the following error message: Class 'UAParser\Parser' not found
I am not super informed about composer and Packagist, and don't know how to fix this issue. Any advice would be highly appreciated.
Thanks,
Huji
Hey, Have you done `composer install` in directory of mediawiki and the extensions? That should fix it. Sometimes `composer update` is needed if you already did it but rather some time ago.
Best
On Sun, Mar 4, 2018 at 1:08 AM Huji Lee huji.huji@gmail.com wrote:
Hi all,
I am trying to test a package called UAParser, which is on Packagist already. I created this patch[1] to demonstrate it. After making the change shown in the patch, I ran composer update and verified that UAParser is in the /vendor directory. However, when I open Special:HelloWorld on wiki, I get the following error message: Class 'UAParser\Parser' not found
I am not super informed about composer and Packagist, and don't know how to fix this issue. Any advice would be highly appreciated.
Thanks,
Huji
[1] https://gerrit.wikimedia.org/r/#/c/409701/ _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Yes, I did both and it still gives that error message.
Brian made a suggestion on the patch itself, and I am going to try that in a few. I will report back as to whether or not that fixes the issue.
On Sun, Mar 4, 2018 at 9:41 AM, Amir Ladsgroup ladsgroup@gmail.com wrote:
Hey, Have you done `composer install` in directory of mediawiki and the extensions? That should fix it. Sometimes `composer update` is needed if you already did it but rather some time ago.
Best
On Sun, Mar 4, 2018 at 1:08 AM Huji Lee huji.huji@gmail.com wrote:
Hi all,
I am trying to test a package called UAParser, which is on Packagist already. I created this patch[1] to demonstrate it. After making the
change
shown in the patch, I ran composer update and verified that UAParser is
in
the /vendor directory. However, when I open Special:HelloWorld on wiki, I get the following error message: Class 'UAParser\Parser' not found
I am not super informed about composer and Packagist, and don't know how
to
fix this issue. Any advice would be highly appreciated.
Thanks,
Huji
[1] https://gerrit.wikimedia.org/r/#/c/409701/ _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Brian's suggestion did not resolve the issue either :(
On Sun, Mar 4, 2018 at 10:37 AM, Huji Lee huji.huji@gmail.com wrote:
Yes, I did both and it still gives that error message.
Brian made a suggestion on the patch itself, and I am going to try that in a few. I will report back as to whether or not that fixes the issue.
On Sun, Mar 4, 2018 at 9:41 AM, Amir Ladsgroup ladsgroup@gmail.com wrote:
Hey, Have you done `composer install` in directory of mediawiki and the extensions? That should fix it. Sometimes `composer update` is needed if you already did it but rather some time ago.
Best
On Sun, Mar 4, 2018 at 1:08 AM Huji Lee huji.huji@gmail.com wrote:
Hi all,
I am trying to test a package called UAParser, which is on Packagist already. I created this patch[1] to demonstrate it. After making the
change
shown in the patch, I ran composer update and verified that UAParser is
in
the /vendor directory. However, when I open Special:HelloWorld on wiki,
I
get the following error message: Class 'UAParser\Parser' not found
I am not super informed about composer and Packagist, and don't know
how to
fix this issue. Any advice would be highly appreciated.
Thanks,
Huji
[1] https://gerrit.wikimedia.org/r/#/c/409701/ _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
From where did you run `composer update`, MW root or extension dir?
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On March 4, 2018 1:08 AM, Huji Lee huji.huji@gmail.com wrote:
Hi all,
I am trying to test a package called UAParser, which is on Packagist
already. I created this patch[1] to demonstrate it. After making the change
shown in the patch, I ran composer update and verified that UAParser is in
the /vendor directory. However, when I open Special:HelloWorld on wiki, I
get the following error message: Class 'UAParser\Parser' not found
I am not super informed about composer and Packagist, and don't know how to
fix this issue. Any advice would be highly appreciated.
Thanks,
Huji
[1] https://gerrit.wikimedia.org/r/#/c/409701/
MediaWiki-l mailing list
To unsubscribe, go to:
Extension directory.
And when I look into .../extension/BoilerPlate/vendor/ I see that ua-parser is there.
On Sun, Mar 4, 2018 at 12:55 PM, Stephan Gambke s7eph4n@protonmail.com wrote:
From where did you run `composer update`, MW root or extension dir?
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On March 4, 2018 1:08 AM, Huji Lee huji.huji@gmail.com wrote:
Hi all,
I am trying to test a package called UAParser, which is on Packagist
already. I created this patch[1] to demonstrate it. After making the
change
shown in the patch, I ran composer update and verified that UAParser is
in
the /vendor directory. However, when I open Special:HelloWorld on wiki, I
get the following error message: Class 'UAParser\Parser' not found
I am not super informed about composer and Packagist, and don't know how
to
fix this issue. Any advice would be highly appreciated.
Thanks,
Huji
[1] https://gerrit.wikimedia.org/r/#/c/409701/
MediaWiki-l mailing list
To unsubscribe, go to:
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Brian found the problem. I was using "load_composer_autoloader": true in the wrong place.
On Sun, Mar 4, 2018 at 1:13 PM, Huji Lee huji.huji@gmail.com wrote:
Extension directory.
And when I look into .../extension/BoilerPlate/vendor/ I see that ua-parser is there.
On Sun, Mar 4, 2018 at 12:55 PM, Stephan Gambke s7eph4n@protonmail.com wrote:
From where did you run `composer update`, MW root or extension dir?
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On March 4, 2018 1:08 AM, Huji Lee huji.huji@gmail.com wrote:
Hi all,
I am trying to test a package called UAParser, which is on Packagist
already. I created this patch[1] to demonstrate it. After making the
change
shown in the patch, I ran composer update and verified that UAParser is
in
the /vendor directory. However, when I open Special:HelloWorld on wiki,
I
get the following error message: Class 'UAParser\Parser' not found
I am not super informed about composer and Packagist, and don't know
how to
fix this issue. Any advice would be highly appreciated.
Thanks,
Huji
[1] https://gerrit.wikimedia.org/r/#/c/409701/
MediaWiki-l mailing list
To unsubscribe, go to:
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org