View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
19894 | Bug reports | Other | public | 2024-12-16 17:15 | 2024-12-18 17:51 |
Reporter | tassoman | Assigned To | |||
Priority | none | Severity | minor | ||
Status | new | Resolution | open | ||
Product Version | 6.6.x | ||||
Summary | 19894: Calling "__tostring" method on a "SimpleXMLElement" object is not allowed | ||||
Description | While editing new theme by hands, I tried to dump(aSurveyInfo) variable. Version is 6.8.2+241203 (missing product version in bug tracker) Twig\Sandbox\SecurityNotAllowedMethodError Calling "tostring" method on a "SimpleXMLElement" object is not allowed in "string_template__b85a9d86339e4b676595fbe968ac295f" at line 234. | ||||
Steps To Reproduce | Steps to reproduce
Expected resultI wanted to dump survey data Actual resulterror stacktrace, see attached image | ||||
Tags | theme, twig | ||||
Attached Files | |||||
Bug heat | 2 | ||||
Complete LimeSurvey version number (& build) | 6.8.2+241203 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Any | ||||
Database type & version | Mysql 5.7.x | ||||
Server OS (if known) | |||||
Webserver software & version (if known) | |||||
PHP Version | 8.2.26 | ||||
Found this on PHP Manual (about PHP 8.x) |
|
By removing force_xmlsettings_for_survey_rendering configuration, I got a similar error. That's because confinguration is an object.
To debug like this, i usually do |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2024-12-16 17:15 | tassoman | New Issue | |
2024-12-16 17:15 | tassoman | File Added: Screenshot 2024-12-16 at 17-08-45 Twig_Sandbox_SecurityNotAllowedMethodError.png | |
2024-12-16 17:17 | tassoman | Tag Attached: twig | |
2024-12-16 17:17 | tassoman | Tag Attached: theme | |
2024-12-18 17:13 | tassoman | Note Added: 81659 | |
2024-12-18 17:13 | tassoman | Bug heat | 0 => 2 |
2024-12-18 17:51 | tassoman | Note Added: 81660 |