Closed nickchomey closed 2 years ago
Hello,
With the recent version of PHP, the default PHP error reporting was set to all like so: error_reporting = E_ALL. Here's a link that shows how to suppress e_deprecated notices by setting error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT. As a workaround, could you please try to suppress e_deprecated notices and see if that helps your issue?
If that doesn't work, we'll need to gather more details about the situation.
The problem seems to have gone away. I'm not sure what changed. I'll re-open the issue if it comes back and the ideas you shared fail to fix it. Sorry!
Sounds good, thanks for keeping us updated :)
hi @zsistla,
I'm facing the same issue now. Should I open new ticket? Disabling newrelic.enabled = false stopped the Deprecation notice. I want to keep the Deprecation notice enabled.
Specs:
Thank you.
I'm having the same issue with newrelic active and php 8.1/8.2 The following code can be used to replicate it.
ini_set('display_errors', '1'); error_reporting(E_ALL);
$link = mysqli_init();
define('DB_USER', 'myuser'); define('DB_PASSWORD', 'mypass'); define('DB_NAME', null);
mysqli_real_connect($link, 'localhost', DB_USER, DB_PASSWORD, DB_NAME);
Description
If I have newrelic-php-agent enabled, I get these errors in my debug log.
They're just deprecation notices, so not a big deal. But I'm also getting a strange shift of items on my page.
With newrelic-php-agent enabled:
With newrelic-php-agent disabled:
This doesn't happen with newrelic enabled for either php 8.0 or 7.4. So, there's something going on with the newrelic-php-agent for 8.1.
Your Environment
Ubuntu 20.04 server OpenLiteSpeed V1.7.16 Wordpress 6.0