Error message when composing note

General discussion of Mantis.

Moderators: Developer, Contributor

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

Error message when composing note

Post by ajtruckle »

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 2976 times
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Error message when composing note

Post 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
Please use Search before posting and read the Manual
ajtruckle
Posts: 69
Joined: 16 Oct 2011, 07:21

Re: Error message when composing note

Post 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.
ajtruckle
Posts: 69
Joined: 16 Oct 2011, 07:21

Re: Error message when composing note

Post 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']);
Post Reply