tomolimo / processmaker

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

Issue when activating Processmaker plugin 4.0.8 or 4.0.11 on Glpi 9.5.6 #147

Closed Olivier-7 closed 2 years ago

Olivier-7 commented 2 years ago

Describe the bug A white screen on Glpi browser after activating on of processmaker 4.0.8 or processmaker 4.0.11 plugins

To Reproduce Steps to reproduce the behavior:

  1. Install manually processmaker plugins 4.0.8 or processmaker 4.0.11 into www/glpi/plugins or www/glpi/marketplace folder
  2. Go to 'Configuration' 'Plugins' menu on Glpi
  3. Click on 'Install%' icon
  4. Click on 'Activate%' icon
  5. See white screen

Expected behavior I expected to see configuration menu of processmaker plugin with fields to inform...

Screenshots Yes

Desktop (please complete the following information): N/A

Smartphone (please complete the following information): N/A

Server : Glpi debian 11 server core mysql 8.0 apache 2.4.52 php 7.4.25 glpi 9.5.6 processmaker plugins 4.0.8 or 4.0.11

Server : Processmaker debian 11 server core mysql 8.0 apache 2.4.52 php 7.1 processmaker-server 3.3.0-RE-1.7

Additional context Add any other context about the problem here.

Issue when activating Processmaker plugin 4.0.8 or 4.0.11 on Glpi 9.5.6

Hi all, so i try to do a lab with 2 stacks : 1st stack with Glpi debian 11 server core with mysql 8.0, apache 2.4.52, php 7.4.25, glpi 9.5.6, processmaker plugins 4.0.8 or 4.0.11 2nd stack with Processmaker-server debian 11 server core with mysql 8.0, apache 2.4.52, php 7.1 processmaker-server 3.3.0-RE-1.7

both server are up. 2022 0125 01 processmaker server 2022 0125 02 glpi server plugins

On Glpi server i download and extract 4.0.8.tar.gz or 4.0.11.tar.gz on www/glpi/plugins folder. Afer that i have to rename processmaker-4.0.8 or processmaker-4.0.11 folder to processmaker folder so Glpi can see the plugin. (it’s the same if i download and extract the archive on www/glpi/marketplace folder ;-) )

I can do the install process on Glpi menu ‘Configuration’ ‘Plugins’ with the icon ‘Installer’

2022 0125 03 glpi server plugins

2022 0125 07 glpi server plugins

I have an issue when i try to activate the processmaker plugin on Glpi ‘Configuration’ ‘Plugins’ with the icon ‘Activer’. After a bit the Glpi browser window is white. If i go to the root folder of Glpi the browser window is still white.

2022 0125 04 glpi server plugins

2022 0125 05 glpi server plugins

I can break that issue by renaming processmaker folder into processmaker.old for example. After that the Glpi browser window is back.

On the Glpi menu ‘Configuration’ ‘Plugins’ for ‘processmaker’ plugin i have an icon ‘Nettoyer’

2022 0125 06 glpi server plugins

So i need helps and advices from the community please. Regards Olivier

A white screen on Glpi browser after activating on of processmaker 4.0.8 or processmaker 4.0.11 plugins

tomolimo commented 2 years ago

Hello @Olivier-7

I've got two questions:

  1. Could you have a look in the log files of php7.1 and php7.4 and glpi?
  2. Where did you install the PM plugin? In GLPI/plugins folder or in GLPI/marketplace folder?

And an information for you

  1. PM server 3.3.0 is NOT currently compatible with mySQL8.0, but only 5.7.x releases. I'm preparing a PM server which will be compliant to mySQL 8.x, but currently, you have to use the 5.7.x version

Thank you, Regards, Tomolimo

kofe88 commented 2 years ago

@Olivier-7 , Hi! Is the php-soap and php-intl extensions installed and enabled on the server with glpi?

I can also suggest adding the line display_errors = on (not for production) in php.ini, it helped me with a white screen in glpi.

I have the following setup:


Server GLPI

GLPI 9.5.6 ( => /var/www/html/glpi) Installation mode: TARBALL
Operating system: Linux support 5.4.0-97-generic #110~18.04.1-Ubuntu SMP Mon Jan 17 20:50:31 UTC 2022 x86_64 
PHP 7.4.27 apache2handler (Core, FFI, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, apc, apcu, bz2,  calendar, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imagick, imap, intl, json, ldap,   libxml, mbstring, memcache, mysqli, mysqlnd, openssl, pcre, pdo_mysql, posix, pspell, readline, session, shmop, soap, sockets,  sodium, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib) 
Setup: max_execution_time="30" memory_limit="256M" post_max_size="256M" safe_mode="" session.save_handler="files"   upload_max_filesize="256M"  
Software: Apache/2.4.29 (Ubuntu) (Apache/2.4.29 (Ubuntu) )  
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36 
Server Software: mariadb.org binary distribution    Server Version: 10.6.5-MariaDB-1:10.6.5+maria~bionic

Server PM:

Version | 3.3.0-community-RE-1.7
Web server | Apache/2.4.29 (Ubuntu)
PHP version | 7.1.33-44+ubuntu18.04.1+deb.sury.org+1
DB version | MySql (Version 10.6.5 MariaDB)
DB name | wf_workflow
User browser | PHP-SOAP/7.4.27

There is also a second test installation with glpi 9.5.7:


Server GLPI

GLPI 9.5.7 ( => /var/www/html/glpi) Installation mode: TARBALL Current language:ru_RU
Operating system: Linux test-glpi 5.4.0-97-generic #110~18.04.1-Ubuntu SMP Mon Jan 17 20:50:31 UTC 2022 x86_64 PHP 7.4.27 apache2handler (Core, FFI, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, apc, apcu, bz2,   calendar, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imagick, imap, intl, json, ldap,   libxml, mbstring, memcache, mysqli, mysqlnd, openssl, pcre, pdo_mysql, posix, pspell, readline, session, shmop, soap, sockets,  sodium, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib) 
Setup: max_execution_time="30" memory_limit="128M" post_max_size="8M" safe_mode="" session.save_handler="files"     upload_max_filesize="2M"  Software: Apache/2.4.29 (Ubuntu) (Apache/2.4.29 (Ubuntu) )    
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36 Server Software: mariadb.org binary distribution  
Server Version: 10.6.5-MariaDB-1:10.6.5+maria~bionic    

Server PM:

Version | 3.3.0-community-RE-1.7
Web server | Apache/2.4.29 (Ubuntu)
PHP version | 7.1.33-40+ubuntu18.04.1+deb.sury.org+1
DB version | MySql (Version 10.1.48 MariaDB)
DB name | wf_workflow
User browser | PHP-SOAP/7.4.27
Olivier-7 commented 2 years ago

Hello @Olivier-7

I've got two questions:

1. Could you have a look in the log files of php7.1 and php7.4 and glpi?

2. Where did you install the PM plugin? In GLPI/plugins folder or in GLPI/marketplace folder?

And an information for you

1. PM server 3.3.0 is NOT currently compatible with mySQL8.0, but only 5.7.x releases. I'm preparing a PM server which will be compliant to mySQL 8.x, but currently, you have to use the 5.7.x version

Thank you, Regards, Tomolimo

hi guys, sorry a little bit busy.

answers 1. -on glpi side php7.4 Capture du 2022-02-22 17-25-35 Capture du 2022-02-22 17-30-17

perhaps i don't have catched the right file ? Capture du 2022-02-22 18-05-15

glpi Capture du 2022-02-22 18-10-16

-on processmaker side (still the same configuration) php7.1 Capture du 2022-02-22 17-26-30 Capture du 2022-02-22 17-30-45

perhaps i don't have catched the right file ?

Capture du 2022-02-22 18-06-03

2. first i have tried to install "pm plugin" on glpi in glpi/plugins folder and for testing i have tried to install in glpi/marketplace folder (but after uninstalling, removing and cleaning in the plugins folder)

Regards Olivier

Olivier-7 commented 2 years ago

Hi @kofe88

i have checked on glpi-server php-soap isn't installed pmos info 001

php-intl is installed pmos info 002

in php.ini (/etc/php/7.4/apache2/php.ini) display_errors is off pmos info 003

glpi-server configuration pmos info 004

pm-server configuration pmos info 005

pmos info 006

Thanks for your help Regards Olivier

Olivier-7 commented 2 years ago

Hello @Olivier-7

I've got two questions:

1. Could you have a look in the log files of php7.1 and php7.4 and glpi?

2. Where did you install the PM plugin? In GLPI/plugins folder or in GLPI/marketplace folder?

And an information for you

1. PM server 3.3.0 is NOT currently compatible with mySQL8.0, but only 5.7.x releases. I'm preparing a PM server which will be compliant to mySQL 8.x, but currently, you have to use the 5.7.x version

Thank you, Regards, Tomolimo

Hi @tomolimo & @kofe88 , i think the solution for my configuration is to do on glpi-server

apt install php-soap systemctl restart apache2.service

cause i have redone this

but the icons in the plugin column show off during install process pmos info bis 002

and if i refresh the page i have a blank page pmos info bis 003

so i done these commands in my debian terminal where glpi is installed

apt install php-soap systemctl restart apache2.service

and after that i have refreshed glpi page on firefox browser pmos info bis 004

icons in the plugins column are back pmos info bis 005

and i can access the plugins configuration tab pmos info bis 006

the only bug i had during processmaker install steps is a "WARNING : User's account expired" message for the first login... pmos info bis 007

for that issue i have done these commands on processmaker-server by terminal

mysql UPDATE wf_workflow.RBAC_USERS SET USR_DUE_DATE = '2030-01-01' WHERE USR_UID = '00000000000000000000000000000001'; UPDATE wf_workflow.USERS SET USR_DUE_DATE = '2030-01-01' WHERE USR_UID = '00000000000000000000000000000001'; exit

;-/

thanks guys regards Olivier

tomolimo commented 2 years ago

@Olivier-7 Thank you for your feedback, I'll add this requirments in the PM wiki. Thank you, Regards, Tomolimo

tomolimo commented 2 years ago

Please note that it was already in the requirements: https://github.com/tomolimo/processmaker/wiki/Requirements