Error after update ( 2.66.0+170619)

More
3 months 4 weeks ago #156123 by acury
acury created the topic: Error after update ( 2.66.0+170619)
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

Please Log in to join the conversation.

More
3 months 3 weeks ago #156158 by crowland
crowland replied the 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.

Please Log in to join the conversation.

More
3 months 3 weeks ago #156174 by olle
olle replied the topic: Error after update ( 2.66.0+170619)
Hi,

Thanks for reporting. Can you give us the exact URL where the problem happens, please?

Please Log in to join the conversation.

More
3 months 3 weeks ago #156175 by crowland
crowland replied the topic: Error after update ( 2.66.0+170619)
/index.php/admin/survey/sa/listsurveys

Please Log in to join the conversation.

More
3 months 3 weeks ago #156176 by olle
olle replied the topic: Error after update ( 2.66.0+170619)
OK, thanks. Can you enable debug = 2 and give us the error message, please? If any.

Please Log in to join the conversation.

More
3 months 3 weeks ago #156177 by frederikprijck
frederikprijck replied the 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

Please Log in to join the conversation.

More
3 months 3 weeks ago #156179 by crowland
crowland replied the 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

Please Log in to join the conversation.

More
3 months 3 weeks ago #156180 by olle
olle replied the 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.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now