phpmon: `/usr/local/bin/which` causes `which` command of `valet` to fail and prevents PHP Monitor from starting up correctly

Describe the bug

I could not start PHPMonitor from application menu. But it can be started by calling from Terminal command without any error message popup like this: /Applications/PHP\ Monitor.app/Contents/MacOS/PHP\ Monitor

To Reproduce Steps to reproduce the behavior:

  1. Just find PHPMonitor from Alfred
  2. Open App
  3. Got Error message appear
  4. See screenshots

Expected behavior It cannot start normally, but can start from Terminal without any error messages.

Screenshots See screenshots.

Required information

  • Did you consult the FAQ in the README? [yes]
  • Did you try “Fix My Valet”? [yes]
  • OS: macOS Monterey 12.4
  • PHP Monitor version 5.3 (786)
  • Tried to click on “Retry” button in screenshot but error message still throw out.

Additional context

screenshot_287 screenshot_288 screenshot_289

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 24 (11 by maintainers)

Commits related to this issue

Most upvoted comments

Thank you for helping me run PHPMon normally. I really like this app and use it everyday. Your app was good and keep up good work. The developer need this for their life. I will recommend PHPMon to my friends too.

And again, yah thanks bro.

OK, and what happens if you run valet --version in your regular terminal? I assume that works as expected?

Tonight, I will make a debug build that logs the launch info to a temporary file, no matter whether launched normally or via the terminal. That should help us figure out what’s going wrong, but it’ll take a bit for me to set that up. I’ll keep you posted! Thanks for following along and helping me debug this so far. Hopefully we can find what’s causing this eventually 😄