I have been working on a site for a few days. Then I noticed the mission statement was gone from the top of the pages. I have not changed any of the page-tpl.php for the mission. It still reads:

<div class="fixed"> <!--FIXED-->
  <?php if($persistent_mission) { ?><div id="mission"> <!--MISSION-->
    <?php print $persistent_mission ?>
  </div> <!--END MISSION--><?php } ?>

I have cleared all caches, run cron and update.php, removed all css, all to no avail. The mission is checked in the async theme setting. It shows up if I change themes. but no longer shows in async.

If I change "persistent_mission" to "mission", it returns, but only on the first page of course. So please tell me where "persistent_mission" is generated so I can try to find why it disappeared.

Comments

JSCSJSCS’s picture

Component: Documentation » Code

I downloaded a new copy of the theme and compared it to what I was using. I found one difference in the template.php file:
The downloaded file showed:

function async_preprocess_page(&$vars) {
   $vars['persistent_mission'] = variable_get('site_mission', '');
}

My current version showed:

function _preprocess_page(&$vars) {
   $vars['persistent_mission'] = variable_get('site_mission', '');
}

I did not change it. At least not intentionally, so not sure why it changed. I changed it back and and got my mission statement back on all pages.

Is there some async or drupal core function that rewrites template.php files? If so, maybe there is a bug?

FiNeX’s picture

Status: Active » Closed (won't fix)

Cannot reproduce on D6, anyway the new Drupal 7 uses regions only ($mission has been dropped on D7) and A Sync Template for Drupal 6 is no more maintained. Anyway I still accept patches for the Drupal 6 version.

Thanks