We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22694
    • 7 Posts
    Opened the php file and I dont seem to see what could trigger this either, but I do miss obvious things a lot...

    Parse error: parse error, unexpected T_CLASS in /home/lepark/public_html/manager/includes/document.parser.class.inc.php on line 1

    Help is appreciated. Just installed it fresh and got this soon as I hit continue to go into manager.
    Thanks a lot! Cant wait to use this software, trying something other then nuke.

    Info..
    OS = Linux
    Apache = 1.3.33 (Unix)
    Php = 4.3.11
      • 26435
      • 1,193 Posts
      This is probably related to a snippet in your template, or on the page that is generating the error. I am not positive, but I believe the consensus on this type of error is to disable/remove the snippets on that page or template until the error goes away, then you know the culprit.

      -sD-
        Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
        All of the above... in no specific order.


        I send pointless little messages
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        This is going into the Manager immediately after installation, SD, so there is something very unusual going on. I would venture to say perhaps a corrupted upload?
          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
          • 22694
          • 7 Posts
          While I was waiting... tried it again 2 times... reuploading the whole package.
          Same error both times. Both times I also used fresh databases I created.

          Hmm. Im going to keep playing. If anyone has suggestions lemme know. wink

          Just to mention during the install everything went 100% smoothly each time.
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Without acually having access to the site to take a look at things, it’s kind of hard to say what this could be. It appears to be unique.
              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
              • 22694
              • 7 Posts
              I can give someone trustworthy on this site full access... not a problem.
                • 22303 MODX Staff
                • 10,725 Posts
                Can you cut and paste line 1 from your /home/lepark/public_html/manager/includes/document.parser.class.inc.php file? That is very odd...
                  • 22694
                  • 7 Posts
                  You can download the file here....

                  http://www.pkto.ca/upload/document.parser.class.inc.php
                    • 22303 MODX Staff
                    • 10,725 Posts
                    Uh not really; you’ll have to change the file extension from something other than php -- try adding .txt to it if you must make me download the whole thing. Anyway, the error is referring to line 1, so that’s the area I would look for the problem. Line 1 should just be...
                    <?php

                    ...and nothing more.
                      • 22694
                      • 7 Posts
                      Ah sorry about the .php , long day at work. sad

                      Im asking you to download it complete because I wanted to show you that the way that it installed. It doesnt have a ’formatted’ line 1 like the rest of the files so I cant really pull it alone for you to see. Unsure of why it did this, and didnt clue into my head before that this could be why its doing it. As I opened it with notepad and thought that it had just garbled it up like common html files. I checked others (randomly) and they all seem to be properly ’formatted’, this is the only one like this that I have found.

                      Here:

                      http://www.pkto.ca/upload/document.parser.class.inc.php.txt