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

    i receive a MODX Parse Error

    Parse error: syntax error, unexpected '/' in /kunden/XXXXX/modx/manager/includes/document.parser.class.inc.php(1005) : eval()'d code on line 2
    ErrorType[num] :    PARSING ERROR[4]
    


    if i put the
    &rowTpl=`@FILE:assets/modules/yams/tpl/wayfinder/docr/row.tpl`
    on Wayfinder

    any Idea? [ed. note: kossab last edited this post 10 years, 5 months ago.]
    • 		} else if(substr($tpl, 0, 6) == "@FILE:") {
      			$template = file_get_contents(substr($tpl, 6));

      This gets the template only with a complete MODX basepath after @FILE

      Try the following changes in wayfinder.inc.php at line 563:

      		} else if (substr($tpl, 0, 6) == "@FILE:") {
      			$filename = substr($tpl, 6);
      			$filename = (strpos($filename, 'assets') === 0) ? MODX_BASE_PATH . $filename : $filename;
      			$template = file_get_contents($filename);
      
      
        • 16245
        • 22 Posts
        the same error sad
        • O.k. file_get_contents could maybe use the php include path setting so my changes won't make it better.

          Then the issue should be caused by the content of the template chunk file. Edit that file and try what YAMS snippet call or YAMS placeholder causes the issue.
            • 16245
            • 22 Posts
            hi jako,

            if i delete all the 3 placeholders
              <a href="(yams_docr:[+wf.docid+])" title="[[YAMS? &get=`data` &docid=`[+wf.docid+]` &from=`pagetitle`]]" [+wf.attributes+]>[[YAMS? &get=`data` &docid=`[+wf.docid+]` &from=`menutitle`]]</a>



            then i can load the page.. just without a menu

            what is wrong on version 1.0.12?
            it was worked always on the old eve versions?
            the php version maybe?
              • 16245
              • 22 Posts
              here the full error


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

              Parse error: syntax error, unexpected '/' in /kunden/XXXXXXX/modx/manager/includes/document.parser.class.inc.php(1005) : eval()'d code on line 2
              ErrorType[num] : PARSING ERROR[4]
              File : /kunden/XXXXXXX/modx/manager/includes/document.parser.class.inc.php(1005) : eval()'d code
              Line : 2
              Source : Snippet
              Basic info
              REQUEST_URI : /de/home.html
              Resource : [1]Home
              Current Snippet : YAMS
              Referer : http://www.xxxx.de/manager/index.php?a=1&f=tree
              User Agent : Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9) AppleWebKit/537.71 (KHTML, like Gecko) Version/7.0 Safari/537.71
              IP : 81.17.27.254
              Benchmarks
              MySQL : 0.0131 s (10 Requests)
              PHP : 0.0447 s
              Total : 0.0578 s
              Memory : 2.9276657104492 mb

              Backtrace

              1 DocumentParser->executeParser()
              index.php on line 140
              2 DocumentParser->prepareResponse()
              manager/includes/document.parser.class.inc.php on line 1568
              3 DocumentParser->parseDocumentSource()
              manager/includes/document.parser.class.inc.php on line 1658
              4 DocumentParser->evalSnippets()
              manager/includes/document.parser.class.inc.php on line 1450
              5 DocumentParser->_get_snip_result()
              manager/includes/document.parser.class.inc.php on line 1061
              6 DocumentParser->evalSnippet()
              manager/includes/document.parser.class.inc.php on line 1147 [ed. note: kossab last edited this post 10 years, 5 months ago.]
              • YAMS snippet is working outside of the Wayfinder chunk?
                  • 16245
                  • 22 Posts
                  Quote from: Jako at Nov 19, 2013, 09:58 PM
                  YAMS snippet is working outside of the Wayfinder chunk?

                  now, if you write that.. i have tried with one page.. page title and Ressource-Alias works. but not the content..
                  • Do you have PHx plugin installed? Does it work if you deactivate the plugin?
                      • 16245
                      • 22 Posts
                      nope PHx is not installed sad

                      it is really shit now..
                      I would have to install Revo