Fix for Fix for Fix for Why doesn't node_save work in this simple example?

  1. <?php
  2.  
  3. require 'includes/bootstrap.inc';
  4. drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
  5.  
  6. $node = node_load(11);
  7. $node->title = "My New Title";
  8.  
  9. //node_submit processes form input to create real node object
  10. $actualnode = node_submit($node);
  11. node_save($actualnode);
  12. ?>

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.