Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Error after update ( 2.66.0+170619)

More
6 years 9 months ago #156123 by acury
Hi!

After update to 2.66.0+170619, when i try acess surveys ou active surveys (in admin panel), i´m received this error message:

Internal Server Error
Call to a member function format() on boolean

An internal error occurred while the Web server was processing your request. Please contact the webmaster to report this problem.

Thank you.
2017-06-20 06:49:38


PHP 7
IIS Windows
SQL Server Database.

Tabks
The topic has been locked.
More
6 years 9 months ago #156158 by crowland
Replied by crowland on topic Error after update ( 2.66.0+170619)
I have just installed and have the same issue.

I'm using PHP 5.6, IIS, SQL Server 2014

After some hunting around I resolved it with this change to "application/models/surveys.php" - line 779


original:

return convertDateTimeFormat($this->$attribute, 'Y-m-d', $dateformatdata);


change:

return convertDateTimeFormat($this->$attribute, 'Y-m-d H:i:s.u', $dateformatdata);


Hope that helps until it is fixed.
The topic has been locked.
  • ollehar
  • ollehar's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
6 years 9 months ago #156174 by ollehar
Replied by ollehar on topic Error after update ( 2.66.0+170619)
Hi,

Thanks for reporting. Can you give us the exact URL where the problem happens, please?
The topic has been locked.
More
6 years 9 months ago #156175 by crowland
Replied by crowland on topic Error after update ( 2.66.0+170619)
/index.php/admin/survey/sa/listsurveys
The topic has been locked.
  • ollehar
  • ollehar's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
6 years 9 months ago #156176 by ollehar
Replied by ollehar on topic Error after update ( 2.66.0+170619)
OK, thanks. Can you enable debug = 2 and give us the error message, please? If any.
The topic has been locked.
More
6 years 9 months ago #156177 by frederikprijck
Replied by frederikprijck on topic Error after update ( 2.66.0+170619)
I confirm, I'm having the same error:

Fatal error: Call to a member function format() on boolean in ...\application\helpers\common_helper.php on line 3897
The topic has been locked.
More
6 years 9 months ago #156179 by crowland
Replied by crowland on topic Error after update ( 2.66.0+170619)
Yes, same here. I then traced it back to the call to convertDateTimeFormat in this file "application/models/surveys.php" - line 779
The topic has been locked.
  • ollehar
  • ollehar's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
6 years 9 months ago #156180 by ollehar
Replied by ollehar on topic Error after update ( 2.66.0+170619)
Fixing commit: github.com/LimeSurvey/LimeSurvey/commit/...dd2449d572c3cbc24033

Please monkey patch manually or wait for us to release.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose