Expiration repeatedly expires the same node

mgenovese - January 31, 2008 - 06:27
Project:Auto Expire
Version:5.x-1.0
Component:Code
Category:support request
Priority:critical
Assigned:Unassigned
Status:closed
Description

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
--

#1

mgenovese - January 31, 2008 - 06:32
Priority:normal» critical

#2

mgenovese - February 1, 2008 - 02:40
Category:bug report» support request

#3

Miamano - February 23, 2008 - 19:46

Hi!

I have the same problem.

#4

andreypaa - May 21, 2008 - 14:14
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;

#5

gearhead - June 18, 2008 - 18:12

Does that resolve the issue?

#6

marcvangend - July 18, 2009 - 20:25

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

#7

marcvangend - July 18, 2009 - 20:26
Status:needs review» closed

Oops, forgot to change the status.

 
 

Drupal is a registered trademark of Dries Buytaert.