Get help from other users here.
Moderators: Developer , Contributor
pollevr
Posts: 28 Joined: 25 Jun 2020, 15:12
Post
by pollevr » 28 Jun 2020, 15:27
Hi,
in Mantis 2.24.1 I'm trying to build my first plugin following the doc at the url
https://www.mantisbt.org/docs/master/en ... s.building but I get the follow error:
Code: Select all
Fatal error: Uncaught Error: Call to undefined function plugin_page() in /web/htdocs/www.mysite.com/home/mantis/plugins/Example/pages/foo.php:2
(I changed mysite url)
What I wrong?
If necessary, I attached my code.
Thank you,
Cristian
Attachments
Example.zip
(1.72 KiB) Downloaded 222 times
pollevr
Posts: 28 Joined: 25 Jun 2020, 15:12
Post
by pollevr » 29 Jun 2020, 13:07
I found that I must call the plugin like this:
Code: Select all
/mantis/plugin.php?page=MyPlugin/foo
Starbuck
Posts: 217 Joined: 14 Feb 2006, 02:53
Location: USA
Contact:
Post
by Starbuck » 29 Jun 2020, 19:46
Questions about plugins might get more views or responses in the
Plugins forums .
If you want Mantis to work differently, use or create a plugin. Visit the Plugins forums .
Ask developers to create a plugin that you need - and motivate them to help you!
pollevr
Posts: 28 Joined: 25 Jun 2020, 15:12
Post
by pollevr » 29 Jun 2020, 19:55
Thank you Starbucks!