I faced a strange issue after upgrade Ari Quiz. When I create any question in admin panel and save it and then try to open for editing I get error 500. I investigated DB tables and found in table ariquizquestionversion that questions created on old versions has structure in field "Data" like that:
Code: |
<answers>
<answer id="58e3ab12085c69.43198081">kghsdfkjghjfsghas</answer>
<answer id="58e3ab12086d18.73755191" correct="true">lfkghskjghsdghsldgs</answer>
<answer id="58e3ab12087385.23931933">shsahdglsdhglashg</answer>
</answers>
|
But new versions (including latest 3.9.16) creates structure like that:
Code: |
<?xml version="1.0" encoding="utf-8"?>
<answers><answer id="5ae8cecaa45d51.83029303"><0>hdfdhsd</0></answer><answer id="5ae8cecaa69711.58065869" correct="true"><0>dfhdsfds</0></answer><answer id="5ae8cecaa750f8.88023936"><0>fhsdfhd</0></answer></answers>
|
And when I manualy remove tags <0></0> - the questtion opens normally in backend.
So my question is how to resolve this problem?