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.

Created new weblog, content appears on index page, but permalink page is blank

February 22, 2011 4:54am

Subscribe [3]
  • #1 / Feb 22, 2011 4:54am

    Andru Edwards

    331 posts

    Kind of stumped here. I created a new weblog in one of my MSM sites today to handle a bunch of imported content that we will be doing, so that I can separate it out on the Edit page if need be. The new weblog short name is zdnews.

    After creating the weblog and putting a piece of content in it, I went into my index template and added |zdnews to my weblog parameter in exp:weblog:entries. So basically, it is weblog=“weblog1|zdnews” for all intents and purposes (I actually have about 4 or 5 weblogs listed there.

    I checked my index page, and the new piece of content shows up exactly where it should.

    I then went to my permalink page and did the same as I did to the index page, adding “|zdnews” to the weblog portion of exp:weblog:entries.

    However, when I visit one of these pages, using the URL title of the entry in the new weblog, I just get a blank page. I tried other pages just to make sure I didn’t mess something else up across the board, but all the other permalink pages work fine. It’s just when I try to access a permalink page with content from the new weblog that I have trouble, despite adding the weblog shortname to the template.

    Here are are rest of the facts:

    If you go to http://www.gearlive.com and scroll down, the post titled “Facebook Breakup Notifiers Takes the Fun Out of Friend-Stalking” is the test post that resides in the new zdnews weblog. So as you can see, it shows up there on the index page.

    If you go here, to what should be the permalink page for that item, you get a blank page:
    http://www.gearlive.com/news/article/facebook-breakup-notifier-q111/

    Alternatively, if you go here, you will see the permalink page from an item from a different weblog. Note that the same template is used to create both the blank page above, and this one:
    http://www.gearlive.com/news/article/macbook-pro-sport-light-peak-q111/

    Here is the exp:weblog:entries tag for the template:

    {exp:weblog:entries
        limit="1"
        disable="member_data|pagination|trackbacks"
        weblog="weblog1|giftguide|announcements|zdnews"
        status="open|pending"
        cache="yes"
        refresh="30"
    }

    Again, same template is used. The blank URL is supposed to display content from the zdnews weblog, and the one that works is displaying content from the weblog1 weblog. That’s the only difference between the blank page and the page that renders fine.

    So what am I missing here?? 😉

  • #2 / Feb 22, 2011 12:58pm

    Lisa Wess

    20502 posts

    Hey Andru!

    How did you do this import?

    Also, if you create a test single entry page - with just your weblog entries tag, ie:

    {exp:weblog:entries
        limit="1"
        disable="member_data|pagination|trackbacks"
        weblog="zdnews"
        status="open|pending"
    } 
    {title}
    
    {/exp:weblog:entries}

    Then visit it as a single entry page (group/template/url_title) - does your entry show up?

    The idea here is to reduce this so we can more quickly figure out what is going on.

    Thanks!

  • #3 / Feb 22, 2011 1:43pm

    Andru Edwards

    331 posts

    I used the FeedGrab plugin to pull in the content from an RSS feed. I have my preferences set so that the default status of this weblog is “Pending” so that I still need to manually go into the imported entries to add tags, make any small edits, etc., before setting it to Open and pushing it out to the index page, RSS feed, etc.

    I used the code example that you gave me above, and it worked. I then also added body field to it as well as the title, and that works too:

    http://www.gearlive.com/news/zdtest/facebook-breakup-notifier-q111

    So now that we’ve established that it works on its own, now what? 😊 The other odd thing about the blank page (to me, at least) is that it doesn’t seem to be generating any code at all, since the View Source is blank.

  • #4 / Feb 22, 2011 2:54pm

    Lisa Wess

    20502 posts

    Andru, that is probably a suppressed PHP error.  Now, the tedious part begins.  We know EE is working, and the entries are coming in.  You need to slowly add small parts of your primary template to your test template, and find out what is breaking it.

    If you can get PHP errors on, that would help as well.  In Admin > Utilities > PHP Info - is display_errors set to yes? that’s the first step; if it’s no, nothing EE does can display errors. =)

    If it’s set to “yes”, then go to System Prefs > Output & Debugging, and make sure errors are shown to Superadmins and that you’re logged into the front-end while testing.

  • #5 / Feb 22, 2011 3:06pm

    Andru Edwards

    331 posts

    PHP errors are on and shown only to Superadmins, but none display on that blank page. They do display on other pages when there is an issue, so I hoped that it was simply that.

    I did go in though and turn on Display SQL queries, but that still resulted in a blank page. Then I turned on template debugging, and got something that looks crazy, but MAYBE can point in the right direction? I am attaching a screenshot. This is what I get with template debugging turned on. Does this help at all, or is this useless? 😊

    EDIT: One more thing, no idea if this matters or not, but the fields on both the older weblogs and the new one are Wygwam fields.

  • #6 / Feb 22, 2011 7:31pm

    Mark Bowen

    12637 posts

    Please do feel free to collapse this post if it doesn’t help at all but the only time I’ve ever seen question marks like that was when a database got mixed up with regards to the character set.

    Hope you get it sorted soon whatever it is. All seems very strange.

  • #7 / Feb 22, 2011 7:57pm

    Andru Edwards

    331 posts

    I’m pulling in an RSS feed, could it be that the character set of the feed doesn’t match the character set of the site? Everything in the CP looks good though :(

    I figured I would check and see if FeedGrab was throwing up any PHP errors on import, and this is what I found:

    Notice: Undefined index: description in /var/*************/plugins/pi.feedgrab.php on line 1178

    Notice: Undefined index: description in /var/*************/plugins/pi.feedgrab.php on line 1178

    Notice: Undefined index: category in /var/****************/plugins/pi.feedgrab.php on line 1137

    Notice: Undefined index: category in /var/****************/plugins/pi.feedgrab.php on line 1147

    Could that be what is causing the problem? Again, that is just on import of the content, but the content itself looks great…looks like any other weblog content, and it does show up on the “dummy” template, just not the real one.

  • #8 / Feb 22, 2011 8:30pm

    Mark Bowen

    12637 posts

    Just out of interest have you tried just manually placing (read typing) a new entry into the new weblog just to see if that works okay? If that does then it may well lead to being the data import.

    Just one thing that might help narrow things down here a bit first.

    Best wishes,

    Mark

  • #9 / Feb 22, 2011 8:36pm

    Andru Edwards

    331 posts

    Oh wow - nice idea. I created a new entry in the new weblog. I put one sentence in the body and one sentence in the extended area. I expected it work - but NOPE!

    This entry wasn’t imported, but exhibits the same behavior. Blank page, and when I enable template debugging, I get that weird mess of characters!

  • #10 / Feb 23, 2011 10:04am

    Sue Crocker

    26054 posts

    Andru, you may need to go back to the suggestion from Lisa - add formatting to the template that works, until it breaks. A pain, I know.

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

ExpressionEngine News!

#eecms, #events, #releases