Help for building my first plugin

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
pollevr
Posts: 26
Joined: Jun 25, 2020 10:12 am

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 58 times
pollevr
Posts: 26
Joined: Jun 25, 2020 10:12 am

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: 217
Joined: Feb 13, 2006 9:53 pm
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: 26
Joined: Jun 25, 2020 10:12 am

Re: Help for building my first plugin

Post by pollevr »

Thank you Starbucks!
Post Reply