View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 06528 | Bug reports | Survey editing | public | 2012-08-30 09:07 | 2012-09-20 14:12 |
| Reporter | Peleke | Assigned To | c_schmitz | ||
| Priority | normal | Severity | block | ||
| Status | closed | Resolution | fixed | ||
| Product Version | 1.92+ | ||||
| Fixed in Version | 1.92+ | ||||
| Summary | 06528: 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. | ||||
| 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. | ||||
| Tags | No tags attached. | ||||
| Bug heat | 6 | ||||
| Complete LimeSurvey version number (& build) | 120725 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | |||||
| Database type & version | MySQL | ||||
| Server OS (if known) | Debian | ||||
| Webserver software & version (if known) | Apache 2.2 | ||||
| PHP Version | 5.3 | ||||
| Git branch / Pull Request URL | |||||
|
Please update to the latest version first and let us know if the issue persists. |
|
|
Yes, same problem with 120822 |
|
|
Did you clear your browser cache after update? Please do and try again. |
|
|
Yes, same problem |
|
|
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? |
|
|
Sorry I mean if I want to use CSS styles like text-align: center; for example I get the error. |
|
|
Can please post exactly the string you are entereing that leads to the error? |
|
|
For example: <p style="text-align: center;"> Stimme vollkommen zu While Stimme vollkommen zu works. |
|
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=9491 |
|
|
Fix committed to Yii branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=9492 |
|
|
The problem was the tab character in your text. Just remove it and everything else will save just fine. |
|
|
Okay, thanks. It was inserted automatically. |
|
|
LimeSurvey: master baf844ac 2012-09-13 17:28 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 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 | ||
| 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 |