[SOLVED] switching from php5.6 to php7

Help and support in getting the EVE-Dev Killboard to run on your site.
Post Reply
Tupsi
Noob
Posts: 8
Joined: Mon Jan 19, 2009 12:15

[SOLVED] switching from php5.6 to php7

Post by Tupsi » Tue Jan 09, 2018 17:47

After searching the forum for php7 I came to the conclusion that the killboard should work with php7 these days (already tried switching a few times, but it never worked so far). Sadly still doesnt work here. When I switch from my nginx php 5 upstream to 7 I get the following error and the browser only see a white page (as server throws a 500er).

Code: Select all

2018/01/09 15:35:11 [error] 3197#3197: *5675498 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined method Event::register() in /var/www/killboard/common/xajax/xajax.php:12
Stack trace:
#0 /var/www/killboard/common/index.php(201): require_once()
#1 /var/www/killboard/index.php(25): include('/var/www/killbo...')
#2 {main}
  thrown in /var/www/killboard/common/xajax/xajax.php on line 12" while reading response header from upstream, client: [myipaadress], server: [myserver], request: "GET /?a=home HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "[myhost]"
I read that some mods still have issues, so I even tried pulling a fresh clone from github and even deleted all mods, but the errors persists.

Any idea what I am missing here?
Last edited by Tupsi on Sat Sep 01, 2018 16:10, edited 1 time in total.

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

Re: switching from php5.6 to php7

Post by Salvoxia » Sat Feb 17, 2018 23:56

Hi,

sorry for my VERY late reply.

First, I haven't seen this error with PHP7 yet, but with the multitude of possible configurations, I guess that doesn't count for much.

The first thing I notice is the error message saying

Code: Select all

Event::register()
is un undefined method.
Well, that's true. It should be

Code: Select all

event::register()
and that's what I see in the code.
Could you check whether common/xajax/xajax.php line 12 begins with a capital "E" or not in your file?
Then we can check whether there is some post-prorcessing going on..

Best Regards,
Salvoxia

Tupsi
Noob
Posts: 8
Joined: Mon Jan 19, 2009 12:15

Re: switching from php5.6 to php7

Post by Tupsi » Wed Jul 04, 2018 19:58

well (and lol) sorry for my late late rereply. :-)

I turned the kb back to 5.6 after not getting anything back and it still is on 5.6. As I did the update to 4.4 today and read stuff about already "cleaning up stuff for 7.2" in the notes I though "hey finaly php 7" and as this would be the last site running on 5.6 I could really remove the whole 5 branch on my site.

So hopefully we can find the problem here.

To answer your question, line 12 is, as it should be:

event::register('page_assembleheader', 'edk_xajax::insertHTML');

so I am clueless why the fatal error report has a capital E in it.

I also checked my mod directory, only your basic stuff seems in it and everything is deactivated in the admin settings anyway I checked.
So in theory I am running a barebone version of ekb.

Tupsi
Noob
Posts: 8
Joined: Mon Jan 19, 2009 12:15

Re: switching from php5.6 to php7

Post by Tupsi » Tue Aug 28, 2018 21:33

I got it finaly running; upgraded from php 7.0 to 7.2 and now it all works for whatever reason

Tupsi
Noob
Posts: 8
Joined: Mon Jan 19, 2009 12:15

Re: switching from php5.6 to php7

Post by Tupsi » Sat Sep 01, 2018 16:10

found the reason!

I installed libevent (https://pecl.php.net/package/event) for another project I am hosting and this breaks the killboard. So I guess we now know where the Event with the capital is coming from I guess.

Post Reply

Return to “Support”

Who is online

Users browsing this forum: No registered users and 6 guests