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.

Pages URI Field Empties When Entries Load (EE 1.6.8)

May 27, 2010 2:21pm

Subscribe [4]
  • #1 / May 27, 2010 2:21pm

    kirkaracha

    273 posts

    I’m working on a site that makes extensive use of the Pages URI field. When I load a web page or edit the entry the Pages URI field is empty, but the field is not empty when I load it from the revisions tab by loading a previous version, then loading the current version.

    We haven’t made any recent changes to the templates, CMS software, etc.

    We’re using EE 1.6.8. Upgrading to 1.6.9 isn’t an option due to management paranoia about changing the system.

  • #2 / May 27, 2010 5:25pm

    Ingmar

    29245 posts

    Sorry, I fail to see the issue here? You can edit and save the field, can’t you?

  • #3 / May 27, 2010 5:35pm

    kirkaracha

    273 posts

    If I use {page_uri} inside exp:weblog:entries, nothing comes up, so links don’t work.

    If I edit the entry, nothing appears in the Pages URI field, even on entries that I know have a Pages URI.

    How do I know the entry has a Pages URI? If I load a previous revision under the Revisions tab, the Pages URI field has the URI. If I then load the current revision, the Pages URI field has the URI.

    So, the Pages URI is in the database somewhere, but it is not getting pulled up via exp:weblog:entries.

    <?php
    global $LOC;
    $sixty_days_ago = {current_time}-5184000; // 60 days, in seconds;
    $start_time = $LOC->decode_date('%Y-%m-%d %g:%i',$sixty_days_ago);
    ?>
    {exp:weblog:entries weblog="news_articles" status="open" dynamic="off" start_on="<?php echo $start_time; ?>" disable="member_data|pagination|trackbacks"}
        <tr>
            <th scope="row"><a href="/news{exp:replace">{entry_date format="%F %j, %Y"}</a></th>
            <td>{title}</td>
        </tr>
    {/exp:weblog:entries}

    That stripped out some code: exp:replace find=“php/” replace=“php”

    The page_uri doesn’t come up, so the links don’t work.

    Being able to edit and save doesn’t help much since we have hundreds of entries.

  • #4 / May 27, 2010 8:36pm

    Brandon Jones

    5500 posts

    kirkaracha,

    This worked previously, correct? You’re sure there have been no additional plugins, extensions, etc?

    Have you also tried starting with a blank template and a very simple tag like:

    {exp:weblog:entries weblog="your_pages_weblog"}
    
    <h3>{title}: {page_uri}</h3>
    
    <p>{/exp:weblog:entries}

  • #5 / Jul 06, 2010 4:09am

    wiL.Laxa

    73 posts

    I’m having this same problem as well. {page_uri} comes up empty after upgrading to v1.6.9

    The actual {page_uri} links work when i manually create them but doing the “weblog entries” outputs empty {page_uri}

    A bit strange.

    Any help would be great!

  • #6 / Jul 06, 2010 3:21pm

    Ingmar

    29245 posts

    Can you please try the basic template Brandon suggested? kirkaracha, where are you with this?

  • #7 / Jul 06, 2010 3:26pm

    wiL.Laxa

    73 posts

    Hello Ingmar,

    Yes I have it setup with the most basic template as per Brandon’s post but still have the problem.  Any thoughts?  It’s weird because it only happens on this website.

  • #8 / Jul 06, 2010 5:46pm

    Ingmar

    29245 posts

    You have the Pages module installed, of course? And you have associated a static page with the weblog entry via the “Pages” section of the Publish tab? Are you using any extensions?

  • #9 / Jul 27, 2010 1:54am

    wiL.Laxa

    73 posts

    I re uploaded the “modules” folder and it seems like its working now. phew. 😊

  • #10 / Jul 27, 2010 5:44pm

    Ingmar

    29245 posts

    Glad to hear it 😊 Marking as “Resolved”, please post again as needed. Thanks.

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

ExpressionEngine News!

#eecms, #events, #releases