View Issue Details

IDProjectCategoryView StatusLast Update
0016763phplist applicationpluginspublic27-03-13 11:45
Reporterduncanc 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product VersionSVN 
Target VersionFixed in Version2.11.8 
Summary0016763: Function logEvent() used before it is defined
DescriptionIn 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 ReproduceCreate 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.
TagsNo tags attached.

Activities

michiel

27-03-13 11:45

manager   ~0051994

I've changed it to use "Error" so that the error shows on the page. Might be better in this case anywya.