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->makeFriendlyURL(’php’,’.php’,$aliases[#]) : $this->makeFriendlyURL(’php’,’.php’,’#’)) : $this->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...
-
☆ 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.
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.
-
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 > which will not parse properly in PHP.
I’ve checked the document.parser.class.inc.php and all seems to be OK. Could it be the configuration in MODx