I developed a simple website to store registration information using PHP code and MySQL database.
The system works perfectly in the test environment (XAMPP for Windows 7.2.0 running PHP 7.2.1), but when running in the production environment (UOL Host with PHP 7.1), I occasionally get the server error "500 Internal Server Error "in the browser, and is not on any specific page, happens randomly.
I talked to UOL Host support and they said that it might be a problem in my PHP code, but I do not even know where to start investigating, since in all the tests I do in my test environment, the error never occurs. It looks like it might be some configuration problem in UOL's shared PHP installation.
I checked the PHP log in production, but I did not find anything that might indicate the cause of the error.