-
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]: herd command output ""No usable PHP version found" #1215
Comments
after some more testing, so the problem only happens to me that if I only have PHP 8.4 installed, if I have both PHP 8.3 and 8.4 installed and even not using php8.3 so it seems like it's the |
Running into this as well. Hardcoded php8{0,1,2,3} into find-usable-php.php. Seems like a sloppy update. If php84 is the only one installed, everything breaks. Using herd pro |
Ok, so here's the solution for this particular issue:
if (version_compare($linkedPhpVersion, $minimumPhpVersion) >= 0) {
if (file_exists($binPath . '84' . DIRECTORY_SEPARATOR . 'php.exe')) {
echo $binPath . '84' . DIRECTORY_SEPARATOR . 'php.exe';
} elseif (file_exists($binPath . '83' . DIRECTORY_SEPARATOR . 'php.exe')) {
echo $binPath . '83' . DIRECTORY_SEPARATOR . 'php.exe';
} elseif (file_exists($binPath . '82' . DIRECTORY_SEPARATOR . 'php.exe')) {
echo $binPath . '82' . DIRECTORY_SEPARATOR . 'php.exe';
} elseif (file_exists($binPath . '81' . DIRECTORY_SEPARATOR . 'php.exe')) {
echo $binPath . '81' . DIRECTORY_SEPARATOR . 'php.exe';
}
return;
}
Now, the other issue appears which is this error:
Issue is that I cannot find the Site.php. I am using Laravel Official VSCode Extension. Maybe that's the issue. |
@codedusting yeah, it's easy to figure out once you look at find-usable-php.php but this should be updated by the team working on Herd to not require hard-coded values. There must be a smarter way, such as reading and parsing dir/file names so that this doesn't need to be manually updated. Starting to feel like Herd/Herd Pro is more work just keeping it working vs Homebrew (in my case on MacOS) and Valet. |
Also, the |
This is now fixed in v1.14.0 |
Platform
Windows
Operating system version
Win 10
System architecture
Windows
Herd Version
1.13.0
PHP Version
8.4.2
Bug description
I installed my php via herd as well. and I recently updated to PHP 8.4.2, not sure what's the problem here, I would assume it's some misconfiguration issue? but not sure how to/where to configure this
Steps to reproduce
No response
Relevant log output
got similar on my mac as well
The text was updated successfully, but these errors were encountered: