We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16702 ☆ A M B ☆
    • 536 Posts
    Last Of The Romans Reply #1, 18 years ago
    i have this error:

    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »

    PHP error debug
    Error: Unknown(): Unable to access /www/------/www/root/home/assets/snippets/maxigallery/maxigallery.php
    Error type/ Nr.: Warning - 2
    File: /www/---------/www/root/home/manager/includes/document.parser.class.inc.php(769) : eval()’d code
    Line: 71

    Parser timing
    MySQL: 0.0038 s (4 Requests)
    PHP: 0.0461 s
    Total: 0.0499 s

    can you help me?
    Thanks,
    Kristalin
      palma non sine pulvere
      • 7923
      • 4,213 Posts
      The error is saying that "Unable to access /www/------/www/root/home/assets/snippets/maxigallery/maxigallery.php", e.g. the file is not there..

      Have you uploaded all files to your FTP server and to correct places?



        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 16702 ☆ A M B ☆
        • 536 Posts
        Last Of The Romans Reply #3, 18 years ago
          palma non sine pulvere
          • 22303 MODX Staff
          • 10,725 Posts
          That just shows the path:
          /www/root/home/assets/snippets/maxigallery/maxigallery.php

          instead of
          /www/------/www/root/home/assets/snippets/maxigallery/maxigallery.php

          as the error is reporting.
            • 1771
            • 11 Posts
            I received the same error. From what I can tell, the path is correct and the files are located in the proper areas. This is pointing from the root, and I’ve tried manually adjusting the base path to see if it makes a difference. No luck yet. Any other ideas?

              Error: 	include(/hsphere/local/home/xxxxxxx/xxxxxxx/assets/snippets/maxigallery/maxigallery.php): failed to open stream: No such file or directory	 
              Error type/ Nr.: 	Warning - 2	 
              File: 	/hsphere/local/home/xxxxxxx/xxxxxxx/manager/includes/document.parser.class.inc.php(769) : eval()'d code	 
              Line: 	77
            


            Thanks,
            Amberly
              • 12584
              • 208 Posts
              Wonder if you figured this out I am getting this error

              Parse error: syntax error, unexpected T_STRING in /home/mysite/public_html/manager/includes/document.parser.class.inc.php(769) : eval()'d code on line 2


              And the first few lines of code on document.parser.class.inc.php is

              <?php
              /**
               *	MODx Document Parser
               *	Function: This class contains the main document parsing functions
               *
               */
              class DocumentParser {
                  var $db; // db object
                  var $event, $Event; // event object
              
                  var $pluginEvent;
              
                  var $config= null;
                  var $rs, $result, $sql, $table_prefix, $debug, $documentIdentifier, $documentMethod, $documentGenerated, $documentContent, $tstart, $minParserPasses, $maxParserPasses, $documentObject, $templateObject, $snippetObjects, $stopOnNotice, $executedQueries, $queryTime, $currentSnippet, $documentName, $aliases, $visitor, $entrypage, $documentListing, $dumpSnippets, $chunkCache, $snippetCache, $contentTypes, $dumpSQL, $queryCode, $virtualDir, $placeholders, $sjscripts, $jscripts, $loadedjscripts, $documentMap;
                  var $forwards= 3;


              Anyone got any ideas

              Thanks

                • 26903
                • 1,336 Posts
                This may be a line ending error, you may have to run dos2unix or unix2dos to get the line endings correct for the platform your on.
                  Use MODx, or the cat gets it!
                  • 12584
                  • 208 Posts
                  I have another site using the gallery script on the same server however that is 2 versions older so I dont think it is a server issue, but if it was how to I run dos2unix to find the correct line ending I have never heard of that.

                  Cheers
                    • 26903
                    • 1,336 Posts
                    dos2unix is a command line utility that converts dos line ending syntax to unix line ending syntax, unix2dos does it the other way round. if it is this, and you are on unix just type ’dos2unix <filename>’ from a terminal session and see if the php error goes away. Presumably you uploaded these files in the same way as the working site, if so it may not be this but its easy to check and rule it out.

                      Use MODx, or the cat gets it!
                      • 16702 ☆ A M B ☆
                      • 536 Posts
                      hello,


                      before 3-4 weeks i find my answer for this error but is my mistake.
                      my advice is look carefully web user permissions smiley))

                      Kristalin
                        palma non sine pulvere