Fatal Error on Cron Run

philsward - January 28, 2009 - 07:26
Project:Node Expire
Version:6.x-2.0
Component:Code
Category:bug report
Priority:normal
Assigned:brmassa
Status:closed
Description

I am receiving the following error on a cron run:

Fatal error: Call to undefined function node_expire_set_expired() in /home/accnt/public_html/t/sandbox/sandbox6/sites/all/modules/testing/node_expire/node_expire.module on line 24

I noticed this right after installing the module, I did a cron run (hadn't done one in a while) and it came up with this error. Then, after trying to create some rules, I did a cron run (after reading somewhere that cron needed to be run in order to expire a node) and it again came up with the above error.

I am also trying to figure out how the heck to use rules, I know it is powerful in what can be done with it but there is hardly any "idiot guides" on what and how to setup rules.

Any possible "quick but through" documentation on how to create a rule to expire a node?

I'm liking the potential of v2! Keep it up!

#1

philsward - January 28, 2009 - 07:41

In doing some playing around, the error seemed to go away when I created an actual "Rule Trigger". But only after performing a second cron request in a row.

SO, a check needs to be put in place that if a triggered rule is not setup, for the node expire to ignore itself on a cron run.

(At least I think... I know nothing about PHP programming)

#2

brmassa - January 28, 2009 - 12:49

Phil,

you are right! i will fix this today.

regards,

massa

#3

brmassa - January 28, 2009 - 12:57
Assigned to:Anonymous» brmassa
Status:active» fixed

Fixed!

regards,

massa

#4

philsward - January 29, 2009 - 04:35

Thx for the quick fix! I like how you release these as stable versions instead of having a continuous list of dev versions with 6 months between stable versions! lol

#5

System Message - February 12, 2009 - 04:40
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.