Error message when composing note

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
ajtruckle
Posts: 69
Joined: Oct 16, 2011 2:21 am

Error message when composing note

Post by ajtruckle » Jan 03, 2018 12:26 am

Hi

I upgraded to 2.10.0 and now I notice this error when adding a note. Please advise.

Thanks.
Attachments
A8DA3AB1-8603-4E08-8868-9A82320A152D.png
A8DA3AB1-8603-4E08-8868-9A82320A152D.png (260.7 KiB) Viewed 1388 times

atrol
Site Admin
Posts: 7658
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Error message when composing note

Post by atrol » Jan 03, 2018 2:04 am

I am pretty sure this is not a Mantis bug, but a problem with the 3rd party plugin you use (Markdown Editor / Preview)

The parsedown library can no longer be found in folder library but in folder vendor/erusev since Mantis 2.6.0 https://www.mantisbt.org/bugs/view.php?id=22939
Please use Search before posting and read the Manual

ajtruckle
Posts: 69
Joined: Oct 16, 2011 2:21 am

Re: Error message when composing note

Post by ajtruckle » Jan 03, 2018 3:11 am

Ok Odd as I left the plugin files alone as were used in the previous forum so I don’t understand why it has regressed. I will examine the plugin code.

ajtruckle
Posts: 69
Joined: Oct 16, 2011 2:21 am

Re: Error message when composing note

Post by ajtruckle » Jan 03, 2018 4:03 am

This is the code:

Code: Select all

<?php

global $g_vendor_path;
$parsedown_sub = 'parsedown'.DIRECTORY_SEPARATOR.'Parsedown.php';
if (file_exists($g_vendor_path.DIRECTORY_SEPARATOR.$parsedown_sub))
{
        require_lib($parsedown_sub);
}
// version 2.7
else if (file_exists($g_vendor_path.DIRECTORY_SEPARATOR.'erusev'.DIRECTORY_SEPARATOR.$parsedown_sub))
{
        require_lib('erusev'.DIRECTORY_SEPARATOR.$parsedown_sub);
}
else
        die('<em style="color:red">parsedown library not available.</em>');


$Parsedown = new Parsedown();
echo $Parsedown->text($_REQUEST['markdown']);

Post Reply