I’ve talked with the service provider, he’s an expert in PHP as well. He said that it can’t be PHP timeout, because in that case it should take nearly 30sec to build the page. Now the page is created instantly. It isn’t from memory either.
He found this from PHP log and thought that it could be useful locating the problem:
[20-Dec-2016 12:00:21 UTC] PHP Warning: number_format() expects parameter 2 to be long, string given in /home/xxxxxxx/public_html/wp-content/plugins/sportspress/includes/class-sp-player-list.php on line 500
[20-Dec-2016 12:00:21 UTC] PHP Warning: number_format() expects parameter 2 to be long, string given in /home/xxxxxxx/public_html/wp-content/plugins/sportspress/includes/class-sp-player-list.php on line 500
[20-Dec-2016 12:00:21 UTC] PHP Fatal error: Uncaught exception 'Exception' with message 'Variable replacement does not exist for 'ga' in $ga/$eventsplayed' in /home/xxxxxxx/public_html/wp-content/plugins/sportspress/includes/libraries/class-eqeos.php:375
Stack trace:
#0 /home/xxxxxxx/public_html/wp-content/plugins/sportspress/includes/sp-core-functions.php(1258): eqEOS->solveIF('$ga/$eventsplay...', Array)
#1 /home/xxxxxxx/public_html/wp-content/plugins/sportspress/includes/class-sp-player-list.php(493): sp_solve('$ga / $eventspl...', Array, '2')
#2 /home/xxxxxxx/public_html/wp-content/plugins/sportspress/templates/player-list.php(48): SP_Player_List->data()
#3 /home/xxxxxxx/public_html/wp-content/plugins/sportspress/includes/sp-core-functions.php(80): include('/home/xxxxxxx/p...')
#4 /home/xxxxxxx/public_html/wp-content/plugins/sportspress/templates/team-lists.php(30): sp_get_template('player-list.php', Array)
#5 /home/xxxxxxx/public_html/wp-content/plugins/sportspress/includes/sp-core-functions.php(80): include('/home/xxxxxxx/p...')
#6 /home/xxxxxxx/ in /home/xxxxxxx/public_html/wp-content/plugins/sportspress/includes/libraries/class-eqeos.php on line 375