from the README.txt

- Install uc_node_checkout_scheduler... done
- Set up your content type .... done
- Create the product that ... done
- Map the node to the product... done
- Set a content type on for scheduler... done
- Since the start and expire times... done
- Edit a content type that has ... ???

There isn't a tab 'Node Scheduler' in my content type

My Drupal Configuration :
Drupal core 6.20
Node Checkout 6.x-2.x-dev
Node Checkout Scheduler 6.x-1.0-alpha2
Node published 6.x-1.0-rc4
Ubercart 6.x-2.4
Views 6.x-2.12

Comments

rovos’s picture

The upgrade from Scheduler 6.x-1.7 to 6.x-1.8 is the problem

vonfracas’s picture

So, is there a solution short of downgrading from Scheduler 6.x-1.8 to Scheduler 6.x-1.7.

ycimlynn’s picture

subscribe

SchwebDesign’s picture

subscribing. So in summary... this module is not compatible with Scheduler 1.8 or later. Is that correct?

gabrielu’s picture

Status: Active » Needs review

You should change uc_node_checkout_scheduler.module:462 to

if( (variable_get('scheduler_publish_enable_'. $type, 0) == 1 ) || (variable_get('scheduler_unpublish_enable_'. $type, 0) == 1) ) {

So the function uc_node_checkout_scheduler_get_types() should look like this:

function uc_node_checkout_scheduler_get_types() {
  $types = array();
  foreach (node_get_types('names') as $type => $typename) {
    if( (variable_get('scheduler_publish_enable_'. $type, 0) == 1 ) || (variable_get('scheduler_unpublish_enable_'. $type, 0) == 1) ) {
	  $types[$type] = $typename;
	  }
  }
  return $types;
}
gabrielu’s picture

Category: support » bug
NewZeal’s picture

Fix added to release alpha3.

gabrielu’s picture

Status: Needs review » Closed (fixed)

Sounds great,

Thanks,
Gabriel Ungureanu

seanenroute’s picture

Version: 6.x-1.0-alpha2 » 6.x-1.0-alpha3
Status: Closed (fixed) » Active

I just did a fresh install using 6.x-1.0-alpha3 with Scheduler 1.8 and I'm still not getting a tab 'Node Scheduler' in my content type.

I set up the Node type with: Enable scheduled publishing (check) and Enable scheduled unpublishing (checked) but no tab.

http://awesomescreenshot.com/0cbk2bca5

NewZeal’s picture

What version of scheduler are you using? Someone posted a fix for a more recent version which I have added to the latest upload.

seanenroute’s picture

Here's the full list of modules and versions. Let me know if you need screenshot of anything else.

It's on a test site that I could open up to you if you felt adventurous.

http://awesomescreenshot.com/098k2cc1a

NewZeal’s picture

That's strange your printout says you have scheduler 1.11 yet the most recent version is 1.8 so I don't know what is happening there. I am using 1.7 and it works for me. The tab display is only dependent on scheduler settings. Edit the content type. Under workflow settings check the box: Enable scheduled (un)publishing.

seanenroute’s picture

Ahh figured it out, the fix hasn't been added to the alpha 3 release. I cracked open the module and line 462 doesn't have the fix from post #5. Once I changed the code and uploaded the module the tab showed up right away. Happiness :)

NewZeal’s picture

Ok so that looks like git again, or my inability to use git correctly. The module shows fully updated on my PC yet obviously it is not. Git is really putting me off being a module maintainer. This is not the only project I am having difficulty with.

seanenroute’s picture

On a side note, thank you soooooo much for this module. I, like a lot of others, have been waiting a very long time for an easy way to set up node renewals for classifieds.

NewZeal’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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