pluginsGLPI / escalade

GLPI Plugin escalade
http://www.teclib-edition.com
GNU General Public License v2.0
17 stars 30 forks source link

Erreur PHP #199

Closed Windayz closed 2 weeks ago

Windayz commented 3 months ago

Bonjour,

Toujours une erreur PHP dans la dernière version du plugin lors de la création d'un ticket via formcreator :

[2024-05-24 13:56:24] glpiphplog.WARNING: *** PHP Warning (2): Undefined array key "_actors" in C:\GLPI RECETTE\plugins\escalade\inc\ticket.class.php at line 92 Backtrace : plugins\escalade\hook.php:420 PluginEscaladeTicket::pre_item_update() src\Plugin.php:1680 plugin_escalade_pre_item_update() src\CommonDBTM.php:1610 Plugin::doHook() src\Item_Ticket.php:109 CommonDBTM->update() src\CommonDBTM.php:1343 Item_Ticket->post_addItem() ...lace\formcreator\inc\targetticket.class.php:928 CommonDBTM->add() ...place\formcreator\inc\formanswer.class.php:1004 PluginFormcreatorTargetTicket->save() ...place\formcreator\inc\formanswer.class.php:1238 PluginFormcreatorFormAnswer->generateTarget() src\CommonDBTM.php:1343 PluginFormcreatorFormAnswer->post_addItem() marketplace\formcreator\ajax\formanswer.php:60 CommonDBTM->add() public\index.php:82 require()

Merci à vous !

Bonne journée.

wanderlage commented 3 months ago

We are also having the same problem, it started on 05/24.

andrepetinga commented 2 months ago

I installed the 2.9.6 version and have the same error, but not related to FormCreator. In my case is related to Mailgate:

[2024-07-10 11:38:13] glpiphplog.WARNING: *** PHP Warning (2): Undefined array key "_actors" in ...../marketplace/escalade/inc/ticket.class.php at line 92 Backtrace : marketplace/escalade/hook.php:420 PluginEscaladeTicket::pre_item_update() src/Plugin.php:1680 plugin_escalade_pre_item_update() src/CommonDBTM.php:1616 Plugin::doHook() src/Features/ParentStatus.php:162 CommonDBTM->update() src/ITILFollowup.php:277 ITILFollowup->updateParentStatus() src/CommonDBTM.php:1349 ITILFollowup->post_addItem() src/MailCollector.php:956 CommonDBTM->add() src/MailCollector.php:1923 MailCollector->collect() src/CronTask.php:1027 MailCollector::cronMailgate() front/cron.php:87 CronTask::launch()

or when I create/reject/aprove a solution, when adding an actor, reopening a closed ticket,...:

[2024-07-10 14:20:50] glpiphplog.WARNING: *** PHP Warning (2): Undefined array key "_actors" in ...../marketplace/escalade/inc/ticket.class.php at line 92 Backtrace : marketplace/escalade/hook.php:420 PluginEscaladeTicket::pre_item_update() src/Plugin.php:1680 plugin_escalade_pre_item_update() src/CommonDBTM.php:1616 Plugin::doHook() src/Features/ParentStatus.php:162 CommonDBTM->update() src/ITILFollowup.php:277 ITILFollowup->updateParentStatus() src/CommonDBTM.php:1349 ITILFollowup->post_addItem() front/itilfollowup.form.php:75 CommonDBTM->add() public/index.php:82 require()

Windayz commented 2 months ago

Any news about this php error please?

andrepetinga commented 1 month ago

Today I updated to 2.9.8 version, and then applied 2 fixes: #219 and #212.

The mentioned errors are gone!

Windayz commented 1 month ago

Indeed, everything works. After testing, I had the problem that the technician or the group would not delete itself on escalation. After testing this: https://github.com/pluginsGLPI/escalade/pull/219 everything works :)