-
Notifications
You must be signed in to change notification settings - Fork 115
Fehler bei Gebäuden #328
Comments
Can we have the code of that line ? |
Why is setTimestamp() trying to set a time stamp of "6.2544273027261E+173"? that number is not a valid unix timestamp that function uses. its starting from this line ShowBuildingsPage.class.php and thats called from line 272 in the same file as you can see in the backtrace and this line in GeneralFunctions.php does not like the invalid timestamp a valid time stamp would be "1504016378" |
Good Question, source isn't modified. I only deleted a running building process in the gui. |
I got the same problem. Message: DateTime::setTimestamp() expects parameter 1 to be integer, float given |
@Lugon89 How to reproduce? |
Just delete an building out the build queue ;) |
Okay. I do follow steps:
OR
work fine without the error. Its unable to reproduce for me. With you steps. |
Hi zusammen,
ich habe ein Gebäude aus der Schleife gelöscht und bekommen nun folgenden Fehler:
Message: DateTime::setTimestamp() expects parameter 1 to be integer, float given
File: /includes/GeneralFunctions.php
Line: 143
URL: https://www.domain.de/game.php?page=buildings
PHP-Version: 7.0.16-1~dotdeb+8.1
PHP-API: cgi-fcgi
2Moons Version: 1.8.git
Debug Backtrace:
#0 [internal function]: errorHandler(2, 'DateTime::setTi...', 'FILEPATH ...', 143, Array)
#1 /includes/GeneralFunctions.php(143): DateTime->setTimestamp(6.2544273027261E+173)
#2 /includes/pages/game/ShowBuildingsPage.class.php(231): _date('U', 6.2544273027261E+173, 'Europe/Berlin')
#3 /includes/pages/game/ShowBuildingsPage.class.php(271): ShowBuildingsPage->getQueueData()
#4 /game.php(57): ShowBuildingsPage->show()
#5 {main}
The text was updated successfully, but these errors were encountered: