dancryer / PHPCI

PHPCI is a free and open source continuous integration tool specifically designed for PHP.
BSD 2-Clause "Simplified" License
2.42k stars 439 forks source link

During build process when using phing fatal error occurs #767

Open axka opened 9 years ago

axka commented 9 years ago

As soon as phing starts its work and I reload our PHPCI page the page is broken; I just get the beginning of the page without any CSS and the following error message:

Latest Builds

Fatal error: Call to a member function format() on a non-object in PHPCI/View/Home/index.phtml on line 47

tvbeek commented 9 years ago

Do you get this error only in combination with phing?

corretge commented 9 years ago

With this information seems a problem with \DateTime and not with Phing. seems that $last is not a DateTime object and its declared in:

16 <?php $last = new \DateTime('-1 Year'); ?>

Maybe have you previous errors related to the timezone configured in your php.ini?

axka commented 9 years ago

This error just occurs when the phing process starts. The build starts and is running all the tasks but as soon as it reaches phing this error occurs. Afaik this problem occurs just on the dashboard page.