phpScheduleIt
May 23, 2013, 11:30:57 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Unknown exception with DateTime::__construct (schedule.php)  (Read 388 times)
gyrus
Newbie
*

Karma: 0
Posts: 2


« on: March 27, 2012, 09:38:01 AM »

Hi,

It seems that I can not open schedule.php upon calling it I only get:

Unknown Error
Return to the last page that you were on

Enabling logs (level = ERROR) provided me with this feedback:

Quote
Tue Mar 27 16:00:17 2012,942 [17250] ERROR default - Uncaught exception: exception 'Exception' with message 'DateTime::__construct() [<a href='function.DateTime---construct'>function.DateTime---construct</a>]: Failed to parse time string (2012-03-27 00:00:00 +-2 days) at position 20 (+): Unexpected character' in /var/www/schedule/lib/Common/Date.php:49
Stack trace:
#0 /var/www/schedule/lib/Common/Date.php(49): DateTime->__construct('2012-03-27 00:0...', Object(DateTimeZone))
#1 /var/www/schedule/lib/Common/Date.php(360): Date->__construct('2012-03-27 00:0...', 'Europe/Helsinki')
#2 /var/www/schedule/Presenters/SchedulePageBuilder.php(123): Date->AddDays(-2)
#3 /var/www/schedule/Presenters/SchedulePresenter.php(92): SchedulePageBuilder->GetScheduleDates(Object(UserSession), Object(Schedule), Object(SchedulePage))
#4 /var/www/schedule/Pages/SchedulePage.php(45): SchedulePresenter->PageLoad(Object(UserSession))
#5 /var/www/schedule/Web/schedule.php(26): SchedulePage->PageLoad()
#6 {main}

Does anybody know the source of this issue? PHP version is 5.2.1

Thanks in advance.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #1 on: March 27, 2012, 01:31:54 PM »

Very strange. I'm running 5.2.17 for the demo and it has no problems at all. I'll see if I can find out if 5.2.1 has a bug with adding dates.
Logged
gyrus
Newbie
*

Karma: 0
Posts: 2


« Reply #2 on: March 28, 2012, 05:23:57 PM »

It was incompatible version of PHP. It works with no errors however with the latest 5.3.10 as well as with 5.2.14.

I want to say: Thank you developers for phpScheduleIt! Keep up the good work!  Grin
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!