User login

Drupal 6 bug: installation profile theme not enabled

Some crazy ways I looked to work around this bug for the SCF installation profile.

Repeating the update system line certainly did not do it:

<?php
  // these next two lines attempt to get around the issue where the set theme
  // is somehow not actually enabled.  http://myagaric.com/node/151
  $result = db_query("UPDATE {system} SET status = 1 WHERE type = 'theme' and name = 'scf_demo'");
  drupal_set_message('HERE: <pre>'.var_export($result,TRUE).'</pre>');
  drupal_rebuild_theme_registry();
?>

Trying to figure out these functions did not help either:

http://api.drupal.org/api/function/init_theme/6
http://api.drupal.org/api/function/system_themes_form_submit/6

The only thing that worked was patching the bug in Drupal core (should be fixed by the next point release), where updates cause the theme to be disabled (and the same thing happens during installation). Fortunately, the great work by Dave and others on that issue meant there was a patch to apply.

Resolution

Searched words: 
D6 install profile loses theme

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.