Jump to content
brentoe

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

Share this post


Link to post

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

Share this post


Link to post

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?

Share this post


Link to post

Hi, does your problem solved? Recently, I met the same problem as you did. I don't know how to get the alfred environment to use the system proxy configuration. I will be appreciate if you could give any solution. Thank you.

Share this post


Link to post

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.

Share this post


Link to post

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.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...