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
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
@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?
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.
@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.
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
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
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.
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
Quote from: Mark at Jan 09, 2006, 08:53 PMNew Feature: TV sorting
Waow, a dream come true this feature

I’ll go and toy with it right now !!!
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
Yes! Finally! I’ve been waiting for this as well. Great work Mark!