How do I get Pagination to Work? I thought this would be easy.  I cut and pasted code that works from the Mijingo Happy Lager tutorial site. But, I keep getting the template error below.

My code...

{% paginate craft.entries.section('posts').limit(8) as postEntries %}

    {% for post in postEntries %}

        &lt;div class="element-item {{post.isotope}} box col-md-3 "&gt;
            &lt;div class="post-box vertical clearfix"&gt;
                &lt;a href="{{ post.url }}" class="image-link arrow-icon dark-overlay"&gt;&lt;img src="{{ post.postImage.first().getUrl('thumbImage')}}" width="434" height="434" alt=""&gt;&lt;/a&gt;

                &lt;div class="extra-info"&gt;                                    
                    &lt;h5&gt;&lt;a href="{{ post.url }}"&gt;{{ post.title}}&lt;/a&gt;&lt;/h5&gt;

                    &lt;p class="meta small"&gt;{{ post.postDate | date('F d, Y') }}&lt;/p&gt;
                    &lt;a href="{{post.url}}" class="go-to-arrow"&gt;&lt;i class="fa fa-arrow-circle-o-right fa-2x" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;

                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    {% endfor %}

    &lt;div class="pagination"&gt;
        &lt;ul&gt;
            {% if paginate.prevUrl %}
                &lt;li&gt;&lt;a href="{{ paginate.prevUrl }}" class="pag-prev-link"&gt;Previous Page&lt;/a&gt;&lt;/li&gt;
            {% endif %}

            {% for page, url in paginate.getPreviousUrls(5) %}
                &lt;li&gt;&lt;a href="{{ url }}"&gt;{{ page }}&lt;/a&gt;&lt;/li&gt;
            {% endfor %}

            &lt;li class="current"&gt;{{ paginate.currentPage }}&lt;/li&gt;

            {% for page, url in paginate.getNextUrls(5) %}
                &lt;li&gt;&lt;a href="{{ url }}"&gt;{{ page }}&lt;/a&gt;&lt;/li&gt;
            {% endfor %}

            {% if paginate.nextUrl %}
                &lt;li&gt;&lt;a href="{{ paginate.nextUrl }}" class="pag-next-link"&gt;Next Page&lt;/a&gt;&lt;/li&gt;
            {% endif %}
        &lt;/ul&gt;
    &lt;/div&gt;

{% endpaginate %}   


The error message...


  Neither the property "getPreviousUrls" nor one of the methods "getPreviousUrls()", "getgetPreviousUrls()"/"isgetPreviousUrls()" or "__call()" exist and have public access in class "Craft\PaginateVariable"


What am I forgetting?
A couple of years later, I ran into the same issue. In case there are others looking, it looks like this line:

{% for page, url in paginate.getPreviousUrls(5) %}


Should be:

{% for page, url in paginate.getPrevUrls(5) %}