-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug|Magento]: After activating pro: Unable to find the wrapper "phar" #382
Comments
Are you sure that |
Yes ❯ which php |
What do you get when you run php -i | grep "Registered PHP Streams" It should give you: "Registered PHP Streams => https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, zip" |
You should be back to a running system if you open the Dumps window and stop dump interception. We're investigating this at the moment but it could be Magento related. |
Phar is in there.
i was not sure how to do this. I expected this to be in the dumps pane to enable / disable it. but its in the dumps screen itself I can stop listening. and this fixed it for now. |
This seems to be related to Magento unregistering the phar stream... I suppose you run into this when running Magento related commands via the CLI? |
In this case I was indeed running but before herd pro i had no issues (either with brew version of PHP or non-pro 1.4.0 herd.) |
Yeah, Herd Pro loads a phar file to inject the |
For now i keep it disabled for magento hopefully a minor version upgrade will fix it later. Thanks! |
@kayintveen some time ago I sent you a potential fix for this. Did you find the time to try this? |
To be honest. its working now but i did not change the thing you did. not sure what did fix it though ;( |
Same issue with the latest version. How can I disable the dump interception? |
Nevermind, find the button. But still breaks Magento |
@barryvdh I wasn't able to verify the fix that I sent to @kayintveen Add
To this file: Right before the include. |
Not sure how to best test that, my Mac doesn't seem to like me changing that file. |
Some how I fixed it. But I don't remember how. would love to have this working out of the box. i mainly had the issue with Magento as well. |
If you disable the interception, there is no issue: Does intercepting work for you now? I think the fix should work, it's also mentioned here; magento/magento2#21973 (comment) |
Yeah, when the interception is disabled we're not loading a PHAR file. I'll just apply the fix in the next update, as I also doesn't see any reasons why this should break anything |
Operating system version
macOS Sonoma 14.2.1 (23C71)
System architecture
ARM64 (M1, M2, etc)
Herd Version
1.4.0
PHP Version
PHP 8.1.26 (cli) (built: Dec 21 2023 08:51:01) (NTS)
Bug description
When I activated Pro, my CLI stopped working.
Warning: stream_resolve_include_path(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in phar:///Applications/Herd.app/Contents/Resources/valet/dump.phar/vendor/composer/ClassLoader.php on line 557
Tried restarting, rebooting, herd restart and switching between PHP 8.1 (which I need for this project) and 8.2
Steps to reproduce
actived pro on a clean install
Relevant log output
No response
The text was updated successfully, but these errors were encountered: