?
avatar dpaya
dpaya
13 Apr 2017

Steps to reproduce the issue

Content->Fields->New->Type=List

Add values to List Values

Text
Value

Manuel Gómez Padilla

Manuel Gómez Padilla

Victor Rico

Victor Rico

Expected result

Fields in edit article

Actual result

Warning: SimpleXMLElement::__construct(): Entity: line 2: parser error : Entity 'oacute' not defined in /j7/libraries/joomla/form/form.php on line 72
Warning: SimpleXMLElement::__construct(): le="1" validate="options"><option value="Manuel Gómez Padilla">Manuel G&oacute; in /j7/libraries/joomla/form/form.php on line 729
Warning: SimpleXMLElement::__construct(): ^ in /j7/libraries/joomla/form/form.php on line 729

System information (as much as possible)

Database Version 5.7.17-0ubuntu0.16.04.1
Database Collation utf8_general_ci
Database Connection Collation utf8mb4_general_ci
PHP Version 7.0.15-0ubuntu0.16.04.4
Web Server Apache/2.4.18 (Ubuntu)
WebServer to PHP Interface apache2handler
Joomla! Version Joomla! 3.7.0-rc2 Release Candidate [ Amani ] 12-April-2017 08:18 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User Agent Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/57.0.2987.98 Chrome/57.0.2987.98 Safari/537.36

Additional comments

screen shot 2017-04-13 at 15 44 23
In Fields when I add a text with accents in the list of values in the article edition the fields doesn't show because there is a problem with simpleXML.
screen shot 2017-04-13 at 15 45 35screen shot 2017-04-13 at 15 45 58

Votes

# of Users Experiencing Issue
0/1
Average Importance Score
5.00

avatar dpaya dpaya - open - 13 Apr 2017
avatar brianteeman
brianteeman - comment - 13 Apr 2017

i can confirm this issue on list fields

avatar dpaya dpaya - change - 13 Apr 2017
The description was changed
avatar dpaya dpaya - edited - 13 Apr 2017
avatar dpaya dpaya - change - 13 Apr 2017
The description was changed
avatar brianteeman brianteeman - change - 13 Apr 2017
The description was changed
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-04-13 15:57:55
Closed_By brianteeman
avatar brianteeman brianteeman - close - 13 Apr 2017
avatar brianteeman
brianteeman - comment - 13 Apr 2017

Same problem with checkbox fields

avatar brianteeman brianteeman - change - 13 Apr 2017
Status Closed New
Closed_Date 2017-04-13 15:57:55
Closed_By brianteeman
avatar brianteeman brianteeman - reopen - 13 Apr 2017
avatar esedic
esedic - comment - 13 Apr 2017

Looks like XML string needs to be decoded.
If you change line 728 in file libraries/joomla/form/form.php from
$data = new SimpleXMLElement($data);
to
$data = new SimpleXMLElement(html_entity_decode($data, ENT_QUOTES, "utf-8"));
warning is gone.

avatar zero-24
zero-24 - comment - 13 Apr 2017

@esedic can you send this fix as PR against the staging repo?

avatar esedic
esedic - comment - 13 Apr 2017

Done.

avatar zero-24
zero-24 - comment - 13 Apr 2017

Thanks. Closing as we have a PR by @esedic

avatar zero-24 zero-24 - change - 13 Apr 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-04-13 20:28:23
Closed_By zero-24
avatar zero-24 zero-24 - close - 13 Apr 2017

Add a Comment

Login with GitHub to post a comment