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 ??
-
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");
-
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.