unexpected error function get_required_fields code 2

Matthijs

Member
When I edit a record of a table, sometimes I get a pop-up with this text: "unexpected error function get_required_fields code 2". The popup disappears automatically.
Everythings seems however to work fine.
No errors/warnings in log.

Any idea what could trigger this?

thanks!

Your current DaDaBIK version​

You are using DaDaBIK version 12.1-Aveto enterprise, installed on 28-06-2024 (installation code: 18828644e443ac0e33), the latest version of DaDaBIK is 12.1-Aveto released on 03-06-2024

You are running the latest release of DaDaBIK

In case you want to upgrade to a more powerful edition (from Pro to Enterprise/Platinum, from Enterprise to Platinum) please contact us.

System info​

PHP Version: 7.4.33

mysql version: 5.5.5-10.6.18-MariaDB

Web server: Apache/2

Client: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0
 

eugenio

Administrator
Staff member
Hi,
most probably you have an error in your custom required/conditional functions.

Open the browser console and check in the network tab the response to the last call to index.php?function=get_required_fields
 

Matthijs

Member
Latest call got status 200, see attached.
I tested more, this problem is only when I use Firefox, when I use Edge I can not reproduce the problem!
 

Attachments

  • Schermafbeelding 2024-07-19 150956.png
    Schermafbeelding 2024-07-19 150956.png
    37.4 KB · Views: 7

Matthijs

Member
I still have this problem. But I can now reproduce it!

I have a large table. If I edit a row, it takes some time to fully load the page.
If the page is not completely loaded and I select another menu option, this error occurs!
But if I let the page fully load, and the select the menu option, no error!
 

eugenio

Administrator
Staff member
Hello,
so, the steps to reproduce the problems are:
1) Open an edit form page containing custom required functions
2) Leave the page before it's fully load

Is this correct?
 

eugenio

Administrator
Staff member
Sorry for the late reply. It's most probably related to a bug that I am investigating, I will let you know something soon.
Even though it's annoying message, it doesn't have an impact on your data.
 
Top