On the local server fully functionalBut on the server in the Internet does not work and shows an error message
- You may set up your PHP to display all errors: https://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting.
- Press F12 in your browser, go to the Network panel, check the server response to see the error messages.
Usually, this can be happened when end-user is trying to display the Lookup Table form but he/she does not have the “List” permission for that lookup table (v2019 and lower).
In v2020, then make sure you have already given the “Lookup” permission from the generated userpriv.php page of your web application.
In a lookup depending on the time the screen is open, when executing the search this is returning the error: “An error occured while communicating to the server”.
After pressing F5 and returning to the lookup, it works again.
Does anyone have any idea what it might be, because the loopup works normal in other situations
Thanks
When the error occurs, always go to the Network panel to check error. arbei wrote:
- You may set up your PHP to display all errors:
https://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting.- Press F12 in your browser, go to the Network panel, check the server response to see the error messages.
We have already done what is described in step 1. With respect to step 2, what exactly should we look for? Because no error information is displayed on the network panel.
arbei wrote:
- You may set up your PHP to display all errors:
https://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting.
- Click Tools → Advanced Settings, enable Debug, generate ewcfg.php again and upload again.
Now your server should show errors.
If the error occurs with lookup, then you should check the HTTP request to the API for lookup. You need to select the request in the Network panel first, then see the response in which you should find the error message.