View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
18896 | Bug reports | Question editor | public | 2023-06-20 12:10 | 2024-08-30 15:07 |
Reporter | mferraz | Assigned To | c_schmitz | ||
Priority | none | Severity | partial_block | ||
Status | closed | Resolution | fixed | ||
Product Version | 6.1.x | ||||
Summary | 18896: SQL: SQLSTATE[22P02]: Invalid Text Representation: 7 ERROR: Invalid Input Syntax when creating a survey | ||||
Description | Hi, I'm getting the following error on this installation. I've opted for PostgreSQL, and I'm getting the following when I try to create a new survey. The survey is created, but it's always generating the error. Getting the same when I activate the survey.SQL: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for type integer: "" PHP 8.2 | ||||
Steps To Reproduce | Steps to reproduceCreate / Edit / Delete a survey with the Software versions described Expected resultManage a survey as expected Actual resultGetting the error "7 ERROR: invalid input syntax for type integer" | ||||
Tags | No tags attached. | ||||
Bug heat | 14 | ||||
Complete LimeSurvey version number (& build) | 6.1.4+230620 | ||||
I will donate to the project if issue is resolved | Yes | ||||
Browser | |||||
Database type & version | PostgreSQL 13+225 | ||||
Server OS (if known) | |||||
Webserver software & version (if known) | |||||
PHP Version | 8.2 | ||||
I cannot reproduce this at all, same version but with Postgres 15. Can you enable debug = 2 in application/config/config.php and try again, please? Paste the complete error message here. |
|
Hi. Sure: CDbException /opt/limesurvey/vendor/yiisoft/yii/framework/db/CDbCommand.php(543) 531 {
I'm now using PHP 8.1 instead of 8.2 (but getting the same error). |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=34865 |
|
Fixed in Release 6.1.5+230626 |
|
Hi, the problem seems to be back on Version 6.4.0+231218 |
|
Hi, the problem seems to be back on Version 6.4.0+231218 |
|
Hi. Any update on this? |
|
Hi. Still the same issue, even with a new survey. |
|
The same here: |
|
ok, it's worse with the last update, we get the following right after login: 500: Internal Server Error CDbCommand failed to execute the SQL statement: SQLSTATE[42883]: Undefined function: 7 ERROR: operator does not exist: boolean = integer |
|
This is a different error, I believe. |
|
Hi, should I close this bug report and open a new one, or does a report for that already exist? Thank you for your reply. |
|
We can confirm the issue described in comments 18896:79091 and 18896:79157. We are using Limesurvey 6.4.3, though looking a the current master code on GitHub doesn't make me hopeful this is fixed. We can however provide a scenario to reproduce this. Adding a subquestion triggers this error, though starting only with the second subquestion. I think what triggers this is generating a random question id in https://github.com/LimeSurvey/LimeSurvey/blob/master/application/controllers/QuestionAdministrationController.php#L722 and then trying to get a question object for this is https://github.com/LimeSurvey/LimeSurvey/blob/master/application/controllers/QuestionAdministrationController.php#L830. MySQL doesn't care a bit about any garbage it is passed (at least in the default settings) and will happily accept Most astonishing is that in that case at least the random issue is called to get an empty subquestion object with https://github.com/LimeSurvey/LimeSurvey/blob/master/application/models/Question.php#L1654, which doesn't seem to care at all about any attribute from the object it is called from, though I am not a php developer and might be missing something. I hope this analysis will help bring a resolution for this issue forward. |
|
I can confirm, that with version 6.4.6 the bug has gone in our installation. |
|
We are on version 6.4.5 and this problem does not happen anymore. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2023-06-20 12:10 | mferraz | New Issue | |
2023-06-20 12:11 | mferraz | Issue Monitored: mferraz | |
2023-06-20 12:11 | mferraz | Bug heat | 0 => 2 |
2023-06-20 15:24 | c_schmitz | Assigned To | => c_schmitz |
2023-06-20 15:24 | c_schmitz | Status | new => assigned |
2023-06-20 15:33 | c_schmitz | Status | assigned => feedback |
2023-06-20 15:33 | c_schmitz | Note Added: 75741 | |
2023-06-20 15:33 | c_schmitz | Bug heat | 2 => 4 |
2023-06-20 15:36 | mferraz | Note Added: 75744 | |
2023-06-20 15:36 | mferraz | Bug heat | 4 => 6 |
2023-06-20 15:36 | mferraz | Status | feedback => assigned |
2023-06-20 16:54 | c_schmitz | Changeset attached | => LimeSurvey master 2e4e644d |
2023-06-20 16:54 | c_schmitz | Note Added: 75747 | |
2023-06-20 16:54 | c_schmitz | Resolution | open => fixed |
2023-06-20 16:54 | c_schmitz | Status | assigned => resolved |
2023-06-26 12:02 | LimeBot | Note Added: 75853 | |
2023-06-26 12:02 | LimeBot | Status | resolved => closed |
2023-06-26 12:02 | LimeBot | Bug heat | 6 => 8 |
2024-01-03 18:27 | mferraz | Note Added: 79091 | |
2024-01-03 18:27 | mferraz | File Added: image-1 (1).png | |
2024-01-04 16:49 | mferraz | Status | closed => feedback |
2024-01-04 16:49 | mferraz | Resolution | fixed => reopened |
2024-01-04 16:49 | mferraz | Note Added: 79093 | |
2024-01-09 14:36 | mferraz | Note Added: 79114 | |
2024-01-09 14:36 | mferraz | Status | feedback => assigned |
2024-01-12 16:38 | mferraz | Note Added: 79157 | |
2024-01-12 16:38 | mferraz | File Added: image.png | |
2024-01-15 13:06 | mmilinovsky | Note Added: 79164 | |
2024-01-15 13:06 | mmilinovsky | Bug heat | 8 => 10 |
2024-01-15 17:40 | mferraz | Note Added: 79169 | |
2024-01-16 10:08 | ollehar | Note Added: 79173 | |
2024-01-16 10:08 | ollehar | Bug heat | 10 => 12 |
2024-01-16 10:14 | mferraz | Note Added: 79175 | |
2024-01-29 09:03 | mmilinovsky | Issue Monitored: mmilinovsky | |
2024-01-29 09:03 | mmilinovsky | Bug heat | 12 => 14 |
2024-02-10 23:39 | thegcat | Note Added: 79442 | |
2024-02-10 23:39 | thegcat | Bug heat | 14 => 16 |
2024-02-16 11:22 | mmilinovsky | Note Added: 79535 | |
2024-02-16 11:23 | mmilinovsky | Issue End Monitor: mmilinovsky | |
2024-02-16 11:23 | mmilinovsky | Bug heat | 16 => 14 |
2024-02-16 12:15 | thegcat | Note Added: 79536 | |
2024-02-19 14:04 | c_schmitz | Status | assigned => resolved |
2024-02-19 14:04 | c_schmitz | Resolution | reopened => fixed |
2024-08-30 15:07 | c_schmitz | Status | resolved => closed |