Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
basic session help
  • Hi, As soon as i do anything with Sessions i get the following error: <quote>ErrorException [ Error ]: Unsupported operand types</quote> <quote>COREPATH/classes/config.php @ line 41</quote> <code>$config = \Fuel::load($path) + $config</code> I am calling session like this: Session::create(); also tried
    \Fuel\Core\Session::create();
    and
    Session::set('test','test data');
  • Most likely your session config file doesn't return an array, so you'll get this error when the config array's are merged.
  • Hi WW, I copied the session.php from core/config and it looks ok. any other ideas?
  • What code base are you using? There were some fixes post-RC3 (so in develop branch) to the Config class to fix similar error messages.
  • I am using RC3. are there instructions on how to get the dev branch?
  • Open your shell program (Terminal, xterm...) and navigation to the base folder where your fuel installation resides. Navigation to the fuel/core directory and run:
    git pull origin develop
    git checkout develop
    

    that should put you on the develop branch...
  • develop branch worked! thanks.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion