PHP 7.0 - 7.2

Members can make suggestions for improving the site and improving the forum as well as submit bug reports to be reviewed by our support team here.
Message
Author
User avatar
kestasjk
Developer
Developer
Posts: 518
Joined: Tue Mar 14, 2017 8:13 pm
Location: Perth, Australia
Karma: 775
Contact:

PHP 7.0 - 7.2

#1 Post by kestasjk » Sun Jul 05, 2020 8:07 am

Hi all,

FYI in preparation for an upcoming server move we have migrated to PHP 7.2. Unfortunately it has a breaking change which has come up in a couple of places in webDip code. The error will look like this:
PHP 7.2 - Warning: count(): Parameter must be an array or an object that implements Countable

Unfortunately you use count() everywhere, and in PHP it's hard to tell whether a variable going into count() is an array just by looking at the code, meaning it's something we just have to fix as it comes up. So far it only seems to have affected map rendering and that is fixed, but we will keep an eye on the error log and if you notice any new bugs please say so here.

Good news is that this means the server move will be much smoother, since we'll be moving to the same environment we have here.
3

User avatar
kestasjk
Developer
Developer
Posts: 518
Joined: Tue Mar 14, 2017 8:13 pm
Location: Perth, Australia
Karma: 775
Contact:

Re: PHP 7.0 - 7.2

#2 Post by kestasjk » Sun Jul 05, 2020 8:42 am

So far there has been a bug in the map, the pre-game adjudicator, and the registration form. These should be resolved but clearly we'll need to keep a sharp eye on the error logs for a while.
1

User avatar
kestasjk
Developer
Developer
Posts: 518
Joined: Tue Mar 14, 2017 8:13 pm
Location: Perth, Australia
Karma: 775
Contact:

Re: PHP 7.0 - 7.2

#3 Post by kestasjk » Mon Jul 06, 2020 2:08 am

Hmm. I was expecting more errors here and in the error logs, all I have since yesterday are a couple of deadlock errors which always happened. Need to look into these issues that are occurring further. Can no-one post or something?
3

Kestasjk_test
Gold Donator
Gold Donator
Posts: 3
Joined: Mon Jul 06, 2020 2:46 am
Karma: 8
Contact:

Re: PHP 7.0 - 7.2

#4 Post by Kestasjk_test » Mon Jul 06, 2020 2:47 am

Okay I can see that I didn’t properly port over the authentication module for the forum, which is weird because I was able to authenticate anyway.. Must have been a cached cookie or some such, no wonder there were no messages here!

Can anyone please let me know if there were any other issues? I will add two days to all games and resume processing, because there’s nothing in the error logs so I think this was just a configuration mistake.
1

Kestasjk_test
Gold Donator
Gold Donator
Posts: 3
Joined: Mon Jul 06, 2020 2:46 am
Karma: 8
Contact:

Re: PHP 7.0 - 7.2

#5 Post by Kestasjk_test » Mon Jul 06, 2020 3:01 am

I’m hearing that there are still issues, but I’m playing with bots, going back and forth from the forum, sending messages creating games etc. If you’re getting any errors please e-mail [email protected]
1

Squigs44
Developer
Developer
Posts: 4003
Joined: Thu Jul 12, 2018 11:50 pm
Location: OKC
Karma: 2010
Contact:

Re: PHP 7.0 - 7.2

#6 Post by Squigs44 » Mon Jul 06, 2020 4:10 am

Alright, looks like we can post in the forum once again!
2

jmo1121109
Lifetime Site Contributor
Posts: 1099
Joined: Fri Sep 29, 2017 4:20 pm
Karma: 2944
Contact:

Re: PHP 7.0 - 7.2

#7 Post by jmo1121109 » Mon Jul 06, 2020 4:24 am

@kestas the authentication for the first person to make the board is different than everyone elses. The owner of the italian site ran into that too. Have to use a different account to test.
2

jmo1121109
Lifetime Site Contributor
Posts: 1099
Joined: Fri Sep 29, 2017 4:20 pm
Karma: 2944
Contact:

Re: PHP 7.0 - 7.2

#8 Post by jmo1121109 » Mon Jul 06, 2020 4:29 am

Alright for known issues, the +1 add on page on profiles is messed up size wise, the deeper you go into forum links the more messed up they get but that somewhat existed already. Some games will have been drawn with bad maps but the new turns will be fine. Anything else please post here about.
3

cdngooner
Bronze Donator
Bronze Donator
Posts: 865
Joined: Sun Mar 15, 2020 11:52 pm
Karma: 313
Contact:

Re: PHP 7.0 - 7.2

#9 Post by cdngooner » Mon Jul 06, 2020 9:10 am

All games were apparently automatically paused. Can they now be automatically unpaused? At least non-live games.
2

delarosa
Posts: 1
Joined: Mon May 25, 2020 7:13 am
Karma: 2
Contact:

Re: PHP 7.0 - 7.2

