Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Using oil to generate admin-panel problem
  • Hi there,

    I was using the terminal to set up FuelPHP for a new project.

    $ oil generate admin posts title:string body:text
    But when I go to .../admin/ Firefox complained about a redirecting problem.

    I then edited the /Controller/admin.php file like this:

        public function before()
                    if (Auth::check() and ! Auth::member(100) and Request::active()->action != 'login')

    Which seemed to do the trick.
    But now a have another problem: After logging in there isn't a $current_user. Which is kinda wierd.

    Any help?
  • HarroHarro
    Accepted Answer
    There is a similar discussion here:, perhaps that can give some pointers?

    Also, are you sure your session is created? If you haven't configured any session data, FuelPHP will default to cookie based sessions. And 1.5.1. had an issue with those, which was fixed yesterday afternoon. So if you installed before then, update your fuel/core.
  • First: Thanks!

    Nope. After updating the core files the problem stays the same. (Without the code-editing I get redirected until my browser gives up, with it no $current_user.)

    To be true: I have no idea if my session is created. How would I check this? I have not configured any session data, as I have no clue what would be the correct settings.
  • If you have not configured anything, Fuel will use cookie based sessions, which do not require any server side storage.

    Make sure you are on the current 1.5.1. If you're not using a git clone, download and install that in fuel/core. That way we can make sure you're not using the initial release which had a session bug that sneaked through the release validation process.
  • Ok, back on track:

    The problem still endures. (And is rather annoying.)
    Any clue what sessions might be wrong? Or missing? I used the standard settings.
    You can look for yourselfs: Here.

  • The redirect issue was fixed a few days ago, in 1.6/develop:

Howdy, Stranger!

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

In this Discussion