Project

General

Profile

Actions

Bug #13818

closed

htmlspecialchars_decode() - expects parameter 1 to be string, array given

Added by Carsten Rose 10 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Carsten Rose
Target version:
Start date:
18.02.2022
Due date:
% Done:

100%

Estimated time:
Discuss:
Prio Planung:
No

Description

UniqId:: 620f53c7c6971
------------------------------------------------
toUser:: General error - please report.
support:: File: /var/www/html/exam2/typo3conf/ext/qfq/Classes/Core/Helper/Support.php / Line: 1493 / htmlspecialchars_decode() expects parameter 1 to be string, array given
Timestamp:: 2022.02.18 09:07:35 +0100
Code:: 2
Message:: General error - please report.
Type:: Code Exception
current sip:: array (
  '__dbIndexData' => '1',
  'examId' => '119',
  'form' => 'ExamStudent',
  'r' => '12383',
  's' => '620f534053970',
  'urlparam' => '__dbIndexData=1&examId=119&form=ExamStudent&r=12383',
)
Page Id:: 143
Content Id:: 313
FE User:: crose
File:: /var/www/html/exam2/typo3conf/ext/qfq/Classes/Core/Exception/ErrorHandler.php
Line:: 42
CWD:: /var/www/html/exam2/typo3conf/ext/qfq/Classes/Api
IP Address:: 192.168.133.114
Stacktrace:: 
#1 /var/www/html/exam2/typo3conf/ext/qfq/Classes/Core/Helper/Support.php(1493): htmlspecialchars_decode()
#2 /var/www/html/exam2/typo3conf/ext/qfq/Classes/Core/AbstractBuildForm.php(865): IMATHUZH\Qfq\Core\Helper\Support::htmlEntityEncodeDecode()
#3 /var/www/html/exam2/typo3conf/ext/qfq/Classes/Core/AbstractBuildForm.php(396): IMATHUZH\Qfq\Core\AbstractBuildForm->elements()
#4 /var/www/html/exam2/typo3conf/ext/qfq/Classes/Core/BuildFormBootstrap.php(946): IMATHUZH\Qfq\Core\AbstractBuildForm->process()
#5 /var/www/html/exam2/typo3conf/ext/qfq/Classes/Core/QuickFormQuery.php(633): IMATHUZH\Qfq\Core\BuildFormBootstrap->process()
#6 /var/www/html/exam2/typo3conf/ext/qfq/Classes/Core/QuickFormQuery.php(1836): IMATHUZH\Qfq\Core\QuickFormQuery->doForm()
#7 /var/www/html/exam2/typo3conf/ext/qfq/Classes/Api/save.php(57): IMATHUZH\Qfq\Core\QuickFormQuery->saveForm()
==================================================

Actions #1

Updated by Enis Nuredini 10 months ago

  • Status changed from New to ToDo
Actions #2

Updated by Enis Nuredini 10 months ago

  • Status changed from ToDo to In Progress
Actions #3

Updated by Enis Nuredini 10 months ago

  • Status changed from In Progress to Feedback
  • Assignee changed from Enis Nuredini to Carsten Rose

Das Problem war der typeAheadSql welcher durch den Gebrauch von AS 'id' und 'value' automatisch ein Array mit beiden Werten drin (key, value) erzeugt. QFQ wird trotzdem komplett durchgeführt.
Das nichts im Formular merkbar ist liegt daran dass der Value Wert null beträgt nach dem encode/decode des Arrays und dieser keinen Impact auf das anzuzeigende Resultat hat.

Implementiert wurde eine Abfrage auf Array und resultierend wird nur der value wert des arrays rausgefiltert und durch den encode/decode geschickt. Branch kann angeschaut werden.

Actions #4

Updated by Carsten Rose 10 months ago

  • Tracker changed from Support to Bug
Actions #5

Updated by Carsten Rose 10 months ago

  • Status changed from Feedback to Closed
  • % Done changed from 0 to 100
Actions #6

Updated by Carsten Rose 10 months ago

  • Target version changed from next3 to 23.1.0

Vielen Dank.
Ich habe den Code leicht abgewandelt in Develop uebernommen.
Evtl. srpechen wir noch ein paar Details

Der Code ist schon produktiv in MY und RET.

CU
Carsten

Actions #7

Updated by Carsten Rose 7 months ago

  • Target version changed from 23.1.0 to 22.5.0
Actions #8

Updated by Carsten Rose 2 months ago

  • Target version changed from 22.5.0 to 22.10.0
  • Prio Planung set to No
Actions

Also available in: Atom PDF