Page render issue: feature 1.4 branch

edited March 2016 in Bug Reports
Hi,

I'm getting the following error trying to render a page:

A PHP Error was encountered
Severity: Notice
Message: Undefined property: Search::$fuel_navigation
Filename: libraries/Fuel_advanced_module.php
Line Number: 1161

MY_fuel.php
$config['fuel_mode'] = 'AUTO';

controller: search.php

function index(){
$vars['layout'] = 'search';
$this->fuel->pages->render('search', $vars);
}

the layout search.php is empty
the view search.php is also empty (I commented out the code while debugging)

I've traced the error to fuel/codeigniter/core/CodeIgniter.php Line 514

call_user_func_array(array(&$CI, $method), $params);

$method = 'index'
$params = array()

not sure what the issue is

Comments

  • edited 2:33PM
    To confirm, is this the latest version of the 1.4_dev branch? And this appears to just be a Search controller rendering a page from the CMS correct?
  • edited 2:33PM
    it's an opt-in controller, for search results. yep, it's 1.4_dev branch
  • edited 2:33PM
    I'm having a hard time replicating the issue. Is there a call to perhaps fuel_nav in the layout that is triggering the error or some other part of the view rendering (maybe in the _variables/global.php)?
  • edited 2:33PM
    when I comment out the calls to fuel_nav, i get these errors:

    A PHP Error was encountered

    Severity: Notice

    Message: Undefined property: Search::$fuel_modules

    Filename: libraries/Fuel_advanced_module.php

    Line Number: 1161

    Backtrace:

    File: /Users/david/Sites/Decidebloom/ofna/fuel/modules/fuel/libraries/Fuel_advanced_module.php
    Line: 1161
    Function: _error_handler

    File: /Users/david/Sites/Decidebloom/ofna/fuel/modules/fuel/libraries/Fuel_advanced_module.php
    Line: 393
    Function: load_library

    File: /Users/david/Sites/Decidebloom/ofna/fuel/modules/fuel/libraries/Fuel.php
    Line: 331
    Function: attach

    File: /Users/david/Sites/Decidebloom/ofna/fuel/modules/fuel/libraries/Fuel_posts.php
    Line: 962
    Function: __get

    File: /Users/david/Sites/Decidebloom/ofna/fuel/modules/fuel/libraries/Fuel_pages.php
    Line: 730
    Function: find_module

    File: /Users/david/Sites/Decidebloom/ofna/fuel/modules/fuel/libraries/Fuel_pages.php
    Line: 574
    Function: assign_variables

    File: /Users/david/Sites/Decidebloom/ofna/fuel/modules/fuel/libraries/Fuel_pages.php
    Line: 525
    Function: initialize

    File: /Users/david/Sites/Decidebloom/ofna/fuel/modules/fuel/libraries/Fuel_pages.php
    Line: 65
    Function: __construct

    File: /Users/david/Sites/Decidebloom/ofna/fuel/modules/fuel/libraries/Fuel_pages.php
    Line: 321
    Function: create

    File: /Users/david/Sites/Decidebloom/ofna/fuel/application/controllers/Search.php
    Line: 29
    Function: render

    File: /Users/david/Sites/Decidebloom/ofna/index.php
    Line: 362
    Function: require_once


    Fatal error: Call to a member function get() on a non-object in /Users/david/Sites/Decidebloom/ofna/fuel/modules/fuel/libraries/Fuel_posts.php on line 962
    A PHP Error was encountered

    Severity: Error

    Message: Call to a member function get() on a non-object

    Filename: libraries/Fuel_posts.php

    Line Number: 962

    Backtrace:
  • edited 2:33PM
    This seems to be caused by the require_once being used in other classes. I've modified the loader to account for this scenario in the 1.4_dev version
  • edited 2:33PM
    Thanks Dave, I'd never have solved that one.

    Cheers
Sign In or Register to comment.