Bug #23281 Bug Fixed

error message appears when i filter channels under “Create New” button in Pages module

Version: 3.5.12 Reporter: chunkitchris

In Pages module, when i create new, a box appeared and lists out all the channels i have. On top of it, there is a “Filter Channel” bar and then i type some letters (for example, speakers) and then hit enter. Some error messages appeared:


Notice

Undefined index: selection

ee/EllisLab/Addons/pages/mcp.pages.php, line 259 show details

Severity: E_NOTICE Warning

Invalid argument supplied for foreach()

ee/EllisLab/Addons/pages/mcp.pages.php, line 259 show details

Severity: E_WARNING Warning

Cannot modify header information - headers already sent by (output started at ee/legacy/core/Exceptions.php:119)

ee/legacy/core/Input.php, line 249 show details

Severity: E_WARNING Warning

Cannot modify header information - headers already sent by (output started at ee/legacy/core/Exceptions.php:119)

ee/legacy/libraries/Functions.php, line 440 show details

Severity: E_WARNING

  • Thanks for the report chunkitchris, this is fixed for the next release. That filter doesn’t belong there, and the intended purpose was a little confusing, e.g. Filtering the menu? Filtering the listing? Typing the channel name and creating a new entry when hitting enter? So I’ve removed it in v3.

    Derek Jones
    29th November, 2017 at 2:30pm
  • Thanks Derek. Also it seems that setting up a default channel has no use at all when i create a new Page. It still displays all the channels in a pop-up box.

    Here is the description from the user guide: The default Channel to use when the “Create New Page” button is clicked.

    chunkitchris
    29th November, 2017 at 2:43pm
  • Ah yes, good catch. That setting was only relevant in the v2 control panel UI since the publish page had an interstitial to let you select which Channel. Since that interstitial doesn’t exist anymore, you do need to select the channel when navigating to the publish form. I shall remove it as well!

    Derek Jones
    29th November, 2017 at 2:51pm
  • Actually James tells me that there will be UI coming in v4 that will support both the search filter and a default new, so the setting will stay for the time being, but will not add any value until that UI ships in v4.

    Derek Jones
    29th November, 2017 at 2:58pm
  • Probably this bug has been fixed for 3.5.12 but it is still present in 4.02. Using the filter still returns an error message and the setting a channel for default Pages still does not work

    ncstoronto
    13th December, 2017 at 7:29pm
  • @ncstoronto, this same modification was made in the v4 line. Can you open system/ee/EllisLab/Addons/pages/views/index.php and verify that you do not have the following code at line 9?

    <fieldset class="filter-search">
     <input type="text" value="" placeholder="<?=lang('filter_channels')?>">
    </fieldset>

    In other words, the search filter on the channel listing dropdown when creating a new entry from the Pages control panel should be gone.

    Derek Jones
    13th December, 2017 at 8:15pm
  • interesting. i don’t find these codes in lune 9 but i still see the dropdown menu with filter search. https://www.dropbox.com/s/2tm2cgdu7gtownn/Screen Shot 2017-12-13 at 8.23.39 PM.png?dl=0

    ncstoronto
    13th December, 2017 at 8:24pm
  • and here is the error message:

    Notice
    
    Undefined index: selection
    
    ee/EllisLab/Addons/pages/mcp.pages.php, line 243
    
    Severity: E_NOTICE
    Warning
    
    Invalid argument supplied for foreach()
    
    ee/EllisLab/Addons/pages/mcp.pages.php, line 243
    
    Severity: E_WARNING
    Warning
    
    Cannot modify header information - headers already sent by (output started at ee/legacy/core/Exceptions.php:111)
    
    ee/legacy/core/Input.php, line 233
    
    Severity: E_WARNING
    Warning
    
    Cannot modify header information - headers already sent by (output started at ee/legacy/core/Exceptions.php:111)
    
    ee/legacy/libraries/Functions.php, line 392
    
    Severity: E_WARNING
    ncstoronto
    13th December, 2017 at 8:26pm
  • Hi Derek, I found that i need to uninstall the Pages first and then re-install it again and the “filter_channels” is gone. Thanks and sorry about that. However, the default channel still does not work. I still have to select a channel to create a new page. In other words, setting a default channel in the settings does not help at all. Thanks, Chris

    ncstoronto
    13th December, 2017 at 8:32pm
  • In other words, setting a default channel in the settings does not help at all. Thanks, Chris

    Correct, as mentioned earlier, that setting will not be beneficial until we ship an iteration of the control panel with James’s changes that support that setting.

    Derek Jones
    13th December, 2017 at 8:34pm
  • thanks.

    ncstoronto
    13th December, 2017 at 8:35pm

You must be signed in to comment on a bug report.

ExpressionEngine News

#eecms, #events, #releases