Issues adding comments in DITA Map WebHelp Responsive with Feedback

psosm
Posts: 1
Joined: Fri Aug 05, 2016 3:52 pm

Issues adding comments in DITA Map WebHelp Responsive with Feedback

Post by psosm » Fri Aug 05, 2016 4:14 pm

Hi,

when running the WebHelp Responsive with Feedback on my WebServer, I ran into two problems when trying to add a comment

The environment I am using is
OS: Windows 7 Professional 64bit
Apache 2.4
PHP 5.6.24
mysql 5.7


1. The very first try to add a comment on a topic or task page failed as there was an empty POST Parameter for 'comment'

changing line 79 of comment.php from

Code: Select all

$info["referedComment"] = (isset($_POST['comment']) ? $_POST['comment'] : 0);
to

Code: Select all

if (isset($_POST['comment']) && strlen( $_POST['comment']) > 0) {
$info["referedComment"] = $_POST['comment'] ;
} else {
$info["referedComment"] = 0;
}
fixed that issue.

The second one is inside Utils.php
line 429

Code: Select all

        return preg_replace('/<(.*?)>/ie', "'<' . preg_replace(array('/javascript:[^\"\']*/i', '/(" . implode('|',
$aDisabledAttributes) . ")[ \\t\\n]*=[ \\t\\n]*[\"\'][^\"\']*[\"\']/i', '/\s+/'), array('', '', ' '), stripslashes('\\1')) . '>'",
leads to an error message stating
preg_replace(): The /e modifier is deprecated, use preg_replace_callback

bogdan_cercelaru
Posts: 213
Joined: Tue Jul 01, 2014 11:48 am

Re: Issues adding comments in DITA Map WebHelp Responsive with Feedback

Post by bogdan_cercelaru » Mon Aug 08, 2016 4:20 pm

Hello,
The very first try to add a comment on a topic or task page failed as there was an empty POST Parameter for 'comment'
I wasn't able to reproduce this but it will be good to check that the "$_POST['comment']" is not empty. This will be included in the next version of Oxygen (v18.1).
The second one is inside Utils.php
This is a known issue. It is already resolved and will be included in the next version of Oxygen (v18.1) so that the generated WebHelp will be compatible with PHP v7.

Regards,
Bogdan
Bogdan Cercelaru
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Post Reply