#10 Post by delarosa » Mon Jul 06, 2020 10:03 am

Fall of American Empire map doesn't display properly. missing all SCs
2

Claesar
Posts: 1965
Joined: Tue Oct 03, 2017 10:34 am
Karma: 1490
Contact:

Re: PHP 7.0 - 7.2

#11 Post by Claesar » Mon Jul 06, 2020 10:35 am

cdngooner wrote:
Mon Jul 06, 2020 9:10 am
All games were apparently automatically paused. Can they now be automatically unpaused? At least non-live games.
No, this is only possible manually and it's way too much for us. Please unpause your own games as much as humanly possible.
3

User avatar
kestasjk
Developer
Developer
Posts: 518
Joined: Tue Mar 14, 2017 8:13 pm
Location: Perth, Australia
Karma: 775
Contact:

Re: PHP 7.0 - 7.2

#12 Post by kestasjk » Mon Jul 06, 2020 11:46 am

Claesar is there any way I can automatically unpause the games for you? Is it something that you can give a rule for which games need to be unpaused, and if so I can run a query against the database and the database backup and unpause those games.
e.g. "Any games that weren't paused before the update and weren't paused by a moderator or paused by a vote should be unpaused"?

(Apologies I didn't realize there was a certain technique for adding time to games without causing pauses.)
1

User avatar
kestasjk
Developer
Developer
Posts: 518
Joined: Tue Mar 14, 2017 8:13 pm
Location: Perth, Australia
Karma: 775
Contact:

Re: PHP 7.0 - 7.2

#13 Post by kestasjk » Mon Jul 06, 2020 11:47 am

Fall of American Empire map missing SCs ?!? Can you give me a game ID, I don't think the software even draws the SCs to the map, that's caked into the board image I thought
1

User avatar
kestasjk
Developer
Developer
Posts: 518
Joined: Tue Mar 14, 2017 8:13 pm
Location: Perth, Australia
Karma: 775
Contact:

Re: PHP 7.0 - 7.2

#14 Post by kestasjk » Mon Jul 06, 2020 11:47 am

jmo1121109 wrote:
Mon Jul 06, 2020 4:24 am
@kestas the authentication for the first person to make the board is different than everyone elses. The owner of the italian site ran into that too. Have to use a different account to test.
Dang. Thanks for cleaning up after my mistake
1

User avatar
kestasjk
Developer
Developer
Posts: 518
Joined: Tue Mar 14, 2017 8:13 pm
Location: Perth, Australia
Karma: 775
Contact:

Re: PHP 7.0 - 7.2

#15 Post by kestasjk » Mon Jul 06, 2020 11:49 am

The good news is after a day of games getting processed there were no other PHP 7.2 issues; I think we're 7.2 compatible now.
2

Chumbles
Silver Donator
Silver Donator
Posts: 7
Joined: Wed Jan 16, 2019 8:40 pm
Karma: 8
Contact:

Re: PHP 7.0 - 7.2

#16 Post by Chumbles » Mon Jul 06, 2020 11:57 am

At least in this game: http://www.webdiplomacy.net/board.php?g ... tboxanchor
The small AncMed map is using the bigmap font, making the text for each area overlap in a lot of places so that the text is unreadable at the resolution I have to use (sight problems).
2

User avatar
kestasjk
Developer
Developer
Posts: 518
Joined: Tue Mar 14, 2017 8:13 pm
Location: Perth, Australia
Karma: 775
Contact:

Re: PHP 7.0 - 7.2

#17 Post by kestasjk » Mon Jul 06, 2020 12:04 pm

Hi Chumbles,
I've fixed the territories on that game, that was a known issue that crept into the cache so still was showing after it was fixed. I'll clear out the map cache which might cause some temporary performance problems but will at least get rid of any of those bad maps.

THanks,
Kestas
1

tsvi14
Posts: 3
Joined: Sat Mar 21, 2020 1:15 pm
Karma: 5
Contact:

Re: PHP 7.0 - 7.2

#18 Post by tsvi14 » Mon Jul 06, 2020 12:16 pm

There's still problems in the games I'm in with the territory names being super bold and therefore the map being extremely hard to see.
2

User avatar
kestasjk
Developer
Developer
Posts: 518
Joined: Tue Mar 14, 2017 8:13 pm
Location: Perth, Australia
Karma: 775
Contact:

Re: PHP 7.0 - 7.2

#19 Post by kestasjk » Mon Jul 06, 2020 12:19 pm

Just cleaning the cache out now tsvi14, I'll send another post when it's done then it should all be cleared up.
2

Chumbles
Silver Donator
Silver Donator
Posts: 7
Joined: Wed Jan 16, 2019 8:40 pm
Karma: 8
Contact:

Re: PHP 7.0 - 7.2

#20 Post by Chumbles » Mon Jul 06, 2020 3:41 pm

Thanks Kestas, you're a star!
1

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests