The Log module provides an input filter that will search for instances of [log:X] (where X is a log ID), and use that to generate an inline link to the reference log.

However, the code that generates the link performs a full log_load(). So, if you have two logs that reference each other with [log:X] links, it creates an infinite loop and crashes Drupal.

The solution: don't use log_load() in log_filter_log().

Comments

m.stenta created an issue. See original summary.

  • m.stenta committed cf65b91 on 7.x-1.x
    Issue #2712167: Two logs referencing each other with [log:X] causes...
m.stenta’s picture

Status: Active » Closed (fixed)

Fixed. I removed the call to log_load() and simply load the log name from the database directly.

It's not great because it bypasses the API, but I couldn't get it to work with log_load(). I even tried replicating the way that the project_issue module does it, to no avail.