Quote from: ricksterv4n1x8 at Jan 28, 2009, 10:17 AM
When I do the snippet call I get the following error message:
« MODx Parse Error » MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error » PHP error debug
Error: Unknown(/home/myweb/www/myweb2.com/assetssnippets/flexiblesiteindex/FlexibleSiteIndex.class.php): failed to open stream: No such file or directory
I’m not a programmer but it seems there is a problem in the file directory structure above where there is a missing slash between assets and snippets. But how does one correct that?
Most likely, the solution is to simply put a slash in the associated parameter in the snippet. In your case, it’s probably the base_dir parameter. Here’s a part of the documentation (
http://wiki.modxcms.com/index.php/FlexibleSiteIndex):
base_dir
* Options: [string]
* Default Value: $modx->config[’rb_base_dir’]
* Explanation: The base directory of the assets folder
snippets_dir
* Options: [string]
* Default Value: snippets/
* Explanation: The snippets folder name: slash at end is REQUIRED; No slash at beginning
fsi_dir
* Options: [string]
* Default Value: flexiblesiteindex/
* Explanation: The flexiblesiteindex folder name: slash at end is REQUIRED; No slash at beginning