ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Display Output Profiler / Debugger not working in frontend

November 20, 2011 6:06am

Subscribe [5]
  • #1 / Nov 20, 2011 6:06am

    Tilo

    81 posts

    I switched on the Display Output Profiler / Debugger in Control Panel. It works fine on the CP pages, but doesn’t show anything on the frontend pages.
    I had the same problem with EE 1.x previously (I am just in the middle of switching to 2.x).
    I know it worked before as I used this feature a long time ago. Now, as I wanted to clean up my queries, it wouldn’t show the output on my frontend pages anymore.
    I am logged in as Super Admin.

  • #2 / Nov 20, 2011 7:30am

    Mark Bowen

    12637 posts

    Hi Tilo,

    Are you definitely logged in as a Super Admin on the front-end too? Make sure you are visiting the site with either both www in each of the Control Panel URL and the front-end URL or both without the www. If you go to one of them with a www and the other without then these are seen as different domains due to the cookies on the site. If you fill in the Cookie preferences though then you can stop this from happening again.

    You might want to use something like this in your template too to see if you really are logged in as a Super Admin :

    {if member_group == "1"}
    Logged in as a Super Admin
    
    {/if}
    
    {if logged_in}
    You are currently logged in to the member group with the ID of {member_group}
    
    {/if}
    
    {if logged_out}
    You are currently logged out of the system
    {/if}

    The code above should give you all the information you need to see if you are indeed logged in under the correct member group.

    Hope that helps a bit.

    Best wishes,

    Mark

     

  • #3 / Nov 20, 2011 8:56pm

    Tilo

    81 posts

    Hi Mark,
    thanks for the advice. The code you gave me hinted that i was logged out in the front-end. Only after placing a login form on the page to log in, I was able to see the output. I would have thought if you are logged in with the same browser to the control panel, you would be logged in on the front-end as well.
    Funny thing, after logging in with the login form on the front-end page, I was logged out of the CP and couldn’t log in again as long as I was logged in on the front-end. I need to use 2 different browsers to be logged at both ends of the system.

  • #4 / Nov 21, 2011 2:53pm

    Dan Decker

    7338 posts

    Hi Tilo,

    Let me see if I can sort this out a bit. The discrepancies you see are likely due to using Sessions in the Control Panel and cookies on the user side. If you use cookies on both sides, you should be able to switch between the 2 without being jostled around. Admin-> Security and Privacy-> Security and Sessions; check the values for “Control Panel Session Type” and “User Session Type”.

  • #5 / Nov 21, 2011 8:33pm

    Tilo

    81 posts

    Next funny thing. The value for “Control Panel Session Type” always switches back to “Session ID only” after hitting submit. It doesn’t allow me to save the other 2 choices. For “User Session Type” I can save all 3 choices.
    So, the only way currently to have the same value for CP and User Session is to select “Session ID only”. This still causes the discrepancy mentioned in the previous post.

  • #6 / Nov 22, 2011 7:33am

    Mark Bowen

    12637 posts

    Check that you have the correct permissions for writing to the system > expressionengine > config > config.php file.

    That setting is stored in there and if the file isn’t write-able then this will possibly be causing the problem you are seeing here.

    Best wishes,

    Mark

  • #7 / Nov 22, 2011 7:52pm

    Sean C. Smith

    3818 posts

    Tilo,

    Have you checked the permissions for config.php as Mark Suggested? Check that it’s set to 666 and then let me know how it’s working.

    Sean

  • #8 / Nov 22, 2011 11:27pm

    Tilo

    81 posts

    Hi Mark, thanks for the advice. I manually updated the $config[‘admin_session_type’] variable in the config file. That is good enough for now. I run a local installation.

  • #9 / Nov 23, 2011 9:06am

    Mark Bowen

    12637 posts

    Hi Tilo,

    Excellent. Glad that helped a bit.

    Best wishes,

    Mark

  • #10 / Nov 23, 2011 6:55pm

    Kevin Smith

    4784 posts

    Glad Mark could help take care of it, Tilo! Let us know if there’s anything else.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases