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.|