Solution 1:
You could try suppressing errors with:
ini_set('error_reporting', 0);
⚠️ Warning:
- This is a dirty workaround and only hides the problem.
- The underlying issue is likely caused by a php.ini setting on the server that cannot be overridden within your code.
- It’s better to identify and fix the root cause rather than suppressing all errors.