Getting an error displaying on all pages since latest dev update, and is as follows:

Notice: Undefined variable: node_top in include() (line 104 of /public_html/sites/all/themes/mix_and_match/node.tpl.php).
Notice: Undefined variable: node_bottom in include() (line 124 of /public_html/sites/all/themes/mix_and_match/node.tpl.php).

#8 node.tpl_.txt5.59 KBWillynux


stephthegeek’s picture

Project:Fusion» Mix and Match

These regions weren't working until the other day in Fusion, and with the recent change, any Fusion subtheme with its own node.tpl.php will need to be updated. See commit:

ikon420’s picture

Just had this issue but could not find clear instructions for a newb.
This is how I got around it.

Compare the mix and match node.tpl.php file with fusions same file.

Copy the code block from fusion and replace in mix and match
the php if statements for the node top and bottom

Seems to be working fine for me now

kannatek11’s picture

Ikon could you expound on your fix, for a super newb!

idealworldweb’s picture

ikon420's fix is working, error message is not displaying now.

kannatek11, you need to replace the following code in node.tpl.php in mix and match:

    <?php if ($node_top && !$teaser): ?>
    <div id="node-top" class="node-top row nested">
      <div id="node-top-inner" class="node-top-inner inner">
        <?php print $node_top; ?>
      </div><!-- /node-top-inner -->
    </div><!-- /node-top -->

with the following from the fusion node.tpl.php

  <?php if (!$teaser): ?>
    <div id="node-top" class="node-top region nested">
      <?php print render($node_top); ?>

then do the same for the div id node-bottom.

VetHockey’s picture

I found that I had to clear the cache afterwards or I got the same errors reported erroneously.

W.M.’s picture

I would like to confirm that the solution described under reply number 4 works fine. The original problem arises after updating fusion to the latest versions.

itsjustbert’s picture

I had this issue using the AlpHorn theme. However, I found the lines in the code just the same. I can confirm that post 4 works. I used:

<?php if (!$teaser): ?>
    <div id="node-bottom" class="node-bottom region nested">
      <?php print render($node_bottom); ?>

for the bottom.

Willynux’s picture

5.59 KB

If you want to download the modified node.tpl.php file directly here it is. (Just rename the extension from txt to php)

edit: MIND that when you do this you won't be able to use these variables any more!!! (this is not really a solution)

banghouse’s picture

#4 & #7 worked for me but I'm also getting ---> Notice: Undefined variable: admin_links in include() (line 28 of /Users/xxxxxx/localhost/xxxxxx/sites/all/themes/fusion/fusion_core/views-view--page.tpl.php).

for that there is this

ajross’s picture

#9 - The view template is not modified in this theme, so that just needs to be handled by Fusion core. You might also want to look at this issue:

ajross’s picture

Status:Active» Closed (fixed)

This should be fixed in latest release