Automate Action leads to "Page Not Found"

Post Reply
p_hd
Posts: 121
Joined: 03 Feb 2021, 11:40
Name: Pedro Viana
Location: Portugal - Braga
Company Name: Clever Solutions, Lda.
Contact:

Automate Action leads to "Page Not Found"

Post by p_hd »

Dear Sergey,

After update to 3.2.1 I have a problem with automate action in one entity. Was working in previous versions.

I set up automate actions and create a field type "process button" and apparently everything is ok, but if I press the button it redirects to "page not found", but if I go inside the record it works and also works if I put the action button in "records listing".

I can't find any error in logs, and also it works for other entity.

Can you help, please?

Thanks
p_hd
Posts: 121
Joined: 03 Feb 2021, 11:40
Name: Pedro Viana
Location: Portugal - Braga
Company Name: Clever Solutions, Lda.
Contact:

Re: Automate Action leads to "Page Not Found"

Post by p_hd »

In logs I get:

http log
Captura de ecrã 2022-08-31, às 15.00.50.png
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Automate Action leads to "Page Not Found"

Post by support »

It's hard to reproduce this issue. Please create similar button on personal deme and reproduce this issue https://www.rukovoditel.net/demo.php
Send me link to the demo and I will sort out.
p_hd
Posts: 121
Joined: 03 Feb 2021, 11:40
Name: Pedro Viana
Location: Portugal - Braga
Company Name: Clever Solutions, Lda.
Contact:

Re: Automate Action leads to "Page Not Found"

Post by p_hd »

I will try to reproduce the problem.

For now, rolled back to 3.2 and it works perfectly.

Thanks
p_hd
Posts: 121
Joined: 03 Feb 2021, 11:40
Name: Pedro Viana
Location: Portugal - Braga
Company Name: Clever Solutions, Lda.
Contact:

Re: Automate Action leads to "Page Not Found"

Post by p_hd »

Hi

I can't reproduce the error, since there are some interactions with various tables. I tried to restore the db but gives an error "file not found".

I can send to you a db backup on private message.

Thanks.
p_hd
Posts: 121
Joined: 03 Feb 2021, 11:40
Name: Pedro Viana
Location: Portugal - Braga
Company Name: Clever Solutions, Lda.
Contact:

Re: Automate Action leads to "Page Not Found"

Post by p_hd »

I Sergey

If I update to version 3.3, path leads to "Page Not Found", it's working perfectly with version 3.2, but after some tests I think the problem is that the path is wrong, any ideias how to fix this?

I need some help to understand how path works:

index.php?module=items/processes&id=16&path=1-9324&redirect_to=items&gotopage[598]=1

After tests I found that the app_entity is 100, but on path appears 1, instead of 100. If i change it to 100 it works.
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Automate Action leads to "Page Not Found"

Post by support »

Still not clear what is wrong. Please reproduce your issue on personal demo https://www.rukovoditel.net/demo.php
So I can see in real example what is not ok.
p_hd
Posts: 121
Joined: 03 Feb 2021, 11:40
Name: Pedro Viana
Location: Portugal - Braga
Company Name: Clever Solutions, Lda.
Contact:

Re: Automate Action leads to "Page Not Found"

Post by p_hd »

Hi Sergey

I have reproduced the error, kinda... demo_id=1830

In menu "Test" there is a button "test" that make one action to update, and it leads to "Access Forbidden" page.

the error is related to app_entity_100 (yes, I have to make entities to get to the 100 entity), in the button, on the row, you get this link:
"open_dialog('https://pdemo.rukovoditel.pro/3.3/index ... mo_id=1830'); return false;"

As you can see the path is =1, and it should be =100

Thanks
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Automate Action leads to "Page Not Found"

Post by support »

I think I have found issue. File from archive replace to includes\classes\fieldstypes\
Let me know if it works ok now.
Attachments
fieldtype_process_button.zip
(2.72 KiB) Downloaded 61 times
p_hd
Posts: 121
Joined: 03 Feb 2021, 11:40
Name: Pedro Viana
Location: Portugal - Braga
Company Name: Clever Solutions, Lda.
Contact:

Re: Automate Action leads to "Page Not Found"

Post by p_hd »

Hi Sergey,

it works, thanks.
Post Reply