We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11055 ☆ A M B ☆
    • 3,112 Posts
    index.php
    <?php
    // Debugging mode:
    $modx->stopOnNotice = true;
    



    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »

    PHP error debug
    Error: Undefined variable: charset
    Error type/ Nr.: Notice - 8
    File: D:\localhost\modx-1.0.x-svn\manager\includes\extenders\dbapi.mysql.class.inc.php
    Line: 86
    Line 86 source: $charset = $charset ? $charset : $this->config[’charset’];

    Parser timing
    MySQL: 0.0000 s (0 Requests)
    PHP: 0.0292 s
    Total: 0.0292 s

    Anyone used to play with debug mode?
      Rico
      Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
      MODx is great, but knowing how to use it well makes it perfect!

      www.virtudraft.com

      Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

      Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

      Maintainter/contributor of Babel

      Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
      • 21257 MODX Staff
      • 730 Posts
      PHP generates lots of "notices". This is from the PHP manual:
      Note: Enabling E_NOTICE during development has some benefits. For debugging purposes: NOTICE messages will warn you about possible bugs in your code. For example, use of unassigned values is warned. It is extremely useful to find typos and to save time for debugging. NOTICE messages will warn you about bad style. For example, $arr[item] is better to be written as $arr[’item’] since PHP tries to treat "item" as constant. If it is not a constant, PHP assumes it is a string index for the array.
      Lots of MODx core code will generate notices, so I don’t think it will be helpful for you to have the parser stop when they’re encountered.
        Mike Schell
        Lead Developer, MODX Cloud
        Email: [email protected]
        GitHub: https://github.com/netProphET/
        Twitter: @mkschell
        • 19889
        • 616 Posts
        I’m obviously not the only one experiencing that charset error:

        PHP error debug
        Error: Undefined variable: charset
        Error type/ Nr.: Notice - 8
        File: D:\localhost\modx-1.0.x-svn\manager\includes\extenders\dbapi.mysql.class.inc.php
        Line: 86
        Line 86 source: $charset = $charset ? $charset : $this->config[’charset’];