phplist

NOTE:: Before reporting an issue, make sure you are running the latest version, currently 3.3.1


View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0016763phplist applicationpluginspublic27-03-13 09:5027-03-13 11:45
Reporterduncanc 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
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.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0051994)
michiel (manager)
27-03-13 11:45

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
Powered by Mantis Bugtracker