jdelamater99 / Twitter-RSS-Parser

Convert Twitter API v1.1 JSON to RSS
Other
69 stars 18 forks source link

PHP Notice: Undefined offset: 0 #6

Open markwaters opened 11 years ago

markwaters commented 11 years ago

If I am polling a list or search that has no results I see errors in the apache2 logs like this -

[Sun Sep 29 19:03:33 2013] [error] [client XXX.XXX.XXX.XXX] PHP Notice: Undefined offset: 0 in /var/www/twitter-rss-parser/list.php on line 29, referer: https://URL/twitter-rss-parser/?list=LISTNAME&owner=USERNAME [Sun Sep 29 19:22:40 2013] [error] [client XXX.XXX.XXX.XXX] PHP Notice: Undefined offset: 0 in /var/www/twitter-rss-parser/search.php on line 30, referer: https://URL/twitter-rss-parser/?q=%23SEARCHQUERY

HTH

vinzv commented 11 years ago

Same here, on every call to the script.

jdelamater99 commented 11 years ago

I've never experienced those errors. Can you give more detail on how to replicate them.

Also, I'm assuming that you've filled in the appropriate info in the top portion of the config.php-dist and renamed it to config.php

markwaters commented 11 years ago

Yep , Twitter-RSS-Parser is running correctly , I think these errors occur when there are no results from the script.