Welcome to the LimeSurvey Community Forum

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

Fatal error: Call to a member function format() on boolean in /var/www/html/lime

  • mferraz
  • mferraz's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
6 years 9 months ago #155556 by mferraz
Hi.

Recently I'm getting the following error that I think is related to the date format of a survey:

Fatal error: Call to a member function format() on boolean in /var/www/html/limesurvey/application/helpers/expressions/em_manager_helper.php on line 8704

Call Stack
# Time Memory Function Location
1 0.0000 274088 {main}( ) ../index.php:0
2 0.0338 17998456 CApplication->run( ) ../index.php:214
3 0.0340 18020672 CWebApplication->processRequest( ) ../CApplication.php:185
4 0.0340 18020792 CWebApplication->runController( ) ../CWebApplication.php:141
5 0.1599 22367656 CController->run( ) ../CWebApplication.php:282
6 0.1636 22688664 CController->runActionWithFilters( ) ../CController.php:265
7 0.1636 22688776 CController->runAction( ) ../CController.php:286
8 0.1636 22688856 CAction->runWithParams( ) ../CController.php:308
9 0.1636 22689680 index->run( ) ../CAction.php:76
10 0.3184 24356856 index->action( ) ../index.php:70
11 0.3269 24655272 SurveyRuntimeHelper->run( ) ../index.php:611
12 0.3686 33527312 LimeExpressionManager::NavigateForwards( ) ../SurveyRuntimeHelper.php:569
13 0.3687 33489512 LimeExpressionManager::ProcessCurrentResponses(
)
../em_manager_helper.php:5168


This survey was working without issues before the latest update 2.65.1

Thank you in advance.
The topic has been locked.
  • ollehar
  • ollehar's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
6 years 9 months ago #155578 by ollehar
Hi,

Sorry for the trouble. I need to know the date format you entered for this question.
The topic has been locked.
  • ollehar
  • ollehar's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
6 years 9 months ago #155579 by ollehar
Maybe you can attach your survey?
The topic has been locked.
  • mferraz
  • mferraz's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
6 years 9 months ago #155582 by mferraz
Hi.

Thank you for your reply, I've attached the survey.

I'm using the date format yyyy-mm-dd but I've tried to change the format without any different result.

I'm using php 5.6

I'm also using the following third party plugins:
arrayTextAdapt
Shibboleth


Again, thank you!
The topic has been locked.
  • ollehar
  • ollehar's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
6 years 9 months ago #155583 by ollehar
I can reproduce this. Will fix.
The topic has been locked.
  • mferraz
  • mferraz's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
6 years 9 months ago #155584 by mferraz
The topic has been locked.
  • ollehar
  • ollehar's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
6 years 9 months ago #155587 by ollehar
Don't thank me too much - I caused the bug. ;)

I could reproduce it, but now I can't. Did you enter a specific date for the first date question (G1Q00005)? Or do you get the exception for all dates?
The topic has been locked.
  • ollehar
  • ollehar's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
6 years 9 months ago #155588 by ollehar
Nevermind, I found out it throws exception for dates in July.
The topic has been locked.
  • mferraz
  • mferraz's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
6 years 9 months ago #155590 by mferraz
I was about to say that :) I've selected any day in July.
The topic has been locked.
  • ollehar
  • ollehar's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
6 years 9 months ago #155591 by ollehar
And now I can't reproduce again... Am I going crazy?
The topic has been locked.
  • mferraz
  • mferraz's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
6 years 9 months ago #155593 by mferraz
LOL! That's really strange, I could reproduce it every time :)
The topic has been locked.
  • ollehar
  • ollehar's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
6 years 9 months ago #155594 by ollehar
Yeah, the error appeared again. Maybe it's at specific time stamps... ><

Anyway, seems like the client is sending the server wrong date sometimes. I pick a date in July and get "2017-06-07 00:00" - which is today, but in the wrong format, so the server freaks out.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose