We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28563
    • 35 Posts
    Has anybody ever seen this error? - I saw this after enabling friendly urls with all setting to default, for just one page..


    Parse error: parse error, unexpected ’?’, expecting ’]’ in /avatar/httpd/html/manager/includes/document.parser.class.inc.php(807) : regexp code on line 1

    Fatal error: Failed evaluating code: (1 ? (isset($aliases[?]) ? $this->makeFriendlyURL(’’,’.html’,$aliases[?]) : $this->makeFriendlyURL(’’,’.html’,’?’)) : $this->makeFriendlyURL(’’,’.html’,’?’)) in /avatar/httpd/html/manager/includes/document.parser.class.inc.php on line 807

    -S
      • 22815
      • 1,097 Posts
      What is the alias you have for that page?
        No, I don't know what OpenGeek's saying half the time either.
        MODx Documentation: The Wiki | My Wiki contributions | Main MODx Documentation
        Forum: Where to post threads about add-ons | Forum Rules
        Like MODx? donate (and/or share your resources)
        Like me? See my Amazon wishlist
        MODx "Most Promising CMS" - so appropriate!
        • 28563
        • 35 Posts
        It was ’Find-It’ - I changed it to ’Find’ and it did not make a difference...
          • 22303 MODX Staff
          • 10,725 Posts
          Check all your [~~] tags and make sure they only contain integer values...e.g. [~5~], [~12~], etc. or that they have other valid tags that return an ID nested... [~[*id*]~] -- or links built with AliasLink plugin [~[+alias:Find-It+]~]
            • 28563
            • 35 Posts
            Thanks for the response - checked all my chunks that my various templates call, and the id for that page is in the correct format. I don’t think that’s the problem - there is something wrong with the way it evaluates the page - the id or the alias, I’m not sure, but it’s just this page...

            S