1
TheFinni
turn ON debug in guest mode?
  • 2007/1/27 1:39

  • TheFinni

  • Just popping in

  • Posts: 75

  • Since: 2003/11/25


How can one turn on debug mode when browsing as guest or anonymous?

I just need this during developement.

Thanks!

2
jensclas
Re: turn ON debug in guest mode?

You would have to give administration permission to your anonymous users group - they would have to have access to the admin module. (Why you would want to do this or need this for development is beyond me...I like the safety of the fact that I have permissions to keep gusts and anonymous well away from my admin!)

What you can do is this - login as admin, turn on the debug, log out and crusie the site as anonymous or guest. If there are errors you will probably see them - thats why we have been advised to turn debug mode off when we are not tinkering with the installation.

3
TheFinni
Re: turn ON debug in guest mode?
  • 2007/1/27 20:01

  • TheFinni

  • Just popping in

  • Posts: 75

  • Since: 2003/11/25


I just want to make sure there are no errors in database queries, functions, or classes for when a guest browses the site. I want to get rid of all notices too for maximum performance. Sometimes these are affected when the user (guest) has no profile id...

I'm not planning on using this on a live server. Just on my local machine for testing purposes.

I tried to follow your instructions on allowing guests all system admin privileges and turning on debug...BUT I don't get the debug inline info showing.

Perhaps this info is hardcoded somewhere?

Thanks!

4
phppp
Re: turn ON debug in guest mode?
  • 2007/1/28 23:26

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


class/logger.php

function render( $output ) {
global $xoopsUser;
//if ( !$this->activated || !$xoopsUser || !$xoopsUser->isAdmin() ) {
if ( !$this->activated ) {
return $output;
}

5
TheFinni
Re: turn ON debug in guest mode?
  • 2007/1/29 17:34

  • TheFinni

  • Just popping in

  • Posts: 75

  • Since: 2003/11/25


Thanks phppp!

That works like a charm!

Login

Who's Online

224 user(s) are online (158 user(s) are browsing Support Forums)


Members: 0


Guests: 224


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits