• Resolved andy3000

    (@andy3000)


    Getting an error on ‘line 32’ of this template:
    I don’t see any division happening there?

    <?php
    /*
    Template Name: No Sidebar
    */
    ?>
    
    <?php get_header(); ?>
    
    <div id="sub-column" class="no-sidebar">
    
            <div id="sub-top">
                    <?php get_template_part('scripts/breadcrumb'); ?>
            </div>
    
            <div id="sub-content">
    
                    <div class="content">
                            <?php if (have_posts()) : ?>
                            <?php while (have_posts()) : the_post(); ?>
    
                            <div class="post">
    
                                    <h1 class="first"><?php the_title();?></h1>
                                    <?php the_content();?>
    
                            </div>
    
                            <?php endwhile; endif;?>
    
                            <?php comments_template(); ?>
    
                            <div class="wp-pagenavi"><?php wp_link_pages('before=Pages: &pagelink=<span>'%'</span>'); ?></div>
    
                            <?php edit_post_link('Edit Post'); ?>
                    </div>
    
    	</div>
    
    <?php get_footer(); ?>

    Theme is Wp-Creatavix

Viewing 7 replies - 1 through 7 (of 7 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Please tell us which line the error is on.

    Thread Starter andy3000

    (@andy3000)

    The message says the error is on line 32. (Sorry I hid that info at the top of my first post before the code, should have made it bold)

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    We can’t see line numbers.

    Thread Starter andy3000

    (@andy3000)

    I don’t have line numbers either either (no code editor on the host) but I pasted into a spreadsheet:`1 <?php
    2 /*
    3 Template Name: No Sidebar
    4 */
    5 ?>
    6
    7 <?php get_header(); ?>
    8
    9 <div id=”sub-column” class=”no-sidebar”>
    10
    11 <div id=”sub-top”>
    12 <?php get_template_part(‘scripts/breadcrumb’); ?>
    13 </div>
    14
    15 <div id=”sub-content”>
    16
    17 <div class=”content”>
    18 <?php if (have_posts()) : ?>
    19 <?php while (have_posts()) : the_post(); ?>
    20
    21 <div class=”post”>
    22
    23 <h1 class=”first”><?php the_title();?></h1>
    24 <?php the_content();?>
    25
    26 </div>
    27
    28 <?php endwhile; endif;?>
    29
    30 <?php comments_template(); ?>
    31
    32 <div class=”wp-pagenavi”><?php wp_link_pages(‘before=Pages: &pagelink=<span>’%'</span>’); ?></div>
    33
    34 <?php edit_post_link(‘Edit Post’); ?>
    35 </div>
    36
    37 </div>
    38
    39 <?php get_footer(); ?>
    40
    41 Theme is Wp-Creatavix`

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    What is the error?

    This belongs above the comments:

    <div class="wp-pagenavi"><?php wp_link_pages('before=Pages: &pagelink=<span>'%'</span>'); ?></div>
    Thread Starter andy3000

    (@andy3000)

    Thanks. That line was in the wrong place but the error message was because of the ‘ marks around the percent sign in it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Division by 0 problem in one template only’ is closed to new replies.