impresspages / ImpressPages

ImpressPages is php framework with admin panel. Build functional website in one hour.
http://www.impresspages.org
Other
502 stars 175 forks source link

Invalid date in log table leads to PHP error #823

Open maskas opened 7 years ago

maskas commented 7 years ago

E.g. Invalid argument supplied for foreach() in /var/www/clients/client3/web16/web/Ip/Internal/Log/AdminController.php:57Invalid argument supplied for foreach() in /var/www/clients/client3/web16/web/Ip/Internal/Log/AdminController.php:57Invalid argument supplied for foreach() in /var/www/clients/client3/web16/web/Ip/Internal/Log/AdminController.php:57Invalid argument supplied for foreach() in /var/www/clients/client3/web16/web/Ip/Internal/Log/AdminController.php:57Invalid argument supplied for foreach() in /var/www/clients/client3/web16/web/Ip/Internal/Log/AdminController.php:57Invalid argument supplied for foreach() in /var/www/clients/client3/web16/web/Ip/Internal/Log/AdminController.php:57Invalid argument supplied for foreach() in /var/www/clients/client3/web16/web/Ip/Internal/Log/AdminController.php:57Invalid argument supplied for foreach() in /var/www/clients/client3/web16/web/Ip/Internal/Log/AdminController.php:57Invalid argument supplied for foreach() in /var/www/clients/client3/web16/web/Ip/Internal/Log/AdminController.php:57Invalid argument supplied for foreach() in /var/www/clients/client3/web16/web/Ip/Internal/Log/AdminController.php:57{"result":[{"command":"setHtml","html":" log<\/h1>\r\n \n \n Ie\u0161koti <\/button>\n \n I\u0161valyti visk\u0105 <\/button>\n <\/div>\n

http://pastebin.com/aRyJaZtC

Vietinis commented 7 years ago

Log lentelės eksportas: http://pastebin.com/x0zC6JM4

Vietinis commented 7 years ago

Tik išvalius lentelę ir paspaudus refresh ant log dalies vėl gaunamos klaidos: http://pastebin.com/i3FT9MfH

maskas commented 7 years ago

Blogi įrašai duombazėj atsiranda, nes pas tave linksta kron'as. Jis turėtų grąžinti string'ą "OK". Bet negrąžina. Tą gali pasitikrinti nuėjęs į admin -> Config -> Advanced ir paspaudęs http://local.cms.com/?pa=Cron&pass=xxxx

Turėtum matyti OK, bet turbūt nematysi.

Tai susitvarkius su kron ir išvalius duombazę, turėtų būti ok. Dar gali tiesiog atjungti "fake cron".

Arba gali įsimesti rankomis fix'ą, kuris ignoruoja, jeigu yra klaidų loge https://github.com/impresspages/ImpressPages/commit/7be8e3954e351eddf413ac8c5742451a7d80ef01