Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I use purge and expire modules to flush the nginx cache.
The pages cached are well purged in the nginx cache but i get always this warning
Warning : Invalid argument supplied for foreach() dans purge_logging() (ligne 178 ...
Because the param $purge_request_results of the function purge_logging (ligne 173 in purge.inc) is always empty.
It seems that in the function purge_issue_requests_curl($purges), i always match the condition line 147
if ($multi_result != CURLM_OK || $select_result == -1) {
// @TODO: error handling. Something truly awkward happened.
return FALSE;
}
If i comment return FALSE, i get well the logs of purge module in the watchdog, without warning.
Is this normal, because of the @TODO ?
Thanks
Comments
Comment #1
flocondetoileI made some try. I am not an expert of CURL and found examples about the usage of curl_multi_exec and curl_multi_select.
I change this code line 134 in purge.inc
with this code
The job seems to be done. The pages are well purged from the nginx cache without warning and with the purge's logs in the watchdog.
But i missing perhaps something ? about REHL 5 ?
Comment #2
jaydub CreditAttribution: jaydub commentedPossibly related to #1892028: curl fails: change to curl_multi_select() in PHP. What version of PHP are you running?
Comment #3
flocondetoileI use PHP 5.3.24
In my case, the pages cached are well purged.
Comment #4
jaydub CreditAttribution: jaydub commentedSee the other issue then #1892028: curl fails: change to curl_multi_select() in PHP as it looks like a change in PHP starting with 5.3.18 may be the reason you see the problem. There's a patch in that issue that you can try to test.
Comment #5
m.stentaI was getting the same error, and the patch in #1892028: curl fails: change to curl_multi_select() in PHP solved it.
Closing this issue as a duplicate.