ZKB fetch error

Help and support in getting the EVE-Dev Killboard to run on your site.
Post Reply
underwoodr
Apprentice
Posts: 53
Joined: Sat Jan 31, 2009 03:23

ZKB fetch error

Post by underwoodr » Thu Jul 19, 2018 13:41

Only started yesterday, same identical error on all feeds.
tried the updated class.zkbfetch on another post same problem.

Code: Select all

WARNING [2] array_reverse() expects parameter 1 to be array, object given
Error on line 306 in file /common/includes/class.zkbfetch.php
PHP 5.6.36 (Linux), EDK 4.4.1.0 (Into The Abyss 1.0)
File: /home/randomse/public_html/goe/common/includes/class.zkbfetch.php, line: 306, function: array_reverse
File: /home/randomse/public_html/goe/common/includes/class.zkbfetch.php, line: 406, class: ZKBFetch, function: fetch
File: /home/randomse/public_html/goe/common/admin/admin_zkbfetch.php, line: 189, class: ZKBFetch, function: processApi
File: /home/randomse/public_html/goe/common/admin/admin_zkbfetch.php, line: 133, function: getZKBApi
File: /home/randomse/public_html/goe/common/index.php, line: 324, function: include
File: /home/randomse/public_html/goe/index.php, line: 26, function: include
Any help greatly appreciated
Thanks

BluePeer
Noob
Posts: 3
Joined: Sat Jun 02, 2018 11:20

Re: ZKB fetch error

Post by BluePeer » Fri Jul 20, 2018 13:41

That looks for me so that your webspace can't get External Content
check your php settings

underwoodr
Apprentice
Posts: 53
Joined: Sat Jan 31, 2009 03:23

Re: ZKB fetch error

Post by underwoodr » Fri Jul 20, 2018 14:57

Interesting thing is, it only reports an error on pilot zkB feeds not corp. Corp one works without error.

User avatar
Salvoxia
Developer
Posts: 1528
Joined: Wed Feb 22, 2012 12:11

Re: ZKB fetch error

Post by Salvoxia » Fri Jul 20, 2018 16:14

Hi,

such a behavior would occur if the zKB API was to return an error instead of an array (of kill data).
I just added a patch to zKBFech, that checks for any errors thrown by the zKB API. You could try that and see whether you get an error message you can work with: class.zkbfetch.php (right click -> save as)

Best Regards,
Salvoxia

underwoodr
Apprentice
Posts: 53
Joined: Sat Jan 31, 2009 03:23

Re: ZKB fetch error

Post by underwoodr » Fri Jul 20, 2018 19:09

Thanks for the update, I am out of the house at the moment until tomorrow . Shall update when I have more info.
Thanks again

underwoodr
Apprentice
Posts: 53
Joined: Sat Jan 31, 2009 03:23

Re: ZKB fetch error

Post by underwoodr » Sat Jul 21, 2018 12:24

Error is ;

Code: Select all

Error reading feed: https://zkillboard.com/api/character/90272778/
character is invalid for API calls, please use characterID
No idea what has changed? but it seems that the feed needs to be "characterID" whereas the tag "character" has worked for years.
Fixed though, so thanks for the help!

User avatar
Salvoxia
Developer
Posts: 1528
Joined: Wed Feb 22, 2012 12:11

Re: ZKB fetch error

Post by Salvoxia » Sat Jul 21, 2018 18:08

I assume Squizz cleaned up the zKB API code ;) I wasn't even aware that character instead of characterID used to work!
But I'm glad that error messages are now displayed properly :)

Best Regards,
Salvoxia

Post Reply

Return to “Support”

Who is online

Users browsing this forum: No registered users and 11 guests