Hi
I upgraded to 2.10.0 and now I notice this error when adding a note. Please advise.
Thanks.
Error message when composing note
Moderators: Developer, Contributor
Error message when composing note
- Attachments
-
- A8DA3AB1-8603-4E08-8868-9A82320A152D.png (260.7 KiB) Viewed 2976 times
Re: Error message when composing note
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
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
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
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']);