0 votes
in Datenauswertung by s149335 (355 points)

Hallo liebes SoSci Survey Support Team,

nachdem ich für einzelne CASE-Fälle funktionierende Ergebnisberichte anhand der vorliegenden Testdaten erzeugen konnte, probierte ich das nun im Pretest und erhalte Fehler.

Natürlich habe ich den CASE-Fall bzw. die CASE-Filterung für den aktuellen Ergebnisbericht herausgeholt (CASE = 0).

Folgende PHP-Funktionen verwende ich:
- svgSetStyle
- add
- sampleMean
- value
- array_sum
- floor

Das hatte auch alles direkt bei der Ergebnisbericht-Bearbeitung funktioniert. Aber nicht im Pretest. Da kommt dann der Fehler, den ich unten aufgeführt habe.

Wie kann ich den Fehler umgehen? Ich möchte, dass 1-n Ergebnisberichte (verschiedene) am Ende des Fragebogens dynamisch angepasst werden. Dazu gestalte ich SVG-Grafiken, ab hängig von den Daten (sampleMean, value, Berechnungen etc). Geht das generell nicht, oder welchen Fehler mache ich? Mit ausgewählten CASE-Nummern ging jedoch die dynamische Ergebnisbericht-Anpassung problemlos.

Viele Grüße

Fatal error: Uncaught TypeError: Argument 1 passed to DataFilter::construct() must be an instance of Project, null given, called in /var/www/s2survey/html/inc/DataFilter.php on line 315 and defined in /var/www/s2survey/html/inc/DataFilter.php:50 Stack trace: #0 /var/www/s2survey/html/inc/DataFilter.php(315): DataFilter->construct(NULL) #1 /var/www/s2survey/html/inc/Report.php(125): DataFilter::instanceWake(Array) #2 /var/www/s2survey/html/inc/ReportGenerator.php(395): Report->getDataFilter() #3 /var/www/s2survey/html/inc/PHPCodeData.php(246): ReportGenerator->getDataFilter() #4 /var/www/s2survey/html/inc/PHPCodeData.php(235): PHPCodeData::getGroupFrequencies('all') #5 /var/www/s2survey/html/inc/ReportPHPCode.php(764): PHPCodeData::getFrequencies('MO04_01', 'all') #6 /var/www/s2survey/html/lib/s2survey/phpcode/PHPCodeExecutor.php(537) : eval()'d code(18): sampleMean('MO04_01') #7 /var/www/s2survey/html/lib/s2survey/phpcode/PHPCodeExecutor.php(537): eval() #8 /var/www/s2survey/html/inc/ReportPHPCode.php(255): s2survey\p in /var/www/s2survey/html/inc/DataFilter.php on line 50 Error message of type 1 seems not to reference eval'd code:
Uncaught TypeError: Argument 1 passed to DataFilter::construct() must be an instance of Project, null given, called in /var/www/s2survey/html/inc/DataFilter.php on line 315 and defined in /var/www/s2survey/html/inc/DataFilter.php:50 Stack trace: #0 /var/www/s2survey/html/inc/DataFilter.php(315): DataFilter->construct(NULL) #1 /var/www/s2survey/html/inc/Report.php(125): DataFilter::instanceWake(Array) #2 /var/www/s2survey/html/inc/ReportGenerator.php(395): Report->getDataFilter() #3 /var/www/s2survey/html/inc/PHPCodeData.php(246): ReportGenerator->getDataFilter() #4 /var/www/s2survey/html/inc/PHPCodeData.php(235): PHPCodeData::getGroupFrequencies('all') #5 /var/www/s2survey/html/inc/ReportPHPCode.php(764): PHPCodeData::getFrequencies('MO04_01', 'all') #6 /var/www/s2survey/html/lib/s2survey/phpcode/PHPCodeExecutor.php(537) : eval()'d code(18): sampleMean('MO04_01') #7 /var/www/s2survey/html/lib/s2survey/phpcode/PHPCodeExecutor.php(537): eval() #8 /var/www/s2survey/html/inc/ReportPHPCode.php(255): s2survey\p in /var/www/s2survey/html/inc/DataFilter.php on line 50

1 Answer

0 votes
by SoSci Survey (305k points)

Ich konnte das Problem noch nicht replizieren, es womöglich aber beheben. Könnten Sie bitte einmal testen, ob es noch auftritt? Danke.

Willkommen im Online-Support von SoSci Survey.

Hier bekommen Sie schnelle und fundierte Antworten von anderen Projektleitern und direkt von SoSci Survey.

→ Eine Frage stellen


Welcome to the SoSci Survey online support.

Simply ask a question to quickly get answers from other professionals, and directly from SoSci Survey.

→ Ask a Question

...