-
Notifications
You must be signed in to change notification settings - Fork 26
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
cli_set_process_title had an error #121
Comments
Which platform is this (windows/mac/linux)?? Which PHP version? |
@dantleech Hello, I've got a similar error trying to use fink with cron.
Is my command, it gives an error near the one mentioned earlier when used with cron : Fatal error: Uncaught Error: Call to undefined function cli_set_process_title() in /home/xxx/vendor/dantleech/fink/bin/fink:25 Stack trace: #0 /home/xxx/vendor/bin/fink(119): include() #1 {main} thrown in /home/xxx/vendor/dantleech/fink/bin/fink on line 25 ` Any idea why it trigger this error ? Everything work fine when done from my terminal on the same server with the same command. |
Are you using windows? Happy to accept a pull request that would wrap the call with |
@dantleech Sure, I'll send a pull request. Currently running on Linux. In cron it seems that PHP it used in "cgi-fcgi" (on my server) |
I've been able to fix the problem, I'm adding my solution so anyone who wants to turn it into cronjob knows. Might not work depeding on your PHP configuration. What worked for me was : Glad I found how to be sure I'm using the right PHP bin from this Stack Overflow help : -- Quote : To fix this, first find the path to the correct php executable in a normal shell by typing this:
|
I keep getting the following message when running this script:
It seems to run fine in spite of it, but I can't find how to get rid of it.
The text was updated successfully, but these errors were encountered: