We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26683
    • 3 Posts
    when i start the snippet after saving - following error comes :

    Warning: Unknown(assets/snippets/newsparserx/newsparserx.inc.php): failed to open stream: No such file or directory in /var/www/web432/html/osmo/manager/includes/document.parser.class.inc.php(691) : eval()’d code on line 72

    Warning: (null)(): Failed opening ’assets/snippets/newsparserx/newsparserx.inc.php’ for inclusion (include_path=’/var/www/web432/html/osmo/manager/includes/’) in /var/www/web432/html/osmo/manager/includes/document.parser.class.inc.php(691) : eval()’d code on line 72

    Fatal error: Cannot instantiate non-existent class: rss_feed in /var/www/web432/html/osmo/manager/includes/document.parser.class.inc.php(691) : eval()’d code on line 74

    Any thoughts on how to clean this ??

      • 22303 MODX Staff
      • 10,725 Posts
      Make sure you have the file ’assets/snippets/newsparserx/newsparserx.inc.php’ in the proper location and it’s included properly in your snippet like this:

      include_once ("{$modx->config[’base_path’}assets/snippets/newsparserx/newsparserx.inc.php");
        • 26683
        • 3 Posts
        Quote from: OpenGeek at Mar 24, 2006, 11:29 AM

        Make sure you have the file ’assets/snippets/newsparserx/newsparserx.inc.php’ in the proper location and it’s included properly in your snippet like this:

        include_once ("{$modx->config[’base_path’}assets/snippets/newsparserx/newsparserx.inc.php");

        yep sure!
        i use the original snippet http://modxcms.com/forums/index.php/topic,2366.html

        like this include: if (!class_exists("RSS_feed")) { include "assets/snippets/newsparserx/newsparserx.inc.php"; }

        sorry! more Infos: when i use this call: [[NewsParserX?url=http://www.standaard.be/rss.aspx|xq|section|xe|nieuws&limit=6ℑ=true&descr=true]]

        any feeds comes

        with this call: $snippetOutput .= $modx->runSnippet(’NewsParserX’,array(’url’=>’http://domain.tld/feed_url’));
        error comes

        apart from this, when i start the snippet after saving - long error comes - like first post


        <b>+++ strangely runs all calls [[NewsParserX?url=http://www.xxxx.xxx/rss.aspx]] clean? +++</b>

        just why rss.aspx ??
          • 22303 MODX Staff
          • 10,725 Posts
          Hmmm, this sounds like it might be a bug related to runSnippet() actually -- and it might even be related to the blank page problem that we are calling a caching error. Very interesting. Thanks for the additional info; greatly appreciated. I’ll post back when I find the issue.
            • 26683
            • 3 Posts
            Quote from: OpenGeek at Mar 24, 2006, 12:25 PM

            Hmmm, this sounds like it might be a bug related to runSnippet() actually -- and it might even be related to the blank page problem that we are calling a caching error. Very interesting. Thanks for the additional info; greatly appreciated. I’ll post back when I find the issue.

            Thank you for your efforts! kiss