View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
06528Bug reportsSurvey editingpublic2012-09-20 14:12
ReporterPeleke Assigned Toc_schmitz  
PrioritynormalSeverityblock 
Status closedResolutionfixed 
Product Version1.92+ 
Fixed in Version1.92+ 
Summary06528: Save changes on label set results in a php warning array_unique()
Description

When I change something on a label set it results in the following PHP warning:

Notice: Trying to get property of non-object in /srv/www/htdocs/domain/admin/labels.php on line 616 Warning: array_unique(): The argument should be an array in /srv/www/htdocs/domain/admin/labels.php on line 616 Notice: Trying to get property of non-object in /srv/www/htdocs/ifo-landau/admin/labels.php on line 616

This happens after hitting the save changes button. Every change is discarded so I am not able to change any label set (but I can create new which will be empty).

Steps To Reproduce

Edit or create a label set.
Enter something and stlye the labels.
Hit the save changes button.

Additional Information

This bug was already reported and closed as bug 05954 but it still happens and cannot be solved by cleaning the cache:

I think this bug is not only related to the cache because I have the same error message but only when I try to add styles to labels (simple text can be saved without errors) and I have tested it with three different browsers (Firefox, Chrome and Safari) and cleaned cache.

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)120725
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL
Server OS (if known)Debian
Webserver software & version (if known)Apache 2.2
PHP Version5.3

Users monitoring this issue

Peleke

Activities

c_schmitz

c_schmitz

2012-09-09 15:55

administrator   ~20647

Please update to the latest version first and let us know if the issue persists.
Thank you.

Peleke

Peleke

2012-09-10 17:51

reporter   ~20654

Yes, same problem with 120822

c_schmitz

c_schmitz

2012-09-12 14:34

administrator   ~20658

Did you clear your browser cache after update? Please do and try again.

Peleke

Peleke

2012-09-12 22:19

reporter   ~20662

Yes, same problem

c_schmitz

c_schmitz

2012-09-13 15:04

administrator   ~20680

You wrote: "I think this bug is not only related to the cache because I have the same error message but only when I try to add styles to labels (simple text can be saved without errors) and I have tested it with three different browsers (Firefox, Chrome and Safari) and cleaned cache."

So the bug is only reproducable if you enter 'styles' ?

What exactly do you mean by that? What exactly are you entering?

Peleke

Peleke

2012-09-13 18:15

reporter   ~20682

Sorry I mean if I want to use CSS styles like text-align: center; for example I get the error.

c_schmitz

c_schmitz

2012-09-13 20:33

administrator   ~20684

Can please post exactly the string you are entereing that leads to the error?

Peleke

Peleke

2012-09-13 22:53

reporter   ~20686

For example:

<p style="text-align: center;"> Stimme vollkommen zu

While

Stimme vollkommen zu

works.

c_schmitz

c_schmitz

2012-09-14 00:28

administrator   ~20687

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=9491

c_schmitz

c_schmitz

2012-09-14 00:29

administrator   ~20688

Fix committed to Yii branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=9492

c_schmitz

c_schmitz

2012-09-14 00:29

administrator   ~20689

The problem was the tab character in your text. Just remove it and everything else will save just fine.

Peleke

Peleke

2012-09-14 11:05

reporter   ~20696

Okay, thanks. It was inserted automatically.
Great support!

Related Changesets

LimeSurvey: master baf844ac

2012-09-13 17:28

c_schmitz


Details Diff
Fixed issue 06528: Save changes on label set results in a php warning when text contains a tab character Affected Issues
06528
mod - admin/labels.php Diff File

LimeSurvey: Yii 43b8d444

2012-09-13 17:29

c_schmitz


Details Diff
Fixed issue 06528: Save changes on label set results in a php warning when text contains a tab character Affected Issues
06528
mod - application/helpers/admin/label_helper.php Diff File

Issue History

Date Modified Username Field Change
2012-08-30 09:07 Peleke New Issue
2012-08-30 09:07 Peleke Issue Monitored: Peleke
2012-09-09 15:55 c_schmitz Note Added: 20647
2012-09-09 15:55 c_schmitz Assigned To => c_schmitz
2012-09-09 15:55 c_schmitz Status new => feedback
2012-09-10 17:51 Peleke Note Added: 20654
2012-09-10 17:51 Peleke Status feedback => assigned
2012-09-12 14:34 c_schmitz Note Added: 20658
2012-09-12 14:34 c_schmitz Status assigned => feedback
2012-09-12 22:19 Peleke Note Added: 20662
2012-09-12 22:19 Peleke Status feedback => assigned
2012-09-13 15:04 c_schmitz Note Added: 20680
2012-09-13 15:04 c_schmitz Status assigned => feedback
2012-09-13 18:15 Peleke Note Added: 20682
2012-09-13 18:15 Peleke Status feedback => assigned
2012-09-13 20:33 c_schmitz Note Added: 20684
2012-09-13 20:33 c_schmitz Status assigned => feedback
2012-09-13 22:53 Peleke Note Added: 20686
2012-09-13 22:53 Peleke Status feedback => assigned
2012-09-14 00:28 c_schmitz Changeset attached => LimeSurvey master baf844ac
2012-09-14 00:28 c_schmitz Note Added: 20687
2012-09-14 00:28 c_schmitz Resolution open => fixed
2012-09-14 00:29 c_schmitz Changeset attached => LimeSurvey Yii 43b8d444
2012-09-14 00:29 c_schmitz Note Added: 20688
2012-09-14 00:29 c_schmitz Note Added: 20689
2012-09-14 00:29 c_schmitz Status assigned => resolved
2012-09-14 00:29 c_schmitz Fixed in Version => 1.92+
2012-09-14 11:05 Peleke Note Added: 20696
2012-09-20 14:12 c_schmitz Status resolved => closed
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing
2021-08-03 21:37 guest Bug heat 4 => 6