We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6726
    • 7,075 Posts
    I had this error after updating the NewsListing snippet from the one distributed with 0.9.1 (4.4) to 6.1.2.

    Here is the error :

    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »
     
    PHP error debug
      Error: Unknown: failed to open stream: No such file or directory	 
      Error type/ Nr.: Warning - 2	 
      File: 	/users/home/xxxxxx/public_html/fuchslock/manager/includes/document.parser.class.inc.php(691) : eval()'d code	 
      Line: 	120	 
     
    Parser timing
      MySQL: 	0.0000 s s	(0 Requests)
      PHP: 	0.0385 s s	 
      Total: 	0.0385 s s


    Snippet use :

    [!NewsListing? &tpl=`fiche` &truncText=`Voir le détail de la fiche` &emptytext=`Désolé, pas de fiche dans cette catégorie`!]


    Anyone has an idea why ?
      .: COO - Commerce Guys - Community Driven Innovation :.


      MODx est l'outil id
      • 8461
      • 205 Posts
      Thanks Zenmaster

      I thought is was that straighfroward... Thanks for taking the time to confirm and I would agree it makes sense to install as seperate snippet

        • 18397
        • 3,250 Posts
        @edge: Sorry about that external file (only in the latest release) confusing things but I had to do some "spring cleaning" on the code so that it could be ready for the next stage--- turning it into a class.

        @david: Looks like it can’t find the functions.php file. Are you sure you put it in the right place?
          • 18397
          • 3,250 Posts
          FYI: I plan on adding a check into the snippet to make sure you have the file in the right place so you don’t get that nasty php error.
            • 18397
            • 3,250 Posts
            @david: Looks like it can’t find the functions.php file. Are you sure you put it in the right place?

            Its a new addition to the snippet.
              • 6726
              • 7,075 Posts
              No you’re right I just copied paste the snippet without uploading the functions.php file where it was supposed to be... silly me, sorry !

              It now works flawlessly... seems even faster than before smiley
                .: COO - Commerce Guys - Community Driven Innovation :.


                MODx est l'outil id
                • 18397
                • 3,250 Posts
                No problem! Thats why I gotta add that check, people aren’t used to having that external file but its now necessary to keep the codebase clean.
                  • 18397
                  • 3,250 Posts
                  NewsListing Version 6.2

                  New Feature: TV sorting

                  Code is now cleaned up and makes better use of functions.

                  This version now checks to make sure you have the functions.php file in the right spot.

                  -Mark
                    • 6726
                    • 7,075 Posts
                    Quote from: Mark at Jan 09, 2006, 08:53 PM
                    New Feature: TV sorting

                    Waow, a dream come true this feature grin
                    I’ll go and toy with it right now !!!
                      .: COO - Commerce Guys - Community Driven Innovation :.


                      MODx est l'outil id
                      • 21301
                      • 93 Posts
                      Yes! Finally! I’ve been waiting for this as well. Great work Mark!