Jump to content

PHP workflows not working in some networks


Recommended Posts

Hi,

 

I am trying to use a few workflows (new powerpack user), but any that use PHP don't seem to do anything from my work laptop on the work network.

 

In System Preferences > Network > ... I use "Auto Proxy Discovery" 

 

Curl works fine from my terminal:

curl http://lipsum.com/feed/json -d what=paras -d amount=3 -d start=no

returns the correct data and php seems fine as

php -r 'echo "PHP seems to be working ok from the command line";'

also returns the correct data.

 

I am trying to use this google translate workflow (among other php workflows):

https://github.com/thomashempel/AlfredGoogleTranslateWorkflow

and it just never does anything.

 

Has anyone got any ideas on how I can get these PHP workflows to work, or how to get more diagnostic information?

 

I have looked in console.app but can't seem to reproduce any errors by trying to use the failing workflows.

 

Any help would be much appreciated.

 

Regards,

Brendan

Link to comment

Hi,

 

I am trying to use a few workflows (new powerpack user), but any that use PHP don't seem to do anything from my work laptop on the work network.

 

In System Preferences > Network > ... I use "Auto Proxy Discovery" 

 

Curl works fine from my terminal:

curl http://lipsum.com/feed/json -d what=paras -d amount=3 -d start=no

returns the correct data and php seems fine as

php -r 'echo "PHP seems to be working ok from the command line";'

also returns the correct data.

 

I am trying to use this google translate workflow (among other php workflows):

https://github.com/thomashempel/AlfredGoogleTranslateWorkflow

and it just never does anything.

 

Has anyone got any ideas on how I can get these PHP workflows to work, or how to get more diagnostic information?

 

I have looked in console.app but can't seem to reproduce any errors by trying to use the failing workflows.

 

Any help would be much appreciated.

 

Regards,

Brendan

 

One thing you could try is, the PHP workflow that you are having issues with, open a terminal in the folder that the script resides and try to run it from the terminal and see if it gives you any kind of error that you may could trace down

Link to comment
  • 3 weeks later...

I have tried this and pasting the php into command line and that works fine from terminal.

 

It can work on different networks (out of office for example) but I don't know how to get the alfred environment to use the system proxy configuration.

 

Is there a way to do this or does alfred not do this?

Link to comment
  • 4 weeks later...

No, my issue still isn't solved. I have another network I use that allows this to work.. Having to change networks kind of defeats the purpose of having something for improving productivity.

 

PHP can be configured to use a proxy but its something that, if your network configuration required it, would require the end user to go in and edit a config file or something to make it work, and then php read that and try. To my knowledge, you can't just say "hey php, use the global proxy settings set on this mac". It would be extremely convenient if you could, but I'm not sure that it's possible.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...