tomolimo / processmaker

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

GLPI connection to processMaker server #136

Closed ammar-chebbi-sofrecom closed 3 years ago

ammar-chebbi-sofrecom commented 3 years ago

Hi,

I can't get GLPI to connect to processMaker.

Windows: 10 with php5.6 and mysql 8.0 from wampserver GLPI: 9.2.2 ProcessMaker: 3.0.1.8-community-RE-1.8

image

GLPI URL: http://ammar.tn/ PM URL: http://ammar.tn:8080/

user/pass during testing: admin / admin (no special characters)

The configuration in GPLI for Processmaker image you can see that glpi detect the Group in ProcessMaker

GLPI's php-errors.log:

[07-Sep-2021 11:06:08 UTC] PHP Deprecated:  Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0

[07-Sep-2021 11:06:08 UTC] PHP Warning:  Cannot modify header information - headers already sent in Unknown on line 0

[07-Sep-2021 11:06:08 UTC] PHP Warning:  session_start(): Cannot send session cookie - headers already sent in C:\opt\processmaker\workflow\public_html\sysGeneric.php on line 608

[07-Sep-2021 11:06:08 UTC] PHP Stack trace:

[07-Sep-2021 11:06:08 UTC] PHP   1. {main}() C:\opt\processmaker\workflow\public_html\app.php:0

[07-Sep-2021 11:06:08 UTC] PHP   2. include() C:\opt\processmaker\workflow\public_html\app.php:61

[07-Sep-2021 11:06:08 UTC] PHP   3. session_start() C:\opt\processmaker\workflow\public_html\sysGeneric.php:608

[07-Sep-2021 11:06:08 UTC] PHP Warning:  session_start(): Cannot send session cache limiter - headers already sent in C:\opt\processmaker\workflow\public_html\sysGeneric.php on line 608

[07-Sep-2021 11:06:08 UTC] PHP Stack trace:

[07-Sep-2021 11:06:08 UTC] PHP   1. {main}() C:\opt\processmaker\workflow\public_html\app.php:0

[07-Sep-2021 11:06:08 UTC] PHP   2. include() C:\opt\processmaker\workflow\public_html\app.php:61

[07-Sep-2021 11:06:08 UTC] PHP   3. session_start() C:\opt\processmaker\workflow\public_html\sysGeneric.php:608

[07-Sep-2021 07:06:08 America/New_York] PHP Warning:  Cannot modify header information - headers already sent in C:\opt\processmaker\workflow\public_html\sysGeneric.php on line 1734

[07-Sep-2021 07:06:08 America/New_York] PHP Stack trace:

[07-Sep-2021 07:06:08 America/New_York] PHP   1. {main}() C:\opt\processmaker\workflow\public_html\app.php:0

[07-Sep-2021 07:06:08 America/New_York] PHP   2. include() C:\opt\processmaker\workflow\public_html\app.php:61

[07-Sep-2021 07:06:08 America/New_York] PHP   3. header() C:\opt\processmaker\workflow\public_html\sysGeneric.php:1734

[07-Sep-2021 07:06:08 America/New_York] PHP Warning:  Cannot modify header information - headers already sent in C:\opt\processmaker\workflow\public_html\sysGeneric.php on line 1736

[07-Sep-2021 07:06:08 America/New_York] PHP Stack trace:

[07-Sep-2021 07:06:08 America/New_York] PHP   1. {main}() C:\opt\processmaker\workflow\public_html\app.php:0

[07-Sep-2021 07:06:08 America/New_York] PHP   2. include() C:\opt\processmaker\workflow\public_html\app.php:61

[07-Sep-2021 07:06:08 America/New_York] PHP   3. header() C:\opt\processmaker\workflow\public_html\sysGeneric.php:1736

[07-Sep-2021 07:06:08 America/New_York] PHP Warning:  Cannot modify header information - headers already sent in C:\opt\processmaker\workflow\public_html\sysGeneric.php on line 1738

[07-Sep-2021 07:06:08 America/New_York] PHP Stack trace:

[07-Sep-2021 07:06:08 America/New_York] PHP   1. {main}() C:\opt\processmaker\workflow\public_html\app.php:0

[07-Sep-2021 07:06:08 America/New_York] PHP   2. include() C:\opt\processmaker\workflow\public_html\app.php:61

[07-Sep-2021 07:06:08 America/New_York] PHP   3. header() C:\opt\processmaker\workflow\public_html\sysGeneric.php:1738

[07-Sep-2021 07:06:08 America/New_York] PHP Warning:  Cannot modify header information - headers already sent in C:\opt\processmaker\workflow\public_html\sysGeneric.php on line 1740

[07-Sep-2021 07:06:08 America/New_York] PHP Stack trace:

[07-Sep-2021 07:06:08 America/New_York] PHP   1. {main}() C:\opt\processmaker\workflow\public_html\app.php:0

[07-Sep-2021 07:06:08 America/New_York] PHP   2. include() C:\opt\processmaker\workflow\public_html\app.php:61

[07-Sep-2021 07:06:08 America/New_York] PHP   3. header() C:\opt\processmaker\workflow\public_html\sysGeneric.php:1740

[07-Sep-2021 07:06:08 America/New_York] PHP Warning:  Cannot modify header information - headers already sent in C:\opt\processmaker\workflow\public_html\sysGeneric.php on line 1742

[07-Sep-2021 07:06:08 America/New_York] PHP Stack trace:

