We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15987
    • 786 Posts
    instead of this in your tv:

    D:\www\v3\files\myapp

    try this:

    files/myapp
      • 21101
      • 169 Posts
      i’ve found the problem, it’s the RewriteRule with the FileDownload Plugin
        Play no games
        • 27376
        • 576 Posts
        @kylej,

        I’ve sent you an update to the snippet.
          • 27330
          • 884 Posts
          I’m getting this error in the system log:
          I didn’t change the snippet code.

          any ideas where to look for it?

          using filedownload 2.5 on MODx 0.9.5

          TIA
          Error
          
          Event Id:	1	Source:	FileDownloadPlugin - Plugin
           
          Date:	18-Jan-2007 11:27 PM	User:	
           
          
          syntax error, unexpected '<'
          
          
          Parse error: syntax error, unexpected '<' in /home/beaut21/public_html/manager/includes/document.parser.class.inc.php(724) : eval()'d code on line 1


            • 28042 ☆ A M B ☆
            • 24,524 Posts
            The snippet or plugin code has an extra <?php at the beginning; probably also an extra ?> at the end.
              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
              • 27330
              • 884 Posts
              Thanks Susan. I removed the tags from the plugin and the log is fine now.
              However, if I try to edit the snippet I can make changes to the code, but if I delete the <?php tag and hit Save it’s just showing up again in the snippet. huh
              does this make sense?
                • 15987
                • 786 Posts
                its ok if they are in the snippet, they are automatically removed when saved and added when editted. Having them in the plugin does cause problems though and should be removed there.
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  I’ve copy/pasted a snippet into the new snippet field, forgetting that the field comes with its own <?php and ?> tags, and thus had double tags. Doesn’t like that.
                    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
                    • 27330
                    • 884 Posts
                    Quote from: kylej at Jan 19, 2007, 07:12 AM

                    its ok if they are in the snippet, they are automatically removed when saved and added when editted. Having them in the plugin does cause problems though and should be removed there.

                    Good to know.
                    I assume this is the same for any snippet and not just for FileDownload, correct?
                      • 6726
                      • 7,075 Posts
                      Hmmm, I had dropped the ball on this.
                      In the meantime I upgraded to FileDownload 2.5 and MODx 0.9.5, but I still get the same kind of error sad (the line number changes is all undecided )

                      Definitely something is happening with my config somewhere...

                      I digged into Susan’s suggestion that line endings were screwed up (you have encoded the file with CRLF i.e windows line ending, I re-encoded into LF i.e unix line endings but no change...).

                      Any idea ?

                      I checked, re-uploaded files again and still doesn’t work...
                      Could it be a ownership problem with the files ? Some have nobody as owner, some have the user account as owner... huh


                      Quote from: davidm at Oct 30, 2006, 06:20 PM

                      I’ve recently upgraded to 2.0 (previously happy user of 1.7) and got this problem :

                      PHP error debug
                        Error: 	filename: data.db.class.inc.php, exec_fname: /home/gican/www/assets/snippets/filedownload/filedownload.class.inc.php, filepath: /home/gican/www/assets/snippets/filedownload/data.db.class.inc.php	 
                        Error type/ Nr.: 	Warning - 2	 
                        File: 	/home/gican/www/assets/snippets/filedownload/filedownload.class.inc.php	 
                        Line: 	8	 
                        Line 8 source: 	include_once "data.db.class.inc.php";


                      My config is PHP 5.1.6, MySQL 5.0.22a, Apache 1.3.34
                      And oh, I am using MODx 0.9.5 rev1785 (so used to run 0.9.5 almost forgot to mention it tongue)

                      Any idea ?
                        .: COO - Commerce Guys - Community Driven Innovation :.


                        MODx est l&#39;outil id