tomolimo / processmaker

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

Dynaforms are blank (iFrame is empty) #96

Closed momohamed770 closed 4 years ago

momohamed770 commented 4 years ago

Hi,

When i make a change and open a case through the GLPI interface i got the following:

image

image

tomolimo commented 4 years ago

Hello @momohamed770 Could you check the javascript console log of your browser? You may press F12 to view it. Thank you Regards, Tomolimo

momohamed770 commented 4 years ago

Kindly find the output , i'm suspecting that GLPI is running over https while PM is running over http.

image

tomolimo commented 4 years ago

Hello @momohamed770 The only possible ways are running GLPI with HTTP and PM with HTTPS or running both with the same protocol. Regards, Tomolimo

momohamed770 commented 4 years ago

I did a change on GLPI and both servers now are using http but still the issue appearing I tried with all browsers and made all the security exceptions

tomolimo commented 4 years ago

And what is the content of the javascript console log?

momohamed770 commented 4 years ago

The same error image

tomolimo commented 4 years ago

I believe that the FQDN of GLPI server and FQDN of PM server don't have a common domain! See: https://github.com/tomolimo/processmaker/wiki/Plugin-configuration#pm-server-setup

momohamed770 commented 4 years ago

the domain is the same image

tomolimo commented 4 years ago

So another idea is the URL rewrite rule of the PM server that may be doesn't respect this: https://github.com/tomolimo/processmaker-server/wiki/Inbound-rewrite-rules

momohamed770 commented 4 years ago

I checked it and its configured as recommended, i’m using apache for PM while using IIS for glpi is that may be a reason?

Sent from my Iphone


From: tomolimo notifications@github.com Sent: Tuesday, October 29, 2019 12:58:37 PM To: tomolimo/processmaker processmaker@noreply.github.com Cc: Osama Mohamed, Mohamed momohamed@EFG-HERMES.com; Mention mention@noreply.github.com Subject: Re: [tomolimo/processmaker] Dynaforms are blank (iFrame is empty) (#96)

So another idea is the URL rewrite rule of the PM server that may be doesn't respect this: https://github.com/tomolimo/processmaker-server/wiki/Inbound-rewrite-ruleshttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftomolimo%2Fprocessmaker-server%2Fwiki%2FInbound-rewrite-rules&data=02%7C01%7Cmomohamed%40efg-hermes.com%7Cbb18b1470ea04720a00f08d75c5ef3fd%7C0d301d27a05141b8b1ac6de8b154a76e%7C0%7C0%7C637079435199704003&sdata=e9OdYQUhwueuvYtxkb0CLZTEqiotj5N1bVqftKCvMcM%3D&reserved=0

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftomolimo%2Fprocessmaker%2Fissues%2F96%3Femail_source%3Dnotifications%26email_token%3DANRJ3AVRLALZAOQWSVDSLJTQRAJN3A5CNFSM4JGFJ6E2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECQCH7A%23issuecomment-547365884&data=02%7C01%7Cmomohamed%40efg-hermes.com%7Cbb18b1470ea04720a00f08d75c5ef3fd%7C0d301d27a05141b8b1ac6de8b154a76e%7C0%7C0%7C637079435199704003&sdata=%2Br7P1NsNaT4NLanUJkPxyNxCxGuNI1hJlFbJ90npD4o%3D&reserved=0, or unsubscribehttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FANRJ3ASPSLU2UPZREQ3FCUDQRAJN3ANCNFSM4JGFJ6EQ&data=02%7C01%7Cmomohamed%40efg-hermes.com%7Cbb18b1470ea04720a00f08d75c5ef3fd%7C0d301d27a05141b8b1ac6de8b154a76e%7C0%7C0%7C637079435199713991&sdata=a%2FvLGpC1oqSiSiivSeDzJcmDzh60kRZg%2F3F65aeqs5o%3D&reserved=0.


This e-mail and any attachments ("Email") is for the exclusive use of the intended recipient. Please notify the sender if you have received this Email in error and do not disclose or use the information contained within it as such information may be confidential, proprietary or legally privileged. Email transmission cannot be guaranteed to be secure, error-free or virus-free. We do not accept liability for any errors or omissions in the Email which arise as a result of electronic transmission, or for any damage caused by any virus transmitted by this Email. Unless specifically stated, this Email is not intended to constitute the provision of or the offer to provide any financial service or product. You should not rely on advice contained within this Email unless it is clear that you are being invited to. EFG-Hermes Holding SAE has its address at Building No. B129, Phase 3, Smart Village, KM 28, Cairo-Alexandria Desert Road, Egypt and has an issued capital of EGP 3,843,091,115 . ???????? ??????? ?????? ??????? ???? ?????? ???? ??? ? 129 – ??????? ??????? – ?????? ?????? – ?????? 28 – ???? ??????? ?????????? ???????? ??? ????? ??????: 3,843,091,115 ??

tomolimo commented 4 years ago

It should be possible to work with both as long the IP ports are different. Could you post the httpd.conf file of the PM server?

tomolimo commented 4 years ago

Thank you, but in fact what I need is the pmos.conf file You may delete your previous post if you want

momohamed770 commented 4 years ago

Listen 8080 <VirtualHost *:8080>

DocumentRoot C:\opt\processmaker\workflow\public_html
DirectoryIndex index.html index.php

<Directory C:\opt\processmaker\workflow\public_html>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    Allow from all
    Require all granted

    ExpiresActive On

    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^(.*)$ /glpi/app.php [QSA,L]

    </IfModule>
</Directory>

tomolimo commented 4 years ago

thank you

tomolimo commented 4 years ago

Go back to the javascript log console: I think that we must concentrate on this to get out of this issue Could you check the network traces? We have to find the root cause for the "cross origin" error message.

momohamed770 commented 4 years ago

I found this in the network traces

image

tomolimo commented 4 years ago

this is not linked with this issue this appears due to a missing MIME type in IIS configuraiton

tomolimo commented 4 years ago

could you show me the complete trace?

momohamed770 commented 4 years ago

Can i share it via email?

momohamed770 commented 4 years ago

I've sent the file

momohamed770 commented 4 years ago

Have you received it?

tomolimo commented 4 years ago

Hello @momohamed770 I think I found the root cause: the URL used for GLPI is not the one you've defined in the general GLPI settings. Could you check that? Thank you

momohamed770 commented 4 years ago

You are correct I was opening the GLPI without the complete FQDN, I tried now with FQDN and the form appeared.

Also it is a must to have both servers using same protocol either http or https.

Thanks & Regards, Mohamed Osama Ibrahim

From: tomolimo [mailto:notifications@github.com] Sent: Wednesday, October 30, 2019 1:19 PM To: tomolimo/processmaker processmaker@noreply.github.com Cc: Osama Mohamed, Mohamed momohamed@EFG-HERMES.com; Mention mention@noreply.github.com Subject: Re: [tomolimo/processmaker] Dynaforms are blank (iFrame is empty) (#96)

Hello @momohamed770https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmomohamed770&data=02%7C01%7Cmomohamed%40efg-hermes.com%7C4ed9b4a54453453057eb08d75d2ae84e%7C0d301d27a05141b8b1ac6de8b154a76e%7C0%7C0%7C637080311186353961&sdata=%2Bl%2BZlnN84LCUnekGQ5XkfSFredcHTVMmNdftVYCVpCE%3D&reserved=0 I think I found the root cause: the URL used for GLPI is not the one you've defined in the general GLPI settings. Could you check that? Thank you

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftomolimo%2Fprocessmaker%2Fissues%2F96%3Femail_source%3Dnotifications%26email_token%3DANRJ3AQF2KNJ7NDN5BWIKO3QRFUQXA5CNFSM4JGFJ6E2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECTZGYQ%23issuecomment-547853154&data=02%7C01%7Cmomohamed%40efg-hermes.com%7C4ed9b4a54453453057eb08d75d2ae84e%7C0d301d27a05141b8b1ac6de8b154a76e%7C0%7C0%7C637080311186363964&sdata=XMyrB%2BzQk9qwPLPEH0d2FS5D1jDha5yhdWQA8m9qUCc%3D&reserved=0, or unsubscribehttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FANRJ3AW2GRW5ANJT6WOX55TQRFUQXANCNFSM4JGFJ6EQ&data=02%7C01%7Cmomohamed%40efg-hermes.com%7C4ed9b4a54453453057eb08d75d2ae84e%7C0d301d27a05141b8b1ac6de8b154a76e%7C0%7C0%7C637080311186363964&sdata=9za6uB8hjtV0v9THfLr6OJLXChTA4Ik%2FiaGbVQvFlX8%3D&reserved=0.


This e-mail and any attachments ("Email") is for the exclusive use of the intended recipient. Please notify the sender if you have received this Email in error and do not disclose or use the information contained within it as such information may be confidential, proprietary or legally privileged. Email transmission cannot be guaranteed to be secure, error-free or virus-free. We do not accept liability for any errors or omissions in the Email which arise as a result of electronic transmission, or for any damage caused by any virus transmitted by this Email. Unless specifically stated, this Email is not intended to constitute the provision of or the offer to provide any financial service or product. You should not rely on advice contained within this Email unless it is clear that you are being invited to. EFG-Hermes Holding SAE has its address at Building No. B129, Phase 3, Smart Village, KM 28, Cairo-Alexandria Desert Road, Egypt and has an issued capital of EGP 3,843,091,115 . المجموعة المالية هيرميس القابضة شركة مساهمة مبنى رقم ب 129 – المرحلة الثالثة – القرية الذكية – الكيلو 28 – طريق القاهرة الأسكندرية الصحراوى رأس المال المصدر: 3,843,091,115 جم

momohamed770 commented 4 years ago

Thanks a lot for your support and prompt response

tomolimo commented 4 years ago

You're welcome :)