tomolimo / processmaker

GLPI plugin that provides an interface with ProcessMaker (http://www.processmaker.com/)
31 stars 11 forks source link

Error in entering dates. The starting date is later than the ending date, Undefined array key "id" #183

Open sas060 opened 1 week ago

sas060 commented 1 week ago

Hi, Every time i add a new case to a ticket (following Tutorial 1) this error is shown: Annotation 2024-09-26 092832 Also this warning appears in /var/log/glpi/php-errors.log: glpiphplog.WARNING: *** PHP Warning (2): Undefined array key "id" in /var/www/html/glpi/plugins/processmaker/front/processmaker.form.php at line 55 Backtrace : public/index.php:82 require() 55 Session::setActiveTab('PluginProcessmakerCase', 'PluginProcessmakerTask$'.$task->fields['id']);

As a result the dynaform is not visible (entry is visible in dynaforms tab, but preview button does nothing)

GLPI: 10.0.16 php: 8.2.20 apache: 2.4.62 sql: 10.11.6-MariaDB-0+deb12u1

ProcessMaker: 3.3.0-community-RE-2.5 Apache/2.4.6 (CentOS) PHP/7.1.33 MySql (Version 5.7.44)

tomolimo commented 1 day ago

Hello @sas060 Could you post the version of the ProcessMaker plugin? Thank you Regards, Tomolimo

sas060 commented 22 hours ago

@tomolimo Version in glpi is 5.0.3 But the plugin was installed by cloning this repo into glpi/plugins When i originally tried installing by unzipping processmaker-5.0.3.zip, it wouldnt show up in installed plugins in glpi with this error: glpiphplog.WARNING: *** PHP User Warning (512): Unable to load plugin "processmaker" information. in /var/www/html/glpi/src/Plugin.php at line 654 Backtrace : src/Plugin.php:654 trigger_error() src/Plugin.php:538 Plugin->checkPluginState() front/marketplace.php:43 Plugin->checkStates() public/index.php:82 require()

tomolimo commented 21 hours ago

Hello @sas060 The correct installation procedure is to take the zip file that is provided with the release and not to clone the repo... Zip file is here: https://github.com/tomolimo/processmaker/releases/tag/5.0.3 Using a clone of the repo, means that you want to help developing the plugin :) thank you Regards, Tomolimo