We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23714
    • 13 Posts
    Getting an bug or error with the Strict URL’s plugin.

    syntax error, unexpected '<'
    Parse error: syntax error, unexpected '<' in /home/user/public_html/manager/includes/document.parser.class.inc.php(746) : eval()'d code on line 1
    



    • htaccess looks fine.
    • SEO StrictURLs re-installed (and the two settings checkmarked)
    • removed the two \\ lines before the <?php
      • 26931
      • 2,314 Posts
      plugin code shouldn’t be wrapped in php tags .... remove the "<?php" too
        • 23714
        • 13 Posts
        Wow, it worked. I wonder why plugin creators have those PHP tags around it anyways.
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Most likely to trigger syntax color-coding in their editors. It also works on the forums; if you enclose code in the code tags (using the # sign icon in the editor’s menu bar) and have the PHP tags, the code will be color-coded, making it easier to read and understand.
            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