View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
18404Bug reportsQuestion editorpublic2022-10-12 14:44
Reporterleober Assigned Togabrieljenik  
PriorityhighSeverityblock 
Status closedResolutionno change required 
Product Version5.4.x 
Summary18404: Error after copying question: Trying to property 'language' of non-object
Description

Your LimeSurvey version:
5.4.4 (Latest)

Own server or LimeSurvey hosting:
Own server (All resources are beyond what's needed)

Survey theme/template:
Custom

After copying a question from any survey, I get this error: "Trying to property 'language' of non-object." I updated to LimeSurvey 5.4.4, and now there is no option to copy questions. Am I missing something?

Steps To Reproduce

Step 1:
Go to surveys: /index.php/surveyAdministration/listsurveys

Step 2:
Select a survey

Step 3:
Select question list

Step 4:
Edit question

Step 5:
Tools > Copy question - I updated LimeSurvey to the latest version, and I don't see this option anymore. Is that option not available anymore in the latest version?

(Replace this text with detailed step-by-step instructions on how to reproduce the issue)

Expected result

Survey question copied

Actual result

I get this error: "Trying to property 'language' of non-object"

I'm attaching a screenshot of the actual error.

TagsNo tags attached.
Attached Files
PHP notice error.jpg (985,881 bytes)
Bug heat8
Complete LimeSurvey version number (& build)5.4.4
I will donate to the project if issue is resolvedYes
BrowserChrome / Version 106.0.5249.91
Database type & versionMariaDB - 10.3.36
Server OS (if known)Linux
Webserver software & version (if known)cPanel & WHM v106.0.8
PHP Version7.4

Relationships

related to 18394 confirmed Sometimes, when creating/copying questions, code dump can ocurr 
related to 18323 closedgabrieljenik When copying a question with sub-questions, the sub-questions are not copied 

Users monitoring this issue

leober

Activities

ollehar

ollehar

2022-10-07 09:22

administrator   ~72158

Is the survey active?
Copy action button might have moved to tool menu.

leober

leober

2022-10-07 12:06

reporter   ~72161

Yes, that's right.

My main issue after updating to the latest version 5.4.4 is that the error persists and now when I drag questions downward things get mucked up. It was a bad idea to update without testing, I might need to revert to a previous version.

Any thoughts?

ollehar

ollehar

2022-10-07 15:28

administrator   ~72163

Are you describing a separate bug related to organizing questions? That is, changing question position.

ollehar

ollehar

2022-10-07 15:29

administrator   ~72164

Which version did you update from?

gabrieljenik

gabrieljenik

2022-10-12 01:35

manager   ~72209

Does this happen with a plain simple survey?
Do you have a sample LSS to try to reproduce the issue?

leober

leober

2022-10-12 02:10

reporter   ~72210

I was able to fix the issue by deploying a new Moodle instance with the latest update. I had to manually replicate all the settings I have in the current instance. I assume that after updating, something went wrong in the database. Now everything is working as expected.

You can close the issue.

Thanks anyway for your help!

Issue History

Date Modified Username Field Change
2022-10-06 19:42 leober New Issue
2022-10-06 19:42 leober File Added: PHP notice error.jpg
2022-10-06 19:43 leober Issue Monitored: leober
2022-10-06 19:43 leober Bug heat 0 => 2
2022-10-07 09:21 ollehar Priority none => high
2022-10-07 09:22 ollehar Note Added: 72158
2022-10-07 09:22 ollehar Bug heat 2 => 4
2022-10-07 12:06 leober Note Added: 72161
2022-10-07 12:06 leober Bug heat 4 => 6
2022-10-07 15:28 ollehar Note Added: 72163
2022-10-07 15:29 ollehar Note Added: 72164
2022-10-12 01:30 gabrieljenik Relationship added related to 18394
2022-10-12 01:31 gabrieljenik Relationship added related to 18323
2022-10-12 01:35 gabrieljenik Note Added: 72209
2022-10-12 01:35 gabrieljenik Bug heat 6 => 8
2022-10-12 02:10 leober Note Added: 72210
2022-10-12 14:44 gabrieljenik Assigned To => gabrieljenik
2022-10-12 14:44 gabrieljenik Status new => closed
2022-10-12 14:44 gabrieljenik Resolution open => no change required