Support ⇒ Dragonfly CMS v10 ⇒ No debug info for Admin in Dragonfly V10 ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexDragonfly CMS v10

No debug info for Admin in Dragonfly V10 Reply to topic


Hi,

I have update my site to DF10 and I get problem with user login. After that, I tried to activate debug mode, al config changes were accepted but is not working: no sql queries, no cms error, etc...

Aforo - Google Earth - WebNaranja - DFcms.es

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Centos 5/Apache 2.2.3/MySQL:5.0.45/PHP:5.2.10 /9.2


Did you try to clear the cache folder?
Also:
  • You must use a v10 theme (not your old theme)
  • See the purple bug in the bottom left corner
  • See Admin -> System -> Log

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial

Last edited by DJ Maze on Tue Jun 12, 2018 3:55 pm; edited 1 time in total


Thanks for your help.

Aforo - Google Earth - WebNaranja - DFcms.es

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Centos 5/Apache 2.2.3/MySQL:5.0.45/PHP:5.2.10 /9.2


I'm trying to configure Debug info only for administrators and I have a big problem.

I try to see debug info but the only way it's creating a develop file. I have all debug levels active, and debugging mode active too, but I don't see anything.

It's possible to be some errors with this functionality?

until the next (Bye),

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Dragonfly 9.2 (PHP5.4)


Not sure yet, I'm pretty back with the code... but would creating the file show the debug bar to non-admins?

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


I'm check the code and I think that something it's wrong
if (CPG_DEBUG || DF_MODE_DEVELOPER || \Dragonfly::$DEBUG) { \Dragonfly\Output\Css::add('poodle/debugger'); \Dragonfly\Output\Js::add('includes/poodle/javascript/debugger.js'); }
This is the code to insert into template the javascript to show debug bar. I don't see anything that filter to admin.

Into the same way, I deleted developer file (to turn of DF_MODE_DEVELOPER), and I check debug field into admin options and debug bar doesn't apear.

until the next (Bye),

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Dragonfly 9.2 (PHP5.4)


Yeah, it can only be activated with DF_MODE_DEVELOPER.

cmsinit.inc:32
Dragonfly::$DEBUG = DF_MODE_DEVELOPER || CPG_DEBUG ? Dragonfly::DBG_ALL : Dragonfly::$DEBUG;

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


But it's better to enable it with admin options and show the options selected into admin pages too.

until the next (Bye),

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Dragonfly 9.2 (PHP5.4)


Admin debug options aren't for the debug bar. With the above code you can enable the bar when you select CPG_DEBUG without turning off css and js minifier etc..

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


Nano, great to see you again. Two Thumbs Up

The problem is that debug information is readable even for a anonymous user.
In your website everybody can see the errors and database structure or your website (included database queries):
dragonflycms.org/


Admin can decide if it is printed or not, but always only readable for a admin user.

This information must be showed only for loged admin for security reasons.

Aforo - Google Earth - WebNaranja - DFcms.es

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Centos 5/Apache 2.2.3/MySQL:5.0.45/PHP:5.2.10 /9.2


Hi thanks!

Yes and no, quite few times I had to debug as logged in user or visitor... but I just noticed none of the debug "view" options are evaluated.

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


NanoCaiordo wrote
Hi thanks!

Yes and no, quite few times I had to debug as logged in user or visitor... but I just noticed none of the debug "view" options are evaluated.


Yes and not... you can debug as Anonymous, as the same time that you are logged as Admin.
But for printing the information, you must be logged as admin... with user or not.
This was the same in Dragonfly 9.X.

Aforo - Google Earth - WebNaranja - DFcms.es

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Centos 5/Apache 2.2.3/MySQL:5.0.45/PHP:5.2.10 /9.2

Last edited by Aforo on Wed Oct 10, 2018 7:38 pm; edited 1 time in total


NanoCaiordo wrote
Yeah, it can only be activated with DF_MODE_DEVELOPER.

cmsinit.inc:32
Dragonfly::$DEBUG = DF_MODE_DEVELOPER || CPG_DEBUG ? Dragonfly::DBG_ALL : Dragonfly::$DEBUG;


Did it help, if so I'll start with this commit .

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


NanoCaiordo wrote
NanoCaiordo wrote
Yeah, it can only be activated with DF_MODE_DEVELOPER.

cmsinit.inc:32
Dragonfly::$DEBUG = DF_MODE_DEVELOPER || CPG_DEBUG ? Dragonfly::DBG_ALL : Dragonfly::$DEBUG;


Did it help, if so I'll start with this commit .


Well done. Two Thumbs Up

Aforo - Google Earth - WebNaranja - DFcms.es

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Centos 5/Apache 2.2.3/MySQL:5.0.45/PHP:5.2.10 /9.2


Yes, it works!

But I still have the problem that I can't config wich elements to debug

until the next (Bye),

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Dragonfly 9.2 (PHP5.4)

All times are UTC


Jump to: