Ask questions about installing and configuring ProcessMaker 3
By FouadSar
#823519
I work on PM 3.2.1 and there is a problem when the users try downloading documents and the error 403 appear, although the user are assigned to the task and have input and output document permission, the user is not able to download the attachment, so appreciate if anyone can help please.
By FouadSar
#823546
Thanks for your reply, I added the flag (disable_download_documents_session_validation = 1) to the env.ini located at C:\Bitnami\processmaker-3.2.1\apps\processmaker\htdocs\workflow\engine\config\env.ini but that did not solve the problem, in spite of all the users have a permission for viewing input and output document and assigned to the task but still get the same error.
By FouadSar
#823567
the "env.ini" file does not exist in the following path: C:\Bitnami\processmaker-3.2.1-0\apps\processmaker\htdocs\shared\sites\workflow, I tried to copy it from the path "C:\Bitnami\processmaker-3.2.1-0\apps\processmaker\htdocs\workflow\engine\config" but also did not work, additional note as admin I am able to see and download the uploaded files in a task which is assigned to me from the document from Home --> main menu on the left --> Documents.
User avatar
By amosbatto
#823582
This is strange. Let's verify that ProcessMaker is reading the env.ini file correctly.

Import this process in your installation of ProcessMaker:
(35.86 KiB) Downloaded 366 times


Then, assign a user to the "Task 1" and run a case in the process.

It should display the system configuration and you should see:
["disable_download_documents_session_validation"]=>
int(1)

Do you see that?

showSystemConfig.png
showSystemConfig.png (91.28 KiB) Viewed 8104 times
By FouadSar
#823590
I applied it and found that value still 0 not 1 as attached. I restarted the server but did not solve the problem so could you please advise?
Attachments
pm.PNG
pm.PNG (80.4 KiB) Viewed 8098 times
User avatar
By amosbatto
#823610
This is bizarre. Can you post the contents of both your workflow\engine\config\env.ini and shared\sites\workflow\env.ini files?

For now, edit your file workflow\engine\classes\class.system.php and change line 83 from:
Code: Select all
        'disable_download_documents_session_validation' => 0
To
Code: Select all
        'disable_download_documents_session_validation' => 1
Now, it should work but I don't understand why ProcessMaker isn't reading your env.ini file.
By FouadSar
#823652
I did not find the file you mentioned "workflow\engine\classes\class.system.php", inside engine I only have config folder. I also do not have env.ini file in "shared\sites\workflow\" as attached.
Attachments
PM3.png
PM3.png (14.59 KiB) Viewed 8082 times
PM2.png
PM2.png (11.45 KiB) Viewed 8082 times
User avatar
By amosbatto
#823696
You are looking in the wrong place.

The path on your server should be something like:
C:\Bitnami\processmaker-3.2.1-0\apps\processmaker\htdocs\workflow\engine\classes\class.system.php
By FouadSar
#823709
Hi, in the path you mentioned there is only one folder which is config as attached. I did not find classes\class.system.php anywhere.
Attachments
PM4.png
PM4.png (6.35 KiB) Viewed 8031 times
By FouadSar
#823710
Hi, it turned out that the installation folder for the working PM currently is not on the C drive, it is on the E drive, so after i added the disable_download_documents_session_validation=1 flag to the env.ini file in the correct path it has been solved. thanks a lot for your support.

Being the best in the started business is the obje[…]

Winzo is a popular and unique game on the mobile p[…]

Cannot create process using templets

Real details. The problem was solved by effect!

However, it is essential to use it responsibly and[…]