Page 1 of 1

Error message when composing note

Posted: 03 Jan 2018, 05:26
by ajtruckle
Hi

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

Thanks.

Re: Error message when composing note

Posted: 03 Jan 2018, 07:04
by atrol
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

Re: Error message when composing note

Posted: 03 Jan 2018, 08:11
by ajtruckle
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.

Re: Error message when composing note

Posted: 03 Jan 2018, 09:03
by ajtruckle
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']);