[SAC] [OSGeo] #2522: LimeSurvey instance: missing XML support in PHP

#2522: LimeSurvey instance: missing XML support in PHP
---------------------------+-----------------------------
Reporter: jgrocha | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone: Unplanned
Component: Systems Admin | Keywords: LimeSurvey, PHP
---------------------------+-----------------------------
Hi,

=== The problem
For some operations, like import and export, !LimeSurvey uses XML encoded
files. Right now, these operations are failing with the following error:

**XMLWriter class not compiled into PHP, please contact your system
administrator
**
=== Possible solution

For what I've found related with this [https://forums.limesurvey.org/forum
/design-issues/96452-xmlwriter-class-not-compiled-into-php-problem error],
eventually this can be fixed by installing `php-xml`.

=== Test

To test the XML support:
0. Login into our [https://limesurvey.osgeo.org LimeSurvey] instance
1. List all surveys
2. Click on the Configuration icon for a survey
3. Choose !Display/Export option
4. Choose Survey structure (.lss)
5. Check if the generated file is a XML file

Thanks!

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2522&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2522: LimeSurvey instance: missing XML support in PHP
-----------------------------+------------------------
Reporter: jgrocha | Owner: sac@…
     Type: task | Status: new
Priority: critical | Milestone: Unplanned
Component: Systems Admin | Resolution:
Keywords: LimeSurvey, PHP |
-----------------------------+------------------------
Changes (by jgrocha):

* priority: normal => critical

Comment:

It really helps to have this support in the Limesurvey instance.

It seems like a easy fix.

Can someone try to install this php-xml module?

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2522#comment:1&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2522: LimeSurvey instance: missing XML support in PHP
-----------------------------+------------------------
Reporter: jgrocha | Owner: robe
     Type: task | Status: new
Priority: critical | Milestone: Unplanned
Component: Systems Admin | Resolution:
Keywords: LimeSurvey, PHP |
-----------------------------+------------------------
Changes (by robe):

* owner: sac@… => robe

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2522#comment:2&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2522: LimeSurvey instance: missing XML support in PHP
-----------------------------+------------------------
Reporter: jgrocha | Owner: robe
     Type: task | Status: new
Priority: critical | Milestone: Unplanned
Component: Systems Admin | Resolution:
Keywords: LimeSurvey, PHP |
-----------------------------+------------------------

Comment (by robe):

I think it's time I reset limesurvey from scratch on debian10.
Unfortunately it's not as simple as installing php-xml since this is a
funtoo system, and I'm having some issue doing an emerge.

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2522#comment:3&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2522: LimeSurvey instance: missing XML support in PHP
-----------------------------+------------------------
Reporter: jgrocha | Owner: robe
     Type: task | Status: new
Priority: critical | Milestone: Unplanned
Component: Systems Admin | Resolution:
Keywords: LimeSurvey, PHP |
-----------------------------+------------------------

Comment (by robe):

I resetup limesurvey on debian10 with php 7.4 and PostgreSQL 13 and then
restored the database backup. It is now on osgeo3.

Can you see if the things you need are present. I couldn't follow the
Configuration icon part. You might not be able to hit it for 24 hrs since
it might take some time for the dns to propagate if you have visited
recently. I shut down the old one to make sure no one is hitting the old
one.

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2522#comment:4&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2522: LimeSurvey instance: missing XML support in PHP
-----------------------------+------------------------
Reporter: jgrocha | Owner: robe
     Type: task | Status: closed
Priority: critical | Milestone: Unplanned
Component: Systems Admin | Resolution: fixed
Keywords: LimeSurvey, PHP |
-----------------------------+------------------------
Changes (by robe):

* status: new => closed
* resolution: => fixed

Comment:

Okay figured out where the config icon is and did a export .lss format and
the file contents look like XML. So I assume this is all set.

Since I did a upgrade to latest micro stable Lime and also moved, would be
a good idea to test to make sure everything is still functioning.

Feel free to reopen if still an issue.

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2522#comment:5&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2522: LimeSurvey instance: missing XML support in PHP
-----------------------------+------------------------
Reporter: jgrocha | Owner: robe
     Type: task | Status: closed
Priority: critical | Milestone: Unplanned
Component: Systems Admin | Resolution: fixed
Keywords: LimeSurvey, PHP |
-----------------------------+------------------------

Comment (by jgrocha):

It wasn't as easy as I expected :frowning:

I've tested it carefully and everything is working.

Thank you so much, Regina.

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2522#comment:6&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2522: LimeSurvey instance: missing XML support in PHP
-----------------------------+---------------------------------------
Reporter: jgrocha | Owner: robe
     Type: task | Status: closed
Priority: critical | Milestone: Sysadmin Contract 2021-I
Component: Systems Admin | Resolution: fixed
Keywords: LimeSurvey, PHP |
-----------------------------+---------------------------------------
Changes (by robe):

* milestone: Unplanned => Sysadmin Contract 2021-I

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2522#comment:7&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.