NOTE:: Before reporting an issue, make sure you are running the latest version, currently 3.3.1
|Anonymous | Login | Signup for a new account||23-08-17 05:27 BST|
|My View | View Issues | Change Log | Roadmap|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0016763||phplist application||plugins||public||27-03-13 09:50||27-03-13 11:45|
|Target Version||Fixed in Version||2.11.8|
|Summary||0016763: Function logEvent() used before it is defined|
|Description||In file pluginlib.php, if a plugin file does not define the class with the correct name then the code tries to use logEvent() to log the problem.|
However, the function logEvent() has not yet been defined and causes a php fatal error:
Fatal error: Call to undefined function logEvent()
The function is defined in file lib.php which is included in index.phh after file connect.php which itself includes pluginlib.php.
In index.php I tried moving the include of lib.php to before connect.php but then got an sql error so I guess it is not that simple.
|Steps To Reproduce||Create a plugin file that does not define a class with the correct name.|
e.g. file myplugin.php defines class myplugin2 instead of class myplugin.
|Tags||No tags attached.|
|I've changed it to use "Error" so that the error shows on the page. Might be better in this case anywya.|
|Copyright © 2000 - 2017 MantisBT Team|