Can anyone (that is, the developer) envision a scenario when auto_expire continuously expires a node? I am seeing the same node expire over and over again. My log message is "Auto expire purged node: 910", repeated many many times. Something seems to trigger this, but I am not sure what. It doesn't happen forever, but enough that it fills my log with these notices.

My problem is that I'm also using the userpoints module, and this occasional repeated node expiration causes points to be deducted over and over again from the node owner...thus causing erroneous points for the unfortunate user.

I'm using auto_expire 5.x-1.0 on a Drupal 5.3 installation. The node (e.g. node 910) is indeed purged right now, so I'm not sure why auto_expire is doing this. Any brainstorm ideas from the dev folks?

Thanks,

Matt
--

Comments

mgenovese’s picture

Priority: Normal » Critical
mgenovese’s picture

Category: bug » support
Miamano’s picture

Hi!

I have the same problem.

andreypaa’s picture

Status: Active » Needs review

Hello!
Please try this code.
Replace in auto_expire.module line about 287

while ($nid = db_result($result)) {

on this two line

while ($nid_obj = db_fetch_object($result)) {
          $nid = $nid_obj->nid;
gearhead’s picture

Does that resolve the issue?

marcvangend’s picture

The last comment is more than a year old, I assume this is fixed. Please re-open if this problem still needs attention.

marcvangend’s picture

Status: Needs review » Closed (fixed)

Oops, forgot to change the status.