Support » Plugin: Timber » Warning Error

  • Hello, this error is only occuring on my site that has the /care-groups as the ending, they all have the same thing but different content. I cannot find the error occurs anywhere else. Any suggestions.

    Here is the error:
    Warning: reset() expects parameter 1 to be array, null given in /home/hwcagra3/public_html/wp-content/plugins/timber-library/lib/PostGetter.php on line 30

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • What does your Timber template look like that renders the output for this page?

    {#
    # Page layout for single small group.
    #}

    {% extends “base.twig” %}

    {% block main %}

    {% if post.include_map %}
    <section class=”panel map-panel”>
    <span class=”map_zoom” data-zoom=”10″></span>
    <div class=”acf-map”>
    <div class=”marker” data-lat=”{{post.location.lat}}” data-lng=”{{post.location.lng}}” data-color=”{{function(‘get_theme_mod’, ‘church_theme_link_color’)}}”></div>
    </div>
    <div class=”map_note”>
    <p>Note: Locations on the map represent general areas and not the exact location of a group.</p>
    </div>
    </section>
    {% else %}
    {% include ‘header-panel.twig’ %}
    {% endif %}

    <div class=”main_section”>
    <div class=”container”>
    <div class=”row”>
    <div class=”col-4 sidebar”>
    {% if post.featured_image %}

    {% endif %}
    <h4>Group Leaders: {{post.leaders_name}}</h4>
    <hr>
    <div class=”share”>
    {% include ‘social-share.twig’ %}
    </div></div>

    <div class=”col-8 main_content”>
    {% if post.featured_video == ‘1’ %}
    <div class=”featured_video responsive_video”>
    {{post.video_embed}}
    </div>
    {% endif %}
    {% block content %}
    <div class=”content-wrapper”>
    <article class=”post-type-{{post.post_type}}” id=”post-{{post.ID}}”>
    <section class=”article-content”>
    <div class=”article-body”>
    <div class=”group_header”>
    < Discover More Groups

    {% if post.extended_headline %}
    <h1>{{post.extended_headline}}</h1>
    {% else %}
    <h1>{{post.post_title}}</h1>
    {% endif %}
    <p class=””>{{post.location_description}}

    </p>

    <hr>

    <h4>Group Details</h4>

    </div>

    {{post.content}}
    {% if post.button_url %}
    {{post.button_text}}
    {% endif %}
    </div>
    </section>
    </article>
    </div><!– /content-wrapper –>
    {% endblock %}
    </div>
    </div>
    </div>
    </div>

    {% endblock %}

    And what does your PHP template file that renders this Twig template look like?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warning Error’ is closed to new replies.