Quickfix

Submitted by Erik Wegner on
Aufmacherbild

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:

526c526,528
<         $message = str_replace((string) $key, $value, $message);
---
>         if (!is_array($value) && gettype($value) !== "object") {
>           $message = str_replace((string) $key, $value, $message);
>         }
Associated categories

Add new comment

About text formats

Activitypub

  • Allowed HTML tags: <a href hreflang> <em> <strong> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.