Skip to main content
improved formatting; edited tags
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

how to fix: Notice "Notice: Undefined index: und in include()"

Since this morning, iI get this message on my website.

It says its on the error is on line 7 in my php template file, but when iI look at the line 7 the code on it is: <?php if (!$page): ?>.

my tempalte phpMy template file looklooks like this :

' nid; ?>" class="">the following.

<div class="nodeid="node-inner">



<?php ifprint (!$page):$node->nid; ?>

   >" <h2<class="<?php print $title_attributes;$classes; ?>>   >">
  <div 
 class="node-inner">
    <?php //Change the Title link toif Discoveries(!$page): page?>
 //need to specify the taxonomy field : discoveries_item

<h2<?php print $title_attributes; ?>>       
      <?php if ( ($type == "article") && ($node->field_add_taxonomy_tag_articles[$node->language][0]['tid']==26)>language][0]['tid'] == 26)): ?>
 
        <a href="/discoveries#node-<?php print $node->nid; ?>"><?php print $title; ?></a></h2>
 
        <?php else:?>
 
        <a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
 
      <?php endif; ?>
 
    <?php endif; ?>




 
    <?php print $user_picture; ?>
 
        

 <?php if ($display_submitted): ?>
 
      <span class="submitted"><?php print $date; ?> Ñ <?php print $name; ?></span>
 
    <?php endif; ?>
 
    <div class="content">
 
        <?php 

            // We hide the comments and links now so that we can render them later.

            hide($content['comments']);
 
            hide($content['links']);
 
            print render($content);
 
        ?>
 
        <?php if (!empty($content['links'])): ?>        
 
            <span class="links">
 
                <?php print render($content['links']); ?>
 
            </span>
 
        <?php endif; ?>
 
    </div>      
 
    <?php if (!empty($content['links']['terms'])): ?>
 
        <div class="terms">
 
            <?php print render($content['links']['terms']); ?>
 
        </div>
 
    <?php endif;?>  
 
  </div> <!-- /node-inner -->
</div> <!-- /node-->
<?php print render($content['comments']); ?>'
'

if someone can figure out how to fix it let me know, i can't figure it out .... :/

how to fix: Notice: Undefined index: und in include()

Since this morning, i get this message on my website.

It says its on the line 7 in my php template file, but when i look at the line 7 the code on it is: <?php if (!$page): ?>

my tempalte php file look like this :

' nid; ?>" class="">

<div class="node-inner">



<?php if (!$page): ?>

    <h2<?php print $title_attributes; ?>>      
 
    <?php //Change the Title link to Discoveries page //need to specify the taxonomy field : discoveries_item

                if ( ($type == "article") && ($node->field_add_taxonomy_tag_articles[$node->language][0]['tid']==26) ): ?>
 
        <a href="/discoveries#node-<?php print $node->nid; ?>"><?php print $title; ?></a></h2>
 
        <?php else:?>
 
        <a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
 
    <?php endif; ?>
 
<?php endif; ?>




 
<?php print $user_picture; ?>
 
        

 <?php if ($display_submitted): ?>
 
    <span class="submitted"><?php print $date; ?> Ñ <?php print $name; ?></span>
 
<?php endif; ?>
 
    <div class="content">
 
        <?php 

            // We hide the comments and links now so that we can render them later.

            hide($content['comments']);
 
            hide($content['links']);
 
            print render($content);
 
        ?>
 
        <?php if (!empty($content['links'])): ?>        
 
            <span class="links">
 
                <?php print render($content['links']); ?>
 
            </span>
 
        <?php endif; ?>
 
    </div>      
 
    <?php if (!empty($content['links']['terms'])): ?>
 
        <div class="terms">
 
            <?php print render($content['links']['terms']); ?>
 
        </div>
 
    <?php endif;?>  
 
</div> <!-- /node-inner -->
'

if someone can figure out how to fix it let me know, i can't figure it out .... :/

"Notice: Undefined index: und in include()"

Since this morning, I get this message on my website.

It says the error is on line 7 in my template file, but when I look at the line 7 the code on it is <?php if (!$page): ?>.

My template file looks like the following.

<div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?>">
  <div class="node-inner">
    <?php if (!$page): ?>
      <h2<?php print $title_attributes; ?>>       
      <?php if (($type == "article") && ($node->field_add_taxonomy_tag_articles[$node->language][0]['tid'] == 26)): ?>
        <a href="/discoveries#node-<?php print $node->nid; ?>"><?php print $title; ?></a></h2>
      <?php else:?>
        <a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
      <?php endif; ?>
    <?php endif; ?>
    <?php print $user_picture; ?>
    <?php if ($display_submitted): ?>
      <span class="submitted"><?php print $date; ?> Ñ <?php print $name; ?></span>
    <?php endif; ?>
    <div class="content">
      <?php
        hide($content['comments']);
        hide($content['links']);
        print render($content);
      ?>
      <?php if (!empty($content['links'])): ?>      
        <span class="links">
          <?php print render($content['links']); ?>
        </span>
      <?php endif; ?>
    </div>      
    <?php if (!empty($content['links']['terms'])): ?>
      <div class="terms">
        <?php print render($content['links']['terms']); ?>
      </div>
    <?php endif;?>  
  </div> <!-- /node-inner -->
</div> <!-- /node-->
<?php print render($content['comments']); ?>'
Source Link

how to fix: Notice: Undefined index: und in include()

Since this morning, i get this message on my website.

It says its on the line 7 in my php template file, but when i look at the line 7 the code on it is: <?php if (!$page): ?>

my tempalte php file look like this :

' nid; ?>" class="">

<div class="node-inner">



<?php if (!$page): ?>

    <h2<?php print $title_attributes; ?>>      

    <?php //Change the Title link to Discoveries page //need to specify the taxonomy field : discoveries_item

                if ( ($type == "article") && ($node->field_add_taxonomy_tag_articles[$node->language][0]['tid']==26) ): ?>

        <a href="/discoveries#node-<?php print $node->nid; ?>"><?php print $title; ?></a></h2>

        <?php else:?>

        <a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>

    <?php endif; ?>

<?php endif; ?>





<?php print $user_picture; ?>

        

<?php if ($display_submitted): ?>

    <span class="submitted"><?php print $date; ?> Ñ <?php print $name; ?></span>

<?php endif; ?>

    <div class="content">

        <?php 

            // We hide the comments and links now so that we can render them later.

            hide($content['comments']);

            hide($content['links']);

            print render($content);

        ?>

        <?php if (!empty($content['links'])): ?>        

            <span class="links">

                <?php print render($content['links']); ?>

            </span>

        <?php endif; ?>

    </div>      

    <?php if (!empty($content['links']['terms'])): ?>

        <div class="terms">

            <?php print render($content['links']['terms']); ?>

        </div>

    <?php endif;?>  

</div> <!-- /node-inner -->
'

if someone can figure out how to fix it let me know, i can't figure it out .... :/