[07-Sep-2021 07:06:08 America/New_York] PHP   1. {main}() C:\opt\processmaker\workflow\public_html\app.php:0

[07-Sep-2021 07:06:08 America/New_York] PHP   2. include() C:\opt\processmaker\workflow\public_html\app.php:61

[07-Sep-2021 07:06:08 America/New_York] PHP   3. header() C:\opt\processmaker\workflow\public_html\sysGeneric.php:1742

[07-Sep-2021 07:06:09 America/New_York] PHP Warning:  Cannot modify header information - headers already sent in C:\opt\processmaker\workflow\engine\methods\services\soap2.php on line 1287

[07-Sep-2021 07:06:09 America/New_York] PHP Warning:  Cannot modify header information - headers already sent in C:\opt\processmaker\workflow\engine\methods\services\soap2.php on line 1287

Thanks for your Help,

Best Regards,

tomolimo commented 3 years ago

Hello @ammar-chebbi-sofrecom Did you follow the pm server wiki? https://github.com/tomolimo/processmaker-server/wiki And especially this section: https://github.com/tomolimo/processmaker-server/wiki/Inbound-rewrite-rules? Thank you, Regards, Tomolimo

tomolimo commented 3 years ago

Hello @ammar-chebbi-sofrecom I'm also a bit surprised that you didn't use the latest PM server version, here: https://github.com/tomolimo/processmaker-server/releases/latest ... Thank you, Regards, Tomolimo

ammar-chebbi-sofrecom commented 3 years ago

hello @tomolimo yes i followed the wiki instructions I installed many version version 4.0.x with GLPI 9.5 and ProcessMaker 3.3.0-RE-1.x and everytime i got the same problemes Tasks creates in Processmaker don't appear in GLPI so i tried a previous version

tomolimo commented 3 years ago

Hello @ammar-chebbi-sofrecom

So would you install the latest versions, and I'll help you to solve your issue?

Thank you Regards, Tomolimo

ammar-chebbi-sofrecom commented 3 years ago

okay thank you @tomolimo

ammar-chebbi-sofrecom commented 3 years ago

hello @tomolimo i installed glpi 9.5.5 and plugin pm 4.0.8 with php 7.3 until now everthing is okay, but pm server 3.3.0-RE-1.7 need php 5.4 (PHP recommended version 5.6 or higher, PHP 7.2 is not yet supported ) , wampserver doesn't support 2 php version at the same time so everytime i use pm server i will switch to php 5.6 can this trick be a problem ?

tomolimo commented 3 years ago

hello @ammar-chebbi-sofrecom I beleive GLPI is no longuer supporting php < 7.3

ammar-chebbi-sofrecom commented 3 years ago

i found this , As of 9.5 release, GLPI requires PHP 7.2 or more recent.

https://glpi-install.readthedocs.io/en/latest/prerequisites.html

tomolimo commented 3 years ago

So you need to have two php versions: one for GLPI (> 7.2) and one for PM server (=7.1) If you are using Windows, then you may do so with IIS.

ammar-chebbi-sofrecom commented 3 years ago

okay i will try it and let you know , thank you

tomolimo commented 3 years ago

In IIS you may use this to configure the PHP you want to use

tomolimo commented 3 years ago

https://www.iis.net/downloads/community/2018/05/php-manager-150-for-iis-10

ammar-chebbi-sofrecom commented 3 years ago

hello @tomolimo sorry for my late reply finally i am running glpi and processmaker with IIS

using :

domaines GLPI : http://gl.infra:81 processmaker : http://pm.infra:81 and i got this error

image

thank your.

tomolimo commented 3 years ago

Hello @ammar-chebbi-sofrecom What is requested is the server URL, not the server hostname: you should put http://pm.infra:81 Thank you, Regards, Tomolimo

ammar-chebbi-sofrecom commented 3 years ago

yes true , because i got the same error when i put the port number image image

tomolimo commented 3 years ago

This is not the same error, this one means that there is no common domain with glpi... To have a common you must have three members to the FQDN (full qualified domain name), for example: http://gl.infra.com:81 and http://pm.infra.com:81 All is explained in the wiki: https://github.com/tomolimo/processmaker/wiki/Plugin-configuration Thank you Regards, Tomolimo

ammar-chebbi-sofrecom commented 3 years ago

Hello @tomolimo You are right after fixing all the problems, I've tried to install processmaker 3.3.0 community edition many times ,however I cannot use the Designer to edit or open BPMN processes , stuck on loading screen image i didn't got this problem before when i used wampserver thank you very much

tomolimo commented 3 years ago

Hello @ammar-chebbi-sofrecom

There is the need to install it one time only when following the installation wiki 😃!

Usually, the installation is really strait froward.

Question did you install the release I'm providing? See here: https://github.com/tomolimo/processmaker-server/releases/tag/3.3.0-RE-1.7 And did you follow step by step the installation procedures? See here: https://github.com/tomolimo/processmaker-server/wiki

For me this issue could be that the verbs of the PHP handler must be set as "All", and they are currently set by default.

If you need, I can connect to your system, and install it for you. You may contact me at Discord Tomolimo#1077.

Thank you Regards, Tomolimo

ammar-chebbi-sofrecom commented 3 years ago

Thank you @tomolimo for your help your are a super Hero 🥇 , keep going wish you the best :)

tomolimo commented 3 years ago

You're welcome 😄