Closed AnKingMed closed 2 years ago
@AnKingMed Same thing happened to me. I figured it out... Monterey no longer includes php
by default.
So you need to install php with Homebrew etc.
brew install php
Then, edit the workflow script to include the full path, e.g. on an M1 mac it would be /opt/homebrew/bin/php
thanks got it working again :)
I'm not able to get it working on my Intel mac. I tried your location as well as multiple other permutations /opt/php
(where the alias is) or /usr/local/Cellar/php
(where the actual file is). I also tried /Cellar/php
and various other permutations. Does anyone have any suggestions?
On Intel it's probably /usr/local/bin/php
but if you type which php
in Terminal it should tell you @AnKingMed
Finally working. Thanks for the help
FYI, the removal of PHP in Monterey is discussed on the Alfred blog.
For users with multiple Macs - Intel & M*
and PHP installed via brew I added the following to help with sync
export PATH=$PATH:/usr/local/bin/:/opt/homebrew/bin/
php find-messages.php $look_back_minutes
Thanks for working through this! I just released a new version that figures out where php
is located on your system. It checks for these paths and uses the first one it finds:
php
/usr/local/bin/php
/opt/local/bin/php
/opt/homebrew/bin/php
/usr/bin/php
It still pulls up in alfred, but it can no longer find the codes in imessage