<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 232: Response to radio button lost on section fwd/back with 2.1.4.Alex</title><link>https://sourceforge.net/p/phpesp/bugs/232/</link><description>Recent changes to 232: Response to radio button lost on section fwd/back with 2.1.4.Alex</description><atom:link href="https://sourceforge.net/p/phpesp/bugs/232/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 21 Oct 2014 14:54:53 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/phpesp/bugs/232/feed.rss" rel="self" type="application/rss+xml"/><item><title>#232 Response to radio button lost on section fwd/back with 2.1.4.Alex</title><link>https://sourceforge.net/p/phpesp/bugs/232/?limit=50#4109</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Matthew, yes I think that would be a good idea.&lt;br /&gt;
And anybody willing to help maintaining the github branch is of course welcome.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Franky Van Liedekerke</dc:creator><pubDate>Tue, 21 Oct 2014 14:54:53 -0000</pubDate><guid>https://sourceforge.netc56d359e4c96c95deb021f24f3b9da3035786c44</guid></item><item><title>#232 Response to radio button lost on section fwd/back with 2.1.4.Alex</title><link>https://sourceforge.net/p/phpesp/bugs/232/?limit=25#a465</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Should we update the front page here to point to that repo? If development is continuing there, seems like a good idea.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matthew Gregg</dc:creator><pubDate>Tue, 21 Oct 2014 14:42:21 -0000</pubDate><guid>https://sourceforge.netedb98d35e8abd9add730604b143f06c6e422406f</guid></item><item><title>#232 Response to radio button lost on section fwd/back with 2.1.4.Alex</title><link>https://sourceforge.net/p/phpesp/bugs/232/?limit=50#5a94</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Please try the version on github:&lt;br /&gt;
&lt;a href="https://github.com/liedekef/phpESP" rel="nofollow"&gt;https://github.com/liedekef/phpESP&lt;/a&gt;&lt;br /&gt;
and create bugreports there.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Franky Van Liedekerke</dc:creator><pubDate>Tue, 21 Oct 2014 14:39:00 -0000</pubDate><guid>https://sourceforge.net393fca28c406992266d7522cc2841beb73c23da6</guid></item><item><title>Response to radio button lost on section fwd/back with 2.1.4.Alex</title><link>https://sourceforge.net/p/phpesp/bugs/232/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks to Alex Mountjoy for providing an update to v. 2.1.4 that complies with newer php installations.&lt;/p&gt;
&lt;p&gt;I must admit that I was on 2.1.2, so I don’t know if my problems with the latest version is related to new functionality included already in 2.1.3 or 2.1.4.&lt;/p&gt;
&lt;p&gt;To boil down my problem I have reproduced this on a fresh plain-vanilla 2.1.4_master installation – only modified the phpESP.ini.php with appropriate values. I have deleted all database tables from the earlier version, and started from a fresh database intitiated by phpESP itself.&lt;/p&gt;
&lt;p&gt;I have made a simple TEST-survey with two identically formatted sections separated by a section break. Each of the two sections have three questions. First there are two radio button MUST questions each with five options, and then there is one open text field for comments.&lt;/p&gt;
&lt;p&gt;I do not use credit or feedback.&lt;/p&gt;
&lt;p&gt;When I enter the survey, it displays correctly and I can fill in the first page. When I press “next page”, I am shown the second page. If I have filled in the open text response I will see on the top of page two the notices:&lt;/p&gt;
&lt;p&gt;Notice: Undefined offset: 3 in /var/www/vhosts/fbumonacom/www/phpESP/public/handler.php on line 386&lt;/p&gt;
&lt;p&gt;Notice: Undefined offset: 4 in /var/www/vhosts/fbumonacom/www/phpESP/public/handler.php on line 386&lt;/p&gt;
&lt;p&gt;Using phpmyadmin I can verify that phpESP actually updates the response_single table correctly with the answers I gave on page one.&lt;/p&gt;
&lt;p&gt;I can then fill in page two with replies.&lt;/p&gt;
&lt;p&gt;Now if I go back pressing “previous page” I am shown the first page again but the radio button content I gave is &lt;em&gt;NOT&lt;/em&gt; displayed, i.e. the two questions appear to be unanswered. The open text response is OK though.&lt;/p&gt;
&lt;p&gt;If I retype the answers to the radio button questions and press “Next page” the same Notices as above will appear, and again the radio button questions are seemingly unanswered although I did fill them in earlier.&lt;/p&gt;
&lt;p&gt;If I complete page 2 without going back to page 1 but rather “Save Survey” I can verify that the given replies are actually in the database (response_single). (I will receive the Notices mentioned above on top of my thank-you-page, if I have given an open text answer on page two. If I have not given an open text answer on a given page the notices will not be given).&lt;/p&gt;
&lt;p&gt;I have struggled with this for quite some time, and I sense that the problem is related to credit and feedback columns, and I have found a very crude work-around which returns normal behavior in my example.&lt;/p&gt;
&lt;p&gt;line 505 in espresponse.inc:&lt;br /&gt;
FROM:        $sql = "SELECT q.id $col,c.content,c.id,c.feedback,c.credit&lt;br /&gt;
TO:          $sql = "SELECT q.id $col,c.content,c.id&lt;/p&gt;
&lt;p&gt;i.e. delete the SELECT of columns c.feedback and c.credit&lt;/p&gt;
&lt;p&gt;This will make the radio button response appear correctly as you browse forward/backward between sections.&lt;/p&gt;
&lt;p&gt;In turn you will get a lot of notices which must be suppressed by setting the error-level:&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Notice: Undefined offset: -1 in /var/www/vhosts/fbumonacom/www/phpESP/admin/include/lib/espresponse.inc on line 514&lt;/p&gt;
&lt;p&gt;Notice: Undefined offset: -1 in /var/www/vhosts/fbumonacom/www/phpESP/admin/include/lib/espresponse.inc on line 514&lt;/p&gt;
&lt;p&gt;Notice: Undefined offset: 3 in /var/www/vhosts/fbumonacom/www/phpESP/public/handler.php on line 386&lt;/p&gt;
&lt;p&gt;Notice: Undefined offset: 4 in /var/www/vhosts/fbumonacom/www/phpESP/public/handler.php on line 386&lt;/p&gt;
&lt;p&gt;Notice: Undefined offset: 3 in /var/www/vhosts/fbumonacom/www/phpESP/public/handler.php on line 386&lt;/p&gt;
&lt;p&gt;Notice: Undefined offset: 4 in /var/www/vhosts/fbumonacom/www/phpESP/public/handler.php on line 386&lt;/p&gt;
&lt;p&gt;Notice: Undefined offset: 3 in /var/www/vhosts/fbumonacom/www/phpESP/public/handler.php on line 386&lt;/p&gt;
&lt;p&gt;Notice: Undefined offset: 4 in /var/www/vhosts/fbumonacom/www/phpESP/public/handler.php on line 386&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Any thoughts on this would really be appreciated.&lt;/p&gt;
&lt;p&gt;Thanks &lt;br /&gt;
Søren Voigt&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">s_voigt</dc:creator><pubDate>Tue, 21 Oct 2014 12:29:35 -0000</pubDate><guid>https://sourceforge.netdae7bbeea9b516662a36dd148295d3dea1949552</guid></item></channel></rss>