On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • I think phx needs a little update?
    When I set on errors (config/user/detection/detact all) I see:

    Error : Undefined index: webInternalKey

    /assets/plugins/phx/phx.parser.class.inc.php

    Backtrace
    1	DocumentParser->executeParser()
    index.php on line 144
    2	DocumentParser->prepareResponse()
    manager/includes/document.parser.class.inc.php on line 1621
    3	DocumentParser->parseDocumentSource()
    manager/includes/document.parser.class.inc.php on line 1711
    4	DocumentParser->invokeEvent()
    manager/includes/document.parser.class.inc.php on line 1487
    5	DocumentParser->evalPlugin()
    manager/includes/document.parser.class.inc.php on line 3393
    6	eval()
    manager/includes/document.parser.class.inc.php on line 1006
    7	PHxParser->PHxParser()
    manager/includes/document.parser.class.inc.php(1006) : eval()'d code on line 5


      Evolution user, I like the back-end speed and simplicity smiley
    • My guess is that you're using PHx that can't read values due to MODX Caching/Parsing Order.

      >> $_SESSION[’webInternalKey’]
      http://forums.modx.com/thread/35296/the-way-session-works-in-modx#dis-post-193416


      >> PHx 2.2.0 phx.parser.class.inc.php
      	function PHxParser($debug=0,$maxpass=50) {
      		global $modx;
      		$this->name = "PHx";
      		$this->version = "2.2.0";
      		$this->user["mgrid"] = intval($_SESSION['mgrInternalKey']);
      		$this->user["usrid"] = intval($_SESSION['webInternalKey']);
      		$this->user["id"] = ($this->user["usrid"] > 0 ) ? (-$this->user["usrid"]) : $this->user["mgrid"];
      
                      ...
      


      If I try this setting (evo1012) I only get QuickManager: Undefined variable: hidetabs.
      I use PHx heavily and see no errors. I don't claim this isn't a problem with evo1013/PHx but
      I suspect you'd see the same thing in evo1012.

      Think of this when keeping error reporting ON:

      Error Reporting

      With PHP security, there are two sides to error reporting. One is beneficial to increasing security, the other is detrimental.
      >> http://www.php.net/manual/en/security.errors.php [ed. note: mrhaw last edited this post 5 years, 6 months ago.]
        @hawproductions | http://mrhaw.com/

        Infograph: MODX Advanced Install in 7 steps:
        http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

        Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
        http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
      • 1.0.12 also gives the error.
        It's phx indeed I'm using (always).
        It is probably some server setting / php version.
          Evolution user, I like the back-end speed and simplicity smiley
        • It is a warning since PHx does not check if $_SESSION['webInternalKey'] exists before it change it to integer. And there are a lot of undefined index warnings produced in Evo.

          One german user had activated 'mails on error' and he got 20000 mails per hour after activating 'detect all'. Be careful smiley
          • ok, as long as its only a warning I think we are good smiley
            might be best to set ignore all when the site is in production.
            on the other hand then we don't know when somethings wrong with a snippet/plugin etc and it stops working, hmmm dilemma :|
              Evolution user, I like the back-end speed and simplicity smiley