I am not sure if this may be due to possible interaction with the Scheduler module?

1) Create new Ad, give it an end date (doesn't matter what type of Ad) --> when you save, "Automatically expire ad:" field is reset to 0
2) Create new Ad with activate and expire dates (doesn't matter what type of Ad) --> when the activate time arrives, both fields are cleared and the status remains "Approved" (not "Active").

In both cases the Ads don't show.

I am using both Scheduler (6.x-1.7) and Rules (6.x-1.3) ... though neither act on Advertisement content types.

Any ideas?

PS, I actually would really like to use Scheduler to activate Ads since I have code written to import the start/stop dates from a feed and because the Ads would become unpublished when they are deactivated (which is better for Affiliate links to ensure that they don't display past the expire date). But when I tried to use Scheduler to activate an Ad (i.e. to "Publish" and "Unpublish" while leaving the Ad scheduling fields as "0"), the status changes to Expired and the Ads do not display.

Comments

anonymous07’s picture

After looking at this some more, it seems to be an interaction with the Rules module.

Even though Rules module is set to only process a different node type, once it examines the Advertisement node, it seems that all the scheduling dates get set to 0.

    * Created new alias content/test for node/xxxxxx.
    * Created new alias content/test/feed for node/xxxxxx/feed.
          o 0 ms "After saving new content" has been invoked.
          o 0.114 ms Executing the rule "MyRule" on rule set "After saving new content"
          o 0.339 ms Condition "Created content is MyContentType" evaluated to FALSE.
          o 0.405 ms Evaluation of "After saving new content" has been finished.
    * Advertisement test has been created.

If there is any troubleshooting/debugging steps you recommend, please let me know.

anonymous07’s picture

Please close this as a duplicate to #866542: When creating a new Ad the Automatically expire ad field is dropped. (which I just discovered was entered before mine and is still open)

john franklin’s picture

Status: Active » Closed (duplicate)