Friendica Troubleshooting – poller.php

Experimenting with Friendica might be fun, if the poller script doesn’t actually hate you. In my case, it spammed me with thousands of warnings which read as follows:

Warning: posix_kill() expects parameter 2 to be long, string given in include/pidfile.php on line 38
PHP Warning: posix_kill() expects parameter 2 to be long, string given in include/pidfile.php on line 38

Let me put it that way, there’s something wrong with killing some processes. The code PHP complains about reads as follows:

return(posix_kill(file_get_contents($this->_file), SIGTERM));

Looking at the error messgae it’s most likely the PCNTL constant which isn’t interpreted correctly. Changing that constant to a number should do the trick:

return(posix_kill(file_get_contents($this->_file), 15));

Now let’s see if we can take that case as resolved…

Author:

Leave a Reply

Your email address will not be published. Required fields are marked *