Problems

Help and support in getting the EVE-Dev Killboard to run on your site.
celagon
Apprentice
Posts: 66
Joined: Mon Oct 07, 2013 01:50

Problems

Post by celagon »

Not sure what the problems is but i cant se stats page anymore.
Getting an HTTP ERROR 500.
https://dab-killboard.net/?a=corp_detai ... =587355246

The same for Pilot Stats mod wich shows top killers of month year and so on.
https://dab-killboard.net/?a=pilot_stats

https://dab-killboard.net/

Im also gonna post this here. No need to help if you guys dont want to.
Several years ago a corp mate of mine helped me make 2 files that posts latest kills and top killer of month, wich i could put up on our site outside of the killboard.
Now those 2 files arent working anymore. Im guessing it has to do with php is up to 7.1 now at our site.
I dont know how to ficx them so im seing if anyone here can help me with them :)
_topkillers.zip
(782 Bytes) Downloaded 364 times
_recentkills.zip
(957 Bytes) Downloaded 366 times
User avatar
Salvoxia
Developer
Posts: 1598
Joined: Wed Feb 22, 2012 12:11

Re: Problems

Post by Salvoxia »

Hi,

you write you upgraded PHP to 7.1. On your about page, I can see that you're using the "Corp Pilot Stats" mod. It may very well be the case that this mod is not compatible with PHP 7.1.
Could you try disabling that mod and check if you can see your stats page again?

Regarding your two little files:
Yes, you are right, the reason is PHP 7.1. The way the database is accessed in these scripts was removed in PHP7.
You can try the files I attached.

Best Regards,
Salvoxia
Attachments
_topkillers_php71.zip
(842 Bytes) Downloaded 365 times
_recentkills_php71.zip
(994 Bytes) Downloaded 359 times
celagon
Apprentice
Posts: 66
Joined: Mon Oct 07, 2013 01:50

Re: Problems

Post by celagon »

I disabled all mods on the killboard and still getting the same error.

And thanks i will check those files out :)
User avatar
Salvoxia
Developer
Posts: 1598
Joined: Wed Feb 22, 2012 12:11

Re: Problems

Post by Salvoxia »

Okay, could you then please check your web server's log and EDK's cache/error.log file for PHP errors?
celagon
Apprentice
Posts: 66
Joined: Mon Oct 07, 2013 01:50

Re: Problems

Post by celagon »

cant find any errors on web server and only finding this in cashe errors.

PHP 2019-02-27 16:20:38 8192: Methods with the same name as their class will not be constructors in a future version of PHP; PilotStats has a deprecated constructor in /home/XXXXXXX/dab-killboard.net/mods/pilot_stats/class.pilotStats.php on line 2
celagon
Apprentice
Posts: 66
Joined: Mon Oct 07, 2013 01:50

Re: Problems

Post by celagon »

And i hust saw i can check on any pilots either atm with the same error.
User avatar
Salvoxia
Developer
Posts: 1598
Joined: Wed Feb 22, 2012 12:11

Re: Problems

Post by Salvoxia »

Hi,

that warning should not really cause his behavior, even more so as you already tested it without any mods enabled and that message is generated by that mod.
If there's nothing in your web server's error log, does your PHP installation have a separate error log? There must be something somewhere...

Best Regards,
Salvoxia
celagon
Apprentice
Posts: 66
Joined: Mon Oct 07, 2013 01:50

Re: Problems

Post by celagon »

Had to ask my host and they sent me this answer.
I have reviewed the reported issue and the same is related to the code of your application.

The website is throwing the following error:

[28-Feb-2019 19:39:13 UTC] PHP Fatal error: Uncaught Error: Call to a member function format() on boolean in /home/xxxxxxxx/dab-killboard.net/common/includes/esi/class.helpers.php:134
Stack trace:
#0 /home/xxxxxxxx/dab-killboard.net/common/includes/class.pilot.php(568): ESI_Helpers::formatRFC7231Timestamp(NULL)
#1 /home/xxxxxxxx/dab-killboard.net/common/pilot_detail.php(159): Pilot->fetchPilot()
#2 /home/xxxxxxxx/dab-killboard.net/common/includes/class.pageassembly.php(70): pPilotDetail->stats(Object(pPilotDetail))
#3 /home/xxxxxxxx/dab-killboard.net/common/includes/class.pageassembly.php(37): pageAssembly->call('this->stats')
#4 /home/xxxxxxxx/dab-killboard.net/common/pilot_detail.php(475): pageAssembly->assemble()
#5 /home/xxxxxxxx/dab-killboard.net/common/index.php(324): include('/home/xxxxxxxx/...')
#6 /home/xxxxxxxx/dab-killboard.net/index.php(26): include('/home/xxxxxxxx/...')
#7 {main}
thrown in /home/xxxxxxxx/dab-killboard.net/common/includes/esi/class.helpers.php on line 134

I have attempted to resolve the error by changing the PHP version of your application. I have tried all available PHP versions (5.6 - 7.2), however, the issue still persists.

With that in mind I would recommend 1 of the following:

Review the above error with the assistance of a Certified Web Developer that would be able to review the same and resolve it.
If any server-side adjustments are required from our end, you can update us via this ticket and we would gladly apply them for you.
User avatar
Salvoxia
Developer
Posts: 1598
Joined: Wed Feb 22, 2012 12:11

Re: Problems

Post by Salvoxia »

Hi,

thanks, that's very helpful.
Even though I am by no means a certified web developer, I'll try to make sense of this ;)

Seems to me like ESI communication has a problem. The error occurs when EDK is trying to parse the last modification date of the entity's ESI details. That date seems to be non-existent.
Could you please check the troubleshooting section in ACP for any ESI errors?
And could you also try clearing the cache/esi folder?

If that doesn't do anything, could please enable ESI debugging mode changing the last line in your kbconfig.php to

Code: Select all

define('ESI_DEBUG', true);
Then, try viewing a stats page again. After that, the cache/error.log should contain more details about fetching entity data from ESI, and hopefully reveal what's going wrong.
Don't forget to reset the setting afterwards, as it will fill up your log file rather quickly when posting kills.

The strange thing is that kill posting still seems to be working, so ESI communication works in for some parts.

Best Regards,
Salvoxia
celagon
Apprentice
Posts: 66
Joined: Mon Oct 07, 2013 01:50

Re: Problems

Post by celagon »

the only thing coming up in cashe error log is this. Nothing ellse at all.
PHP 2019-02-28 19:18:05 8192: The each() function is deprecated. This message will be suppressed on further calls in /home/xxxxxxxx/dab-killboard.net/common/smarty/sysplugins/smarty_internal_compilebase.php on line 52
Post Reply