Author Topic: cURL Stopped Working in AtomFeed.php  (Read 733 times)

0 Members and 1 Guest are viewing this topic.

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
cURL Stopped Working in AtomFeed.php
« on: May 09, 2016, 10:11:34 AM »
For the past several weeks my '/AtomAlerts/AtomFeed.php' has not been updating correctly.  At times it was giving an error message regarding cURL not updating, so I disabled the 'curl_fetch_file($AlertURL.$noaa_code, 1, 0, $noaa_code);' option at Line 112 in favor of the 'GrabURLWithoutHanging($AlertURL.$noaa_code, 1, 0, $noaa_code);' option at LIne 108. The consistent error is 15-20 array failures like this:
Code: [Select]
Warning: array_search() expects parameter 2 to be array, null given in /home/content/(--)/html/AtomAlerts/AtomFeed-test.php on line 309.

The GrabURLWithoutHanging() function works just fine.  I'm unable to sort out what in the cURL function is causing the problem.  Anyone have any ideas?  Here is my slightly modified AtomFeed.php, and here is the original AtomFeed.php renamed to AtomFeed-test.php.
Regards, Jerry Wilkins
gwwilk@gmail.com