View Issue Details

IDProjectCategoryView StatusLast Update
0023209mantisbtplug-inspublic2017-08-11 05:20
Reporterhelfy022Assigned Tocproensa 
Status resolvedResolutionno change required 
Product Version2.4.1 
Target VersionFixed in Version 
Summary0023209: plug-in "requires" setting not honoring MantisCore version


After staging the "Csv_import" plug-in (version 1.4.0) in our MantisBT installation (version 2.4.1), we are unable to install it. The "Dependencies" column of the "Available Plugins" section in "Manage Plugins" indicated in red that Mantis CVS Importer 1.4.0 had an outdated dependency.

Looking in the Csv_import.php file, the following setting is evident:

function register() {
$this->requires = array( 'MantisCore' => '1.3.0' );

The current version of our MantisBT installation is 2.4.1. Why would MantisBT consider our installation version to be out of date in this situation?

FYI - when the "requires" setting is changed in Csv_import.php to 2.4.1 (or 2.x.x, for that matter), installation of the plug-in becomes possible. Keeping "requires" at 1.3.0 (or any 1.x.x) prevents installation from proceeding.

Please let me know if you need any more information in order to better understand the situation.


TagsNo tags attached.




2017-08-10 17:19

developer   ~0057425

That is the expected behaviour. It is explained here:

Probably, you can request to the plugin mantainer to update the plugin to support current mantis version.



2017-08-10 17:23

developer   ~0057426

From README of the plugin

Supports MantisBT v2.x (modern ui) -- use modern-ui branch

There you will find

$this->requires = array( 'MantisCore' => '2.0.0' );

and some more changes to make this plugin compatible to MantisBT 2.x.



2017-08-10 17:37

reporter   ~0057427

Thank you both for your responses.

Just to make sure I'm understanding the use model in this situation, is it appropriate for me to manually update the $this->requires setting in the Csv_import.php file to accommodate our installation? Is that proper procedure for any plug-in for which the plugin may require by default a major release much older than a presently-available one (but for which the README may indicate a compatibility)? Or, is the developer guide information implying how the compatibility requirement needs to be updated by the plug-in owner in order to accommodate our MantisBT version?




2017-08-10 17:53

developer   ~0057428

Last edited: 2017-08-10 17:55

View 2 revisions

We use semantic versioning for MantisBT, see

This means that MantisBT 2.x is a so called MAJOR version

MAJOR version when you make incompatible API changes,

Some 1.x plugins might work in 2.x without any changes, some plugins might need changes.
The Mantis core does not know what the old plugin is doing, so plugins requiring MantisCore 1.x are invalidated to prevent problems.



2017-08-10 18:03

reporter   ~0057429

Sounds good. What I gather from this, then, is that I should contact the plug-in developer to determine if there is a donwloadable package for which the requires setting points to MAJOR version 2.x, or if the current one supports 2.x (in which case I'll ask if it's appropriate for me to hack the php file and update the requires setting manually).

Assuming I'm understanding the situation correctly, please feel free to close.

Thanks very much for the feedback.




2017-08-10 18:11

developer   ~0057430

or if the current one supports 2.x

Typo? 1.x?



2017-08-11 05:20

developer   ~0057433

contact the plug-in developer to determine if there is a donwloadable package for which the requires setting points to MAJOR version 2.x

@helfy022 Not sure the plugin's developer is needed... Just download the correct version of the source from

Issue History

Date Modified Username Field Change
2017-08-10 17:08 helfy022 New Issue
2017-08-10 17:17 cproensa Assigned To => cproensa
2017-08-10 17:17 cproensa Status new => assigned
2017-08-10 17:19 cproensa Status assigned => resolved
2017-08-10 17:19 cproensa Resolution open => no change required
2017-08-10 17:19 cproensa Note Added: 0057425
2017-08-10 17:23 atrol Note Added: 0057426
2017-08-10 17:37 helfy022 Note Added: 0057427
2017-08-10 17:53 atrol Note Added: 0057428
2017-08-10 17:55 atrol Note Edited: 0057428 View Revisions
2017-08-10 18:03 helfy022 Note Added: 0057429
2017-08-10 18:11 atrol Note Added: 0057430
2017-08-11 05:20 dregad Note Added: 0057433