ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

After upgrade to 2.3 one page has PHP Error

December 03, 2011 2:33pm

Subscribe [2]
  • #1 / Dec 03, 2011 2:33pm

    jcmaxi

    22 posts

    ExpressionEngine v2.3.1 - Build: date 20111017

    Php Error on this page:
    http://www.gloryofgodcocoa.org/index.php?/audio-messages

    I’ve checked the template and updated. EE Template Manager shows no errors. I even pulled out the embedded templates, but still got PHP error. I need help!

    Here is the PHP error

    Fatal error: Channel::parse_channel_entries() [<a href="http://channel.parse-channel-entries">_channel.parse-channel-entries</a>]: The script tried to execute a method or access a 
    property of an incomplete object. Please ensure that the class definition
    "DB_Cache" of the object you are trying to operate on was loaded _before_ 
    unserialize() gets called or provide a __autoload() function to load the class definition
     in /home1/jchostco/public_html/gogac/gg/expressionengine/modules/channel/mod.channel.php
     on line 3686

    Here is my Template code

    {embed="embeds/html_header"
    
      {!--The my_title value will always be used. --}
     my_title="Audio Messages
    
      {!--The category heading tag will only kick in if this template is loaded with a category link. --}
     {exp:channel:category_heading channel="audio-messages"}
       | {category_name}
     {/exp:channel:category_heading} 
    
      {!--This code will kick in if an archive link has been clicked and will display the month and year that the user selected. --}
     {if segment_2 !="category" AND segment_3!=""}
      {exp:channel:entries channel="audio-messages" limit="1" disable="custom_fields|trackbacks|member_data|pagination|categories"}
       {date_heading display="monthly"}
         | Posts from {entry_date format="%F %Y"}
       {/date_heading}
      {/exp:channel:entries}
     {/if}
    "}
    
    <body id="audio">
     <div id="wrapper">
      {embed="embeds/page_header"}
      {embed="embeds/main_nav" my_location=""}
       
      <!--BEGIN CONTENT SECTION-->
      <div class="interiorTanBox">
         
       <div class="content_page_right">
       <h1>Audio Messages</h1>
    
         {!--The category heading tag will only kick in if this template is loaded with a category link. --}
        {exp:channel:category_heading channel="audio-messages"}
         <div id="category_header">
          <h2>{category_name}</h2>
    <p>      {if category_description}<br />
           {category_description}<br />
          {/if}<br />
         </div><br />
        {/exp:channel:category_heading}</p>
    
    <p>    <br />
         {!--This is the main weblog:entries tag that will return individual blog posts.  The category links and archive links function as a filter on this tag. --}<br />
        {exp:channel:entries channel="audio-messages" disable="trackbacks" paginate="bottom" limit="8"}</p>
    
    <p>      {!--Using a conditional ensures the date heading only displays if an archive link was selected. --}<br />
         {if segment_2 !="category" AND segment_3!=""}<br />
          {date_heading display="monthly"}<br />
           <div id="category_header"><br />
            </p><h2>Posts from {entry_date format="%F %Y"}</h2>
    <p>       </div><br />
          {/date_heading}<br />
         {/if}</p>
    
    <p>     <div class="post"><br />
          </p><h3>{entry_date format='%F %d, %Y'}</h3>
    <p>      <em>{message_summary}</em></p>
    
    <p>      <div class="wimpy_player_right"><br />
          </p><h5>Play this Message</h5>
    <p>                                                     {embed="embeds/wimpy-button the-audio-file="{audio_file}" the-entry-id="{entry_id}"}<br />
          </div></p>
    
    <p>      <div class="sermon_details_left"><br />
           Title: <strong>{title}</strong><br />
           Series: <strong>{categories}{category_name}{/categories}</strong></p>
    
    <p>       {if worship_service !="0"}<br />
            Service: <strong>{related_entries id="worship_service"}{title}{/related_entries}</strong><br />
           {/if}</p>
    
    <p>       {if number_in_series}<br />
            # in Series: <strong>{number_in_series}</strong><br />
           {/if}</p>
    
    <p>       {if scripture_verses}<br />
            Verses: <strong>{scripture_verses}</strong><br />
           {/if}</p>
    
    <p>       {if message_length}<br />
            Length: <strong>{message_length} Minutes</strong><br />
           {/if}<br />
         <br />
           Download Audio: <strong><a href="http://{site_url}audio/{audio_file}" target="_blank" rel="noopener">{audio_file}</a></strong><br />
          </div><br />
          <br />
          <div>/div>    <br />
         <br />
          <div class="post_meta"><br />
           By {url_or_email_as_author}  <br />
           {if allow_comments}({comment_total}) <a href="http://{url_title_path=audio-messages/comments}#comments">Comments</a>{/if}<br />
          </div><br />
         </div></p>
    
    <p>     {paginate}<br />
          Page {current_page} of {total_pages} pages {pagination_links} <br />
         {/paginate} </p>
    
    <p>    {/exp:channel:entries}</p>
    
    <p>   </div></p>
    
    <p>   <div class="content_page_left"><br />
                                   {embed="embeds/sidebar_category_nav" my-section="audio-messages"}<br />
                                   {embed="embeds/sidebar_archive_nav" my-section="audio-messages"} <br />
                                   {embed="embeds/sidebar_podcast_link"} <br />
       </div><br />
        <div class="spacer"></div><br />
        <br />
      </div><!--END CONTENT SECTION--></p>
    
    <p>  <div class="clear"></div><br />
     <br />
      {embed="embeds/footer"} </p>
    
    <p> </div><!--END BODY WRAPPER--></p>
    
    <p></body><br />
    </html>

     

  • #2 / Dec 04, 2011 11:27am

    Kevin Smith

    4784 posts

    Hi jcmaxi,

    Like we’re discussing in one of your other open support threads, I’m recommending temporarily restoring the backup of your site and continuing to run it as an EE 1.x-based site until we have an upgrade path for the Gallery Module in place. This will resolve the other issues you’re having for now (including the one you posted about in this thread), so I’ll close up this thread and we can continue having a discussion about your site on the support thread concerning the Gallery Module.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases