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.

Show Pages

July 24, 2010 6:52pm

Subscribe [4]
  • #1 / Jul 24, 2010 6:52pm

    KiwiGrrl

    50 posts

    I discovered weirdness today with:

    show_pages="no"

    With this parameter but no actual pages, no entries were returned at all. Removing the parameter (or creating a page) solved the issue.

    Fresh install of 2.1 (latest build).

  • #2 / Jul 25, 2010 3:58pm

    Greg Salt

    3988 posts

    Hi GnomeGrrl,

    Can you please post your opening channel:entries tag that displays this problem?

    Cheers

    Greg

  • #3 / Jul 25, 2010 5:43pm

    KiwiGrrl

    50 posts

    Sure, Greg.

    {exp:channel:entries channel="{my-channel}" limit="4" show_pages="no"}

    Initially on the second site with duplicated templates, I was getting an undefined index: uris message (when logged in, blank page if logged out) with the PHP error pointing to line 1411 of mod.channel.php. Troubleshooting through the forums led me to an old solution on a similar problem with 1.6.9 to uninstall and reinstall the pages module. I did so and while it did get rid of the template errors, this issue cropped up on both sites.

  • #4 / Jul 25, 2010 8:03pm

    KiwiGrrl

    50 posts

    Alrighty. Created a third site and the original issue I was having with the second site reared it’s ugly head once more. Blank page if logged out, this if logged in.

    A PHP Error was encountered

    Severity: Notice

    Message: Undefined index: uris

    Filename: channel/mod.channel.php

    Line Number: 1411

    Fatal error: Unsupported operand types in /home/path/to/system/expressionengine/modules/channel/mod.channel.php on line 1411

    Resolved it previously by uninstalling and reinstalling the Pages module. Is there another way around it?

  • #5 / Jul 26, 2010 6:26pm

    Brandon Jones

    5500 posts

    GnomeGrrl,

    Can you let us know if doing so eliminates the error again? I’m not quite able to reproduce on my end, though I am seeing some other strange Pages behavior that I’ll need to look into further.

  • #6 / Jul 26, 2010 6:40pm

    KiwiGrrl

    50 posts

    Uninstalling and reinstalling did indeed eliminate the Unsupported operand types error, Brandon.

    And of course, removing all the created pages caused the channel entries tag to stop displaying with show_pages=“no”. That’s an easy fix though. Either remove the tag or recreate the pages.

  • #7 / Jul 27, 2010 1:41am

    John Henry Donovan

    12339 posts

    GnomeGrrl,

    Was this a fresh install of EE or an upgrade?

  • #8 / Jul 27, 2010 2:21am

    KiwiGrrl

    50 posts

    Fresh install, John.

  • #9 / Jul 27, 2010 6:14pm

    Brandon Jones

    5500 posts

    GnomeGrrl, I’m able to reproduce with the stock Agile Records ‘news’ channel. Basically, once you install the Pages module, show_pages=“no” returns nothing instead of the two news entries it should return.

    Can you please file a detailed bug report and link to the report here? Thanks.

  • #10 / Jul 27, 2010 6:25pm

    KiwiGrrl

    50 posts

    Done, Brandon.

    I added the details regarding the undefined index as that was the catalyst for discovering the show_pages bug.

  • #11 / Jul 27, 2010 6:31pm

    KiwiGrrl

    50 posts

    I should also mention that with the original undefined index error, it only affected the duplicated templates. Creating a new template with basic code worked fine.

  • #12 / Jul 27, 2010 8:40pm

    Brandon Jones

    5500 posts

    Very good, be sure to note that in the bug report. Thanks!

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

ExpressionEngine News!

#eecms, #events, #releases