Help for building my first plugin

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
pollevr
Posts: 28
Joined: 25 Jun 2020, 15:12

Help for building my first plugin

Post by pollevr »

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 403 times
pollevr
Posts: 28
Joined: 25 Jun 2020, 15:12

Re: Help for building my first plugin

Post by pollevr »

I found that I must call the plugin like this:

Code: Select all

/mantis/plugin.php?page=MyPlugin/foo
Starbuck
Posts: 219
Joined: 14 Feb 2006, 02:53
Location: USA
Contact:

Re: Help for building my first plugin

Post by Starbuck »

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

Re: Help for building my first plugin

Post by pollevr »

Thank you Starbucks!
Post Reply