All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Another PHP Error

Andrew Mac 24 May 2010 08:37 question, complete

Hi Low

Sorry, but I've run into another little PHP issue. This time it happened when I added a "Select Channels" variable type. Now when I log into the main "Low Variables" page I get the following error:

A PHP Error was encountered
Severity: Notice
Message: Undefined property: CI_DB_mysql_result::$result
Filename: low_select_channels/vt.low_select_channels.php
Line Number: 156

A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: libraries/Low_variables_type.php
Line Number: 303

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /Users/andrew/Sites/Silkworm-EE2/public_html/system/core/Exceptions.php:166)
Filename: core/Common.php
Line Number: 428

Oh, and the other little issue is that no channels show up in that variable's input field ...

Here's hoping this is another quick little fix! ;-)

Cheers
Andrew Macpherson
Sydney, Australia

Replies

  1. Andrew Mac 24 May 2010 08:40

    Hi Low

    Forgot to mention that I'm migrating from EE 1.6, and the error does not seem to happen there ... I've only seen it in EE 2.

  2. Low 24 May 2010 09:03

    Hey Andrew,

    A quick fix indeed. Next time I need more beta testers, I think. :)

    If you want to fix it yourself, then open the file vt.low_select_channels.php in a text editor. On line 156, you'll fine this code:

    $channels = $this->flatten_results($query->result, 'channel_name', 'channel_title');

    Change that to:

    $channels = $this->flatten_results($query->result_array(), 'channel_name', 'channel_title');

    And you should be good to go.

  3. Andrew Mac 24 May 2010 10:52

    Hi Low

    Thanks once again for the quick response. I've made that change, and everything is working okay now.

    As for the extra beta testers ... well, there ain't that much need when you're so quick and reliable with the fixes! ;-)

    Cheers
    Andrew Mac