tomolimo / processmaker

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

Question: Trying to follow the tutorial, Invalid host in HTTP_REFERER after submit button #94

Closed Geo-Ron closed 4 years ago

Geo-Ron commented 4 years ago

Current install: -GLPI 9.4.3 on IIS with PHP7 and MariaDB -Processmaker on the same server, IIS site with PHP 5.6.30 and the same MariaDB -Processmaker 3.3.0-community-RE-1.6 -Processmaker plugin 3.6.5

After pressing the SUBMIT button from Tutorial 1, I receive following error: image

Is this to be expected? Or do I have still an issue in my dev environment?

tomolimo commented 4 years ago

Hello @Geo-Ron I think you still have an issue in the configuration of the url. Could you do screen copies of the PM server configurations, and of the PM plugin configuration, and of GLPI configuration? Thank you, Regards, Tomolimo

Geo-Ron commented 4 years ago

Off course I can

image image

tomolimo commented 4 years ago

Thank you, And what about GLPI configuration?

Geo-Ron commented 4 years ago

image

this piece?

tomolimo commented 4 years ago

yes, thank you,

Do you have any logs in the php-errors.log? In GLPI folder /files/_log/

Same question for PM server?

thank you

Geo-Ron commented 4 years ago

[19-Sep-2019 11:28:05 Europe/Amsterdam] PHP Notice: Undefined index: GLPI_DOMAIN in D:\whereisthisfolder\processmaker-server\workflow\public_html\glpi\app.php on line 219

[2019-09-18 20:27:31] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in D:\WhereIsThis\inc\toolbox.class.php line 659
  *** PHP Notice(8): Undefined index: taskcategories_id
  Backtrace :
  ...ns\processmaker\inc\processmaker.class.php:1712 
  ...ns\processmaker\inc\processmaker.class.php:1932 PluginProcessmakerProcessmaker->addTask()
  ...ns\processmaker\inc\processmaker.class.php:2881 PluginProcessmakerProcessmaker->add1stTask()
  ...ins\processmaker\front\processmaker.form.php:11 PluginProcessmakerProcessmaker->startNewCase()
  {"user":"9@MYSERVER"} 
[2019-09-18 20:27:31] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in D:\WhereIsThis\inc\toolbox.class.php line 659
  *** PHP Notice(8): Undefined index: plugin_processmaker_processes_id
  Backtrace :
  ...ns\processmaker\inc\processmaker.class.php:1715 
  ...ns\processmaker\inc\processmaker.class.php:1932 PluginProcessmakerProcessmaker->addTask()
  ...ns\processmaker\inc\processmaker.class.php:2881 PluginProcessmakerProcessmaker->add1stTask()
  ...ins\processmaker\front\processmaker.form.php:11 PluginProcessmakerProcessmaker->startNewCase()
  {"user":"9@MYSERVER","mem_usage":"0.001\", 3.93Mio)"} 
[2019-09-18 20:27:31] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in D:\WhereIsThis\inc\toolbox.class.php line 659
  *** PHP Notice(8): Undefined index: insert_task_comment
  Backtrace :
  ...ns\processmaker\inc\processmaker.class.php:1798 
  ...ns\processmaker\inc\processmaker.class.php:1932 PluginProcessmakerProcessmaker->addTask()
  ...ns\processmaker\inc\processmaker.class.php:2881 PluginProcessmakerProcessmaker->add1stTask()
  ...ins\processmaker\front\processmaker.form.php:11 PluginProcessmakerProcessmaker->startNewCase()
  {"user":"9@MYSERVER","mem_usage":"0.001\", 3.93Mio)"} 
[2019-09-18 20:27:31] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in D:\WhereIsThis\inc\toolbox.class.php line 659
  *** PHP Notice(8): Undefined index: hide_case_num_title
  Backtrace :
  ...ns\processmaker\inc\processmaker.class.php:1804 
  ...ns\processmaker\inc\processmaker.class.php:1932 PluginProcessmakerProcessmaker->addTask()
  ...ns\processmaker\inc\processmaker.class.php:2881 PluginProcessmakerProcessmaker->add1stTask()
  ...ins\processmaker\front\processmaker.form.php:11 PluginProcessmakerProcessmaker->startNewCase()
  {"user":"9@MYSERVER","mem_usage":"0.000\", 3.93Mio)"} 
[2019-09-18 20:27:31] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in D:\WhereIsThis\inc\toolbox.class.php line 659
  *** PHP Notice(8): Undefined index: id
  Backtrace :
  ...ins\processmaker\front\processmaker.form.php:29 
  {"user":"9@MYSERVER","mem_usage":"0.008\", 4.24Mio)"} 
[2019-09-18 20:36:05] glpiphplog.NOTICE: Dropdown::show() in D:\WhereIsThis\inc\dropdown.class.php line 84
Using a string in condition option is deprecated.  {"user":"9@MYSERVER"} 
[2019-09-18 20:36:05] glpiphplog.NOTICE: Dropdown::addNewCondition() in D:\WhereIsThis\inc\dropdown.class.php line 284
Using a string in dropdown condition is deprecated.  {"user":"9@MYSERVER","mem_usage":"0.001\", 3.57Mio)"} 
[2019-09-19 06:57:52] glpiphplog.NOTICE: Dropdown::show() in D:\WhereIsThis\inc\dropdown.class.php line 84
Using a string in condition option is deprecated.  {"user":"9@MYSERVER"} 
[2019-09-19 06:57:52] glpiphplog.NOTICE: Dropdown::addNewCondition() in D:\WhereIsThis\inc\dropdown.class.php line 284
Using a string in dropdown condition is deprecated.  {"user":"9@MYSERVER","mem_usage":"0.008\", 3.70Mio)"} 
[2019-09-19 07:20:05] glpiphplog.NOTICE: Dropdown::show() in D:\WhereIsThis\inc\dropdown.class.php line 84
Using a string in condition option is deprecated.  {"user":"9@MYSERVER"} 
[2019-09-19 07:20:05] glpiphplog.NOTICE: Dropdown::addNewCondition() in D:\WhereIsThis\inc\dropdown.class.php line 284
Using a string in dropdown condition is deprecated.  {"user":"9@MYSERVER","mem_usage":"0.001\", 3.71Mio)"} 
[2019-09-19 09:27:50] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in D:\WhereIsThis\inc\toolbox.class.php line 659
  *** PHP Notice(8): Undefined property: stdClass::$caseId
  Backtrace :
  plugins\processmaker\inc\case.class.php:373        
  plugins\processmaker\inc\case.class.php:585        PluginProcessmakerCase->showCaseProperties()
  plugins\processmaker\inc\case.class.php:1417       PluginProcessmakerCase::showCaseInfoTab()
  inc\commonglpi.class.php:475                       PluginProcessmakerCase->showForm()
  ajax\common.tabs.php:92                            CommonGLPI::displayStandardTab()
  {"user":"9@MYSERVER"} 
[2019-09-19 09:27:50] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in D:\WhereIsThis\inc\toolbox.class.php line 659
  *** PHP Notice(8): Undefined property: stdClass::$processName
  Backtrace :
  plugins\processmaker\inc\case.class.php:493        
  plugins\processmaker\inc\case.class.php:386        PluginProcessmakerCase->showShort()
  plugins\processmaker\inc\case.class.php:585        PluginProcessmakerCase->showCaseProperties()
  plugins\processmaker\inc\case.class.php:1417       PluginProcessmakerCase::showCaseInfoTab()
  inc\commonglpi.class.php:475                       PluginProcessmakerCase->showForm()
  ajax\common.tabs.php:92                            CommonGLPI::displayStandardTab()
  {"user":"9@MYSERVER","mem_usage":"0.001\", 4.02Mio)"} 
[2019-09-19 09:27:50] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in D:\WhereIsThis\inc\toolbox.class.php line 659
  *** PHP Notice(8): Undefined property: stdClass::$caseName
  Backtrace :
  plugins\processmaker\inc\case.class.php:497        
  plugins\processmaker\inc\case.class.php:386        PluginProcessmakerCase->showShort()
  plugins\processmaker\inc\case.class.php:585        PluginProcessmakerCase->showCaseProperties()
  plugins\processmaker\inc\case.class.php:1417       PluginProcessmakerCase::showCaseInfoTab()
  inc\commonglpi.class.php:475                       PluginProcessmakerCase->showForm()
  ajax\common.tabs.php:92                            CommonGLPI::displayStandardTab()
  {"user":"9@MYSERVER","mem_usage":"0.000\", 4.02Mio)"} 
[2019-09-19 09:27:50] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in D:\WhereIsThis\inc\toolbox.class.php line 659
  *** PHP Notice(8): Undefined property: stdClass::$caseNumber
  Backtrace :
  plugins\processmaker\inc\case.class.php:499        
  plugins\processmaker\inc\case.class.php:386        PluginProcessmakerCase->showShort()
  plugins\processmaker\inc\case.class.php:585        PluginProcessmakerCase->showCaseProperties()
  plugins\processmaker\inc\case.class.php:1417       PluginProcessmakerCase::showCaseInfoTab()
  inc\commonglpi.class.php:475                       PluginProcessmakerCase->showForm()
  ajax\common.tabs.php:92                            CommonGLPI::displayStandardTab()
  {"user":"9@MYSERVER","mem_usage":"0.000\", 4.02Mio)"} 
[2019-09-19 09:27:50] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in D:\WhereIsThis\inc\toolbox.class.php line 659
  *** PHP Notice(8): Undefined property: stdClass::$caseStatus
  Backtrace :
  plugins\processmaker\inc\case.class.php:500        
  plugins\processmaker\inc\case.class.php:386        PluginProcessmakerCase->showShort()
  plugins\processmaker\inc\case.class.php:585        PluginProcessmakerCase->showCaseProperties()
  plugins\processmaker\inc\case.class.php:1417       PluginProcessmakerCase::showCaseInfoTab()
  inc\commonglpi.class.php:475                       PluginProcessmakerCase->showForm()
  ajax\common.tabs.php:92                            CommonGLPI::displayStandardTab()
  {"user":"9@MYSERVER","mem_usage":"0.000\", 4.02Mio)"} 
[2019-09-19 09:27:50] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in D:\WhereIsThis\inc\toolbox.class.php line 659
  *** PHP Notice(8): Undefined property: stdClass::$caseId
  Backtrace :
  plugins\processmaker\inc\case.class.php:501        
  plugins\processmaker\inc\case.class.php:386        PluginProcessmakerCase->showShort()
  plugins\processmaker\inc\case.class.php:585        PluginProcessmakerCase->showCaseProperties()
  plugins\processmaker\inc\case.class.php:1417       PluginProcessmakerCase::showCaseInfoTab()
  inc\commonglpi.class.php:475                       PluginProcessmakerCase->showForm()
  ajax\common.tabs.php:92                            CommonGLPI::displayStandardTab()
  {"user":"9@MYSERVER","mem_usage":"0.000\", 4.02Mio)"} 
[2019-09-19 09:27:50] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in D:\WhereIsThis\inc\toolbox.class.php line 659
  *** PHP Notice(8): Undefined property: stdClass::$caseCreatorUserName
  Backtrace :
  plugins\processmaker\inc\case.class.php:502        
  plugins\processmaker\inc\case.class.php:386        PluginProcessmakerCase->showShort()
  plugins\processmaker\inc\case.class.php:585        PluginProcessmakerCase->showCaseProperties()
  plugins\processmaker\inc\case.class.php:1417       PluginProcessmakerCase::showCaseInfoTab()
  inc\commonglpi.class.php:475                       PluginProcessmakerCase->showForm()
  ajax\common.tabs.php:92                            CommonGLPI::displayStandardTab()
  {"user":"9@MYSERVER","mem_usage":"0.000\", 4.02Mio)"} 
[2019-09-19 09:27:50] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in D:\WhereIsThis\inc\toolbox.class.php line 659
  *** PHP Notice(8): Undefined property: stdClass::$createDate
  Backtrace :
  plugins\processmaker\inc\case.class.php:503        
  plugins\processmaker\inc\case.class.php:386        PluginProcessmakerCase->showShort()
  plugins\processmaker\inc\case.class.php:585        PluginProcessmakerCase->showCaseProperties()
  plugins\processmaker\inc\case.class.php:1417       PluginProcessmakerCase::showCaseInfoTab()
  inc\commonglpi.class.php:475                       PluginProcessmakerCase->showForm()
  ajax\common.tabs.php:92                            CommonGLPI::displayStandardTab()
  {"user":"9@MYSERVER","mem_usage":"0.000\", 4.02Mio)"} 
[2019-09-19 09:27:50] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in D:\WhereIsThis\inc\toolbox.class.php line 659
  *** PHP Notice(8): Undefined property: stdClass::$updateDate
  Backtrace :
  plugins\processmaker\inc\case.class.php:504        
  plugins\processmaker\inc\case.class.php:386        PluginProcessmakerCase->showShort()
  plugins\processmaker\inc\case.class.php:585        PluginProcessmakerCase->showCaseProperties()
  plugins\processmaker\inc\case.class.php:1417       PluginProcessmakerCase::showCaseInfoTab()
  inc\commonglpi.class.php:475                       PluginProcessmakerCase->showForm()
  ajax\common.tabs.php:92                            CommonGLPI::displayStandardTab()
  {"user":"9@MYSERVER","mem_usage":"0.000\", 4.02Mio)"} 
[2019-09-19 09:30:26] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in D:\WhereIsThis\inc\toolbox.class.php line 659
  *** PHP Notice(8): Undefined index: state
  Backtrace :
  plugins\actualtime\inc\task.class.php:487          
  plugins\actualtime\hook.php:35                     PluginActualtimeTask::preUpdate()
  inc\plugin.class.php:1112                          plugin_actualtime_item_update()
  inc\commondbtm.class.php:1361                      Plugin::doHook()
  plugins\processmaker\inc\case.class.php:285        CommonDBTM->update()
  plugins\processmaker\inc\case.class.php:256        PluginProcessmakerCase->reassignTask()
  ...ins\processmaker\front\processmaker.form.php:96 PluginProcessmakerCase->reassignCase()
  {"user":"9@MYSERVER"} 
[2019-09-19 09:30:40] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in D:\WhereIsThis\inc\toolbox.class.php line 659
  *** PHP Notice(8): Undefined index: state
  Backtrace :
  plugins\actualtime\inc\task.class.php:487          
  plugins\actualtime\hook.php:35                     PluginActualtimeTask::preUpdate()
  inc\plugin.class.php:1112                          plugin_actualtime_item_update()
  inc\commondbtm.class.php:1361                      Plugin::doHook()
  plugins\processmaker\inc\case.class.php:285        CommonDBTM->update()
  plugins\processmaker\inc\case.class.php:256        PluginProcessmakerCase->reassignTask()
  ...ins\processmaker\front\processmaker.form.php:96 PluginProcessmakerCase->reassignCase()
  {"user":"9@MYSERVER"} 
[2019-09-19 09:52:57] glpiphplog.NOTICE: Dropdown::show() in D:\WhereIsThis\inc\dropdown.class.php line 84
Using a string in condition option is deprecated.  {"user":"9@MYSERVER"} 
[2019-09-19 09:52:57] glpiphplog.NOTICE: Dropdown::addNewCondition() in D:\WhereIsThis\inc\dropdown.class.php line 284
Using a string in dropdown condition is deprecated.  {"user":"9@MYSERVER","mem_usage":"0.001\", 3.67Mio)"} 
[2019-09-19 09:53:06] glpiphplog.NOTICE: Dropdown::getDropdownValue() in D:\WhereIsThis\inc\dropdown.class.php line 2320
Please no longer use raw SQL for conditions!  {"user":"9@MYSERVER"} 

Some log extracts

tomolimo commented 4 years ago

Looks like the param GLPI_DOMAIN is not passed by GLPI to PM... Could you copy/paste the rewrite rule you've defined fro PM server in IIS?

Geo-Ron commented 4 years ago

image

According to https://github.com/tomolimo/processmaker-server/wiki/Inbound-rewrite-rules this should be correct

Geo-Ron commented 4 years ago

Sorry: you asked for a copy/paste:

       <rewrite>
            <rules>
                <rule name="ProcessMaker Rule" stopProcessing="true">
                    <match url="^.*/(.*)$" ignoreCase="true" />
                    <action type="Rewrite" url="glpi/app.php" />
                </rule>
            </rules>
        </rewrite>
tomolimo commented 4 years ago

I got the same rule in my own instance

tomolimo commented 4 years ago

Did you define the skins like describe here: https://github.com/tomolimo/processmaker-server/wiki/Skins?

Geo-Ron commented 4 years ago

Yip image

tomolimo commented 4 years ago

Hello @Geo-Ron Could you delete log file content and then retry to reproduce the error? This should produce the same error message and a fresh log. Thank you, Regards, Tomolimo

tomolimo commented 4 years ago

Hello @Geo-Ron I close this issue as there is no answer to last post. Feel free to re-open when you'll need it. Thank you Regards, Tomolimo