Add new comment


Submitted by Erik Wegner on

The Drupal nagios module reads the entries from the watchdog list. It happens that this crashes with an internal server error.

Recoverable fatal error: Object of class __PHP_Incomplete_Class could not be converted to string

To quickly fix that problem and analyze it further, the following change mitigates the effect:

<         $message = str_replace((string) $key, $value, $message);
>         if (!is_array($value) && gettype($value) !== "object") {
>           $message = str_replace((string) $key, $value, $message);
>         }
Associated categories
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.