Closed Schrolli91 closed 9 years ago
Habs gefixt, kanns nochmal jemand gegenchecken, ob jetzt alles läuft, bitte?
Problem war: Konnte das Plugin nicht importiert werden, kam zwar eine Fehlermeldung, danach wurde aber einfach weitergemacht:
onLoad()
globals.pluginList[ ]
allerdings mit den Daten vom letzten importierten Plugin, da durch den fehlerhaften Import die Daten des Plugins nicht überschrieben wurden. Daher hat er, zwar mit richtigen Namen aber falscher Plugin Referenz, dass vorherige nochmal in die Liste aufgenommen.
Behoben durch setzen eines else:
in der Try:Exception:
-Klausel. Jetzt wird der onLoad()
Aufruf, sowie sowie die Aufnahme in die Liste nur durchgeführt wenn das Plugin auch fehlerfrei importiert werden konnte.
da noch niemand gemauelt hat, gehe ich davon aus, es passt alles. Ansonsten Bug Issue... closed
Mir ist heute folgendes aufgefallen, wenn ein Plugin beim
import
einen Fehler wirft, wird es komischerweise trotzdem irgendwie in dieglobals.pluginList[ ]
mit richtigen Namen aufgenommen, aber auf das zuvor geladene Plugin referenziert. Sprich das zuvor geladene Plugin wird 2 mal ausgeführt, siehe Logfile (MySQL)Er schreibt
call MySQL
tatsächlich führt er in diesem Fall dann aber dashttpRequest
Plugin aus...