Dec 04, 2008, 01:11 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Search via SMF or Google: modx forums all of modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
News:Donate to MODx: Donations
Pages: [1]   Go Down
  Print  
Author Topic: Turning on debug mode for MODx  (Read 3242 times)
0 Members and 1 Guest are viewing this topic.
Djamoer
Testers
*
Posts: 1,492

No one can limit a man other than the man himself.


WWW
« on: Jan 26, 2006, 03:13 PM »

Have you guys ever try to turn on this thing?
$modx->stopOnNotice = false;

It's located on your index.php. Does it has a problem with @INHERIT binding?
I'm using it a lot on my site design, and if I turn this on, I can't access my site at all.

Here is the error message
Code:
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
 
PHP error debug
  Error: Undefined offset: 1
  Error type/ Nr.: Notice - 8
  File: /home/.fierce/novsun/novsun.net/MODx_v1.9.1/manager/includes/tmplvars.commands.inc.php
  Line: 18
  Line 18 source: list($cmd,$param) = ParseCommand($nvalue);
 
Parser timing
  MySQL: 0.0084 s s (3 Requests)
  PHP: 0.1385 s s
  Total: 0.1469 s s

FYI, I use 3 TV, and one of them as a RTE. All three of them have default value set to @INHERIT.
Then in the parent page, I just put whatever that I want for this to be inherited acros the child page. In child folder, I also modify some of the TV according to the layout. Is there any known bug for this? I mean it's not to big of a deal though, but knowing that it has a small error inside the system is not something good to know Smiley

Any help will be great.
Logged

davidm
Marketing & Design Team
*
Posts: 6,777


The best way to predict the future is to invent it


WWW
« Reply #1 on: Jan 26, 2006, 03:15 PM »

I do not have an answer there but :

Have you guys ever try to turn on this thing?
$modx->stopOnNotice = false;
It's located on your index.php.

Not yet and thanks for the tip, could help me in the future...

Logged

.: nodeo.net : Pour un web libre, moderne et ouvert ! :: david-molliere.net : Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web :.

*** Forums modxcms.fr Participez à l'élaboration du site MODx francophone ! ***

! Nouveau !  En live, ne manquez pas les news de modxcms.fr sur Twitter   ! Nouveau !

MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accès pour les utilisateurs finaux.

Config : Apache 2.2.8 - MySQL 5.0.45 - PHP 5.2.6 | Debian 4.0 (Etch)

Réalisations sous MODx : | pargade-notaires.fr | soleil.info | gican.asso.fr | michelez-notaires.com | amadom.gerondicap.com | jocelyne-violet.net
Djamoer
Testers
*
Posts: 1,492

No one can limit a man other than the man himself.


WWW
« Reply #2 on: Jan 26, 2006, 03:37 PM »

Confirmed!

After spending almost an hour trying all possibility to break the minimal template on default installation, I found out the cause to this error.

When I set @INHERIT as the default value for TV, then I assign that TV to some template, which is I use minimal template, and leave the TV on that specific page using template minimal to default value, which is suppose to be @INHERIT, then you will encounter the error. This is only show up when the debug mode turned on.

Can somebody confirmed this for me please?
Thanks
Logged

rthrash
Foundation
*
Posts: 9,575



WWW
« Reply #3 on: Jan 27, 2006, 07:28 AM »

I suspect your analysis is correct Wendy. Time for a bugtrack report! Cheesy
Logged

MODx is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you help us help you, read the wiki, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.
Djamoer
Testers
*
Posts: 1,492

No one can limit a man other than the man himself.


WWW
« Reply #4 on: Jan 27, 2006, 08:38 AM »

Yep, I did that yesterday. I;m looking forward for this to be fix on the next release Smiley Thanks to all the core developer.
Logged

Djamoer
Testers
*
Posts: 1,492

No one can limit a man other than the man himself.


WWW
« Reply #5 on: Jan 27, 2006, 09:11 AM »

I found this error again.

Code:
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
 
PHP error debug
  Error: Undefined index:
  Error type/ Nr.: Notice - 8
  File: /home/.fierce/novsun/novsun.net/MODx_v1.9.1/manager/includes/document.parser.class.inc.php
  Line: 2024
  Line 2024 source: if ($this->loadedjscripts[$src])
 
Parser timing
  MySQL: 0.0111 s s (3 Requests)
  PHP: 0.0753 s s
  Total: 0.0865 s s

I haven't got time to work on it yet, but I'll see where this problem coming from. Any response to this will be great. It happens even when I didn't use any snippet calling on my script at all, except TVs and chunks.
Logged

aNoble
Coding Team
*
Posts: 679



WWW
« Reply #6 on: Jan 27, 2006, 06:08 PM »

Well, I guess I'm a little late to the party. I can tell you though that this will definitely be fixed in the next release. If anyone would really like a patch before then I'll work on getting one out.

However, I wouldn't worry about getting Notices in the code because they really are nothing more than that. They do not reflect porblems with the code but just a warning that PHP thinks there could be something wrong with the code.
Logged

Djamoer
Testers
*
Posts: 1,492

No one can limit a man other than the man himself.


WWW
« Reply #7 on: Jan 27, 2006, 06:16 PM »

Adam, so is this problem you're talking about is for the TV or for the loadjscript?
I think we are all fine with the current MODx. We'll just wait for the next release, because this is not to big of a deal. Wink
Logged

aNoble
Coding Team
*
Posts: 679



WWW
« Reply #8 on: Mar 25, 2006, 07:17 PM »

I have fixed both of these issues and the fixes will be released with 0.9.2.
Logged

Djamoer
Testers
*
Posts: 1,492

No one can limit a man other than the man himself.


WWW
« Reply #9 on: Mar 26, 2006, 05:42 PM »

That's so cool adam. Thanks
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF 1.1.4 | SMF © 2005, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!