We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32531
    • 7 Posts
    Hi,

    Can anyone help with this as it’s starting to cost me a lot of time. I am trying to get the Search Engine Friendly URL’s working in Modx and for some reason it’s not working. This is the error message I’m getting:


    Parse error: syntax error, unexpected $end, expecting ’]’ in /homepages/26/d233536634/htdocs/manager/includes/document.parser.class.inc.php(814) : regexp code on line 1

    Fatal error: preg_replace() [<a href=’function.preg-replace’>function.preg-replace</a>]: Failed evaluating code: (1 ? (isset($aliases[#]) ? $this-&gt;makeFriendlyURL(’php’,’.php’,$aliases[#]) : $this-&gt;makeFriendlyURL(’php’,’.php’,’#’)) : $this-&gt;makeFriendlyURL(’php’,’.php’,’#’)) in /homepages/26/d233536634/htdocs/manager/includes/document.parser.class.inc.php on line 814

    Does anyone know what this is? Thanks...
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Download and upgrade to the latest version from the Download link above. The version you have is no longer supported, and may not be secure.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 32531
        • 7 Posts
        I’m aware of the security issues but I’m a bit unsure as to how much effort is invovled in upgrading? Also I Still would like to know why this error code is showing up. I’ve tested the .htaccess file so I know it’s turned on.
          • 22303 MODX Staff
          • 10,725 Posts
          You have a snippet that looks like it was run through a rich-text editor (i.e. the -> symbols have been converted to &gt; which will not parse properly in PHP.
            • 32531
            • 7 Posts
            I’ve checked the document.parser.class.inc.php and all seems to be OK. Could it be the configuration in MODx