Pilot lookup

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

Pilot lookup

Post by underwoodr » Sun Mar 03, 2019 23:43

Whenever I try to look at stats on a particular pilot I get the following error;
Fatal error: Call to a member function format() on boolean in /common/includes/esi/class.helpers.php on line 134

Have tried replacing the file, and I can't search on this forum to see if the problem has been fixed before, I get a 404 error.
Help appreciated as always
Thanks
Underwoodr

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

Re: Pilot lookup

Post by Salvoxia » Mon Mar 04, 2019 20:18

Hi,

that seems to be the same problem discussed in this thread: http://www.evekb.org/forum/viewtopic.php?f=504&t=22088
You can either use the hotfix package attached to my last post in that thread, or refer to this commit: https://github.com/evekb/evedev-kb/comm ... 7817ddb93d

Interesting that this is popping up now...

Best Regards,
Salvoxia

P.S.: Strange about the search function, working fine for me.. I'll add this problem to the list of known issues.

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

Re: Pilot lookup

Post by underwoodr » Tue Mar 05, 2019 20:12

Unfortunately neither the files you posted, or the github variants worked. Tried both to be sure,
Same error ;

Code: Select all

Fatal error: Call to a member function format() on boolean in /home/randomse/public_html/goe/common/includes/esi/class.helpers.php on line 134
As for the search, no idea. Tried from two systems from different locations now. It is strange indeed.

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

Re: Pilot lookup

Post by Salvoxia » Sun Mar 10, 2019 11:08

Hi,

okay, I'm back from my business trip, let's try to analyze this.
Could you please do the same as described in this post and get back here with the results?

Best Regards,
Salvoxia

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

Re: Pilot lookup

Post by underwoodr » Sun Mar 10, 2019 18:20

Done, here is the attached error.log from the cache file.
Just to re-cap, I replaced the common/includes/class.pilot.php with the modified one, then got my error.log from the cache folder after going to "Stats" page and then clicking on a pilot.
My error is still this;
Fatal error: Call to a member function format() on boolean in /home/randomse/public_html/goe/common/includes/esi/class.helpers.php on line 134
Attached is my error.log.
All the errors appear to be the same with just different time stamps.

Cheers for the help, you the man
Attachments
error.zip
(1.21 KiB) Downloaded 46 times

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

Re: Pilot lookup

Post by Salvoxia » Mon Mar 11, 2019 17:23

Hi,

unfortunately, I don't see what I expect to see in that file. All entries are from January.
Did you use the stats page of an actual player character or maybe landed on an NPC page?


If you used a player character, can you please check and confirm each of the following items:
  • ACP Troubleshooting section showing all green
  • All mods disabled
  • All caching disabled
  • lines 568 and 569 of your current includes/common/class.pilot.php are

    Code: Select all

    EDKError::log(print_r($EsiCharacter, TRUE));
    EDKError::log(print_r($headers, TRUE));
If any of these points are not true, please correct them for this test, and try again.

Best Regards,
Salvoxia

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

Re: Pilot lookup

Post by underwoodr » Mon Mar 11, 2019 17:41

I tried to load the stats page from the nav bar, and click on one of the known characters.
If I go here for example;

Code: Select all

http://www.random-servers.co.uk/goe/?a=kill_detail&kll_id=38793
I can't select the Victim's pilot page, or corp page. But his alliance page loads.
This is not true for all alliances.

I can also confirm that my ACP is all green.
I just disabled the only 2 mods I had enabled, mostexp and known_members
Caching has always been disabled.
Lines 568 and 569 match.

Attached is the new error log
Attachments
error (2).zip
(5.96 KiB) Downloaded 56 times

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

Re: Pilot lookup

Post by Salvoxia » Tue Mar 12, 2019 18:23

Hi,

now that's exactly what I was expecting.
Which is kind of strange, because the files linked in my first reply should have fixed that.
Could you please do the following:
Confirm that line 202 of your current common/includes/esi/class.esi.php equals

Code: Select all

$http_header = array_change_key_case($http_header, CASE_LOWER);
.

If so, please clear your cache/esi folder and try again (the ESI client always caches in some way) :)

Best Regards,
Salvoxia

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

Re: Pilot lookup

Post by underwoodr » Wed Mar 13, 2019 20:31

Hi there,
Sorry took a day or so to reply, had a bit of a mad rush of work!
Can confirm line 202 is the same, i overwrote it just in case. I cleared the whole cache folder for good measure,
Problem still persists.
Sorry to throw a spanner into the works :lol:
I can send you a link if you would like to see for yourself?
Thanks

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

Re: Pilot lookup

Post by Salvoxia » Thu Mar 14, 2019 13:07

Hm, could you please also check that line 568 in file common/includes/class.pilot.php is
$Pilot = Pilot::add($this->name, $this->corp, ESI_Helpers::formatRFC7231Timestamp($headers['last-modified']), $this->externalid, false);
The important part is "last-modified" in lower case letters! That's what the problem was in the other case. And it still looks like the timestamp value in that response header cannot be parsed. However, in your error log I can see the value has a compatible format, so...

What kind of link were you thinking of?

Post Reply

Return to “Support”

Who is online

Users browsing this forum: No registered users and 7 guests