InsertNode breaks Cron when inserted node contains php

cronix - October 18, 2009 - 10:46
Project:InsertNode
Version:6.x-1.1
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

I love InsertNode, it gives me exactly the functionality that I need. There is one issue though.

The module breaks cron. I get a fatal error and cron is not working. I have a node that uses php in order to create some dynamic content. This content is inserted in my nodes with InsertNode.

Cron breaks on the php code that is in my dynamic node. I don't see any reason why this code should be called by cron, but it is. Maybe this is due to the search module?

Does anyone know a fix for this?

#1

AlexisWilke - October 18, 2009 - 10:54

Can you view those pages where you have the InsertNode tag when you are not logged in?

The main difference between CRON and you logged in is that CRON runs as anonymous.

Thank you.
Alexis Wilke

#2

cronix - October 18, 2009 - 11:40

Yes, you can view the pages when you are not logged on. Everyting was/is working ok. I noticed this bug when I ran cron manually.

Disabling InserNode made cron to work again. Cron also worked when I enabled the module after the first cron run. So I guess cron is indexing the node only once or when its modified?

 
 

Drupal is a registered trademark of Dries Buytaert.