1
macklein
xoops debug active for registered users
  • 2009/4/2 16:14

  • macklein

  • Just popping in

  • Posts: 21

  • Since: 2006/6/29


is the debug supposed to be displayed for registered users?
In earlier versions of XOOPS it was displayed only for administrator when the debug was active (inline mode). Now i am using XOOPS 2.3.3 and the debug is displayed for registered users too...

how can I make it so that the debug only shows for administrators?

2
ghia
Re: xoops debug active for registered users
  • 2009/4/2 16:53

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


In /class/logger/xoopslogger.php in function render replace
if ( !$this->activated  ) {
by
if ( !$this->activated || !$xoopsUser || !$xoopsUser->isAdmin() ) {
(This means you can only debug code parts accessible by the webmaster.)

3
trabis
Re: xoops debug active for registered users
  • 2009/4/2 17:48

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


xoops_data/configs/xoopsconfig.php

change

"debugLevel" => 1,

to 2.

4
macklein
Re: xoops debug active for registered users
  • 2009/4/2 18:44

  • macklein

  • Just popping in

  • Posts: 21

  • Since: 2006/6/29


Thank you very much, as I see, the community is getting better

5
Lord_Venom
Re: xoops debug active for registered users
  • 2009/6/15 17:39

  • Lord_Venom

  • Not too shy to talk

  • Posts: 165

  • Since: 2006/5/12


hello, I put the "DebugLevel" => 2, to see just for the admin but there has to debug and always visible to the visitor and save anonimous seen a solution?

Thanks
i'm sorry my translator is crazy...

My SourceForge

6
trabis
Re: xoops debug active for registered users
  • 2009/6/15 18:06

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:

Lord_Venom wrote:
hello, I put the "DebugLevel" => 2, to see just for the admin but there has to debug and always visible to the visitor and save anonimous seen a solution?

Thanks


You're right, your translator is crazy!
Maybe you could post in French?

7
macklein
Re: xoops debug active for registered users
  • 2009/6/15 18:49

  • macklein

  • Just popping in

  • Posts: 21

  • Since: 2006/6/29


or in my case, in spanish

8
Lord_Venom
Re: xoops debug active for registered users
  • 2009/6/15 20:05

  • Lord_Venom

  • Not too shy to talk

  • Posts: 165

  • Since: 2006/5/12


lol oui je peux ecrire français :) j'ai donc modifier xoops_data/configs/xoopsconfig.php pour limiter le debug au admin

"DebugLevel" => 2


Mais cela ne fonctionne pas chez moi les anonymes peuvent toujours voir le debug.

English
so I change xoops_data / configs / xoopsconfig.php to limit the debug in admin

[code]
"DebugLevel" => 2
[/ code]

But this does not at my anonymous can still see the debug.

Thanks for Help


i'm sorry my translator is crazy...

My SourceForge

9
trabis
Re: xoops debug active for registered users
  • 2009/6/15 20:14

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Ok, now I understand clearly!

In fact I noticed that same problem in other site I have. I notice that google was indexing debug errors, I went to config file and it was already set with '2'. I will have look again on that site cause I have better chances to find the problem. Thanks.

10
trabis
Re: xoops debug active for registered users
  • 2009/6/15 20:36

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Ok, I was using XOOPS 2.3.2
I upgraded to XOOPS 2.3.3 and it works fine!

Login

Who's Online

139 user(s) are online (92 user(s) are browsing Support Forums)


Members: 0


Guests: 139


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