After update from 6.5 to 6.6 nodes will no longer promote to the front page.

This applies both via node edit and via the admin content page.

No errors are displayed - in fact - you get confirmation messages - but the node is not promoted - and the setting on the node is not stored in the db.

Comments

chrissearle’s picture

Am struggling to work out what is going on here.

I can promote a node by going to the database and setting the value of promote to 1 in the node table.

But - at create, edit or via the admin gui - promotion does nothing - and shows _no_ error. No errors or warnings are logged either. Via the admin GUI you do get a message that the operation is done - but - nothing in the logs at all :(

I'm happy to add debug output to the code if I can get a good pointer on where to start looking - modules I've debugged - but core is a bit of a black box for me so far :)

Takafumi’s picture

Hi,

Are you using Trigger module? If so, try to un-assign all actions at admin/build/trigger/node. Then, it just might work.

chrissearle’s picture

No - not using trigger (not enabled in admin>build>modules)

chrissearle’s picture

Status: Active » Closed (fixed)

Oh no. This is embarrassing. I've just worked it out. And its a custom module at fault.

Here's the modules nodeapi method:

  switch ($op) {
    case 'presave':
      $node->promote = 0;
      $node->comment = 0;
      break;
  }

Note that something vital here is missing - the check on node type. I can't _believe_ I missed that.