Issues adding comments in DITA Map WebHelp Responsive with Feedback
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 1
- Joined: Fri Aug 05, 2016 3:52 pm
Issues adding comments in DITA Map WebHelp Responsive with Feedback
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
to
fixed that issue.
The second one is inside Utils.php
line 429
leads to an error message stating
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);
Code: Select all
if (isset($_POST['comment']) && strlen( $_POST['comment']) > 0) {
$info["referedComment"] = $_POST['comment'] ;
} else {
$info["referedComment"] = 0;
}
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')) . '>'",
preg_replace(): The /e modifier is deprecated, use preg_replace_callback
-
- Posts: 222
- Joined: Tue Jul 01, 2014 11:48 am
Re: Issues adding comments in DITA Map WebHelp Responsive with Feedback
Post by bogdan_cercelaru »
Hello,
Regards,
Bogdan
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 very first try to add a comment on a topic or task page failed as there was an empty POST Parameter for 'comment'
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.The second one is inside Utils.php
Regards,
Bogdan
Bogdan Cercelaru
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service