Include() in Plugins set some GLOBALS to NULL

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Dominus
Posts: 10
Joined: 11 Aug 2020, 05:36

Include() in Plugins set some GLOBALS to NULL

Post by Dominus »

I'm trying to link on SMF and MantisBT by calling SSI.php from SMF in a MantisBT plugin. However, SSI.php has include() in it, as well, with the location partly determined by a global variable. If you set up a var_dump() in the SSI.php file, you will see that the variables work perfectly if the code is placed in the base Mantis directory next to index.php. But, if it is called through a plugin, those same variables receive a NULL value somehow. See https://www.simplemachines.org/communit ... c=574401.0 for SMF's investigation on it.
Mantis 2.25.1
PHP 7.4.19
Post Reply