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

Mehr
5 Monate 1 Woche her #155556 von mferraz
mferraz erstellte das Thema Fatal error: Call to a member function format() on boolean in /var/www/html/lime
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.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
5 Monate 1 Woche her #155578 von olle
olle antwortete auf das Thema: Fatal error: Call to a member function format() on boolean in /var/www/html/lime
Hi,

Sorry for the trouble. I need to know the date format you entered for this question.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
5 Monate 1 Woche her #155579 von olle
olle antwortete auf das Thema: Fatal error: Call to a member function format() on boolean in /var/www/html/lime
Maybe you can attach your survey?

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
5 Monate 1 Woche her #155582 von mferraz
mferraz antwortete auf das Thema: Fatal error: Call to a member function format() on boolean in /var/www/html/lime
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!
Anhang:

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
5 Monate 1 Woche her #155583 von olle
olle antwortete auf das Thema: Fatal error: Call to a member function format() on boolean in /var/www/html/lime
I can reproduce this. Will fix.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
5 Monate 1 Woche her #155584 von mferraz
mferraz antwortete auf das Thema: Fatal error: Call to a member function format() on boolean in /var/www/html/lime
Thank you again!

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
5 Monate 1 Woche her #155587 von olle
olle antwortete auf das Thema: Fatal error: Call to a member function format() on boolean in /var/www/html/lime
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?

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
5 Monate 1 Woche her #155588 von olle
olle antwortete auf das Thema: Fatal error: Call to a member function format() on boolean in /var/www/html/lime
Nevermind, I found out it throws exception for dates in July.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
5 Monate 1 Woche her #155590 von mferraz
mferraz antwortete auf das Thema: Fatal error: Call to a member function format() on boolean in /var/www/html/lime
I was about to say that :) I've selected any day in July.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
5 Monate 1 Woche her #155591 von olle
olle antwortete auf das Thema: Fatal error: Call to a member function format() on boolean in /var/www/html/lime
And now I can't reproduce again... Am I going crazy?

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
5 Monate 1 Woche her #155593 von mferraz
mferraz antwortete auf das Thema: Fatal error: Call to a member function format() on boolean in /var/www/html/lime
LOL! That's really strange, I could reproduce it every time :)

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
5 Monate 1 Woche her #155594 von olle
olle antwortete auf das Thema: Fatal error: Call to a member function format() on boolean in /var/www/html/lime
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.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
5 Monate 1 Woche her #155595 von mferraz
mferraz antwortete auf das Thema: Fatal error: Call to a member function format() on boolean in /var/www/html/lime
Also, I've tried now with different months, and I could reproduce the problem again.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
5 Monate 1 Woche her #155603 von olle
olle antwortete auf das Thema: Fatal error: Call to a member function format() on boolean in /var/www/html/lime
Yeah, I think it's the HIDDEN date question that's the problem.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
5 Monate 1 Woche her #155616 von mferraz
mferraz antwortete auf das Thema: Fatal error: Call to a member function format() on boolean in /var/www/html/lime
You're right, I've removed the hidden date option, and that solved the issue.

But I think that it's better to have this date hidden so the user can't change the date.

Bitte Anmelden um an der Konversation teilzunehmen.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha