17452 Posts in 4473 Topics by 1971 members
|Go to End|
19 March 2007 at 2:55pm
hey so i installed phpBB in /forum/ and its now causing issues with silverstripe due to the rewrite rules.
any idea how to fix this?
Warning: include(./../common.php) [function.include]: failed to open stream: No such file or directory in /usr/home/user/domains/xxx.com/public_html/forum/adm/swatch.php on line 17
Warning: include() [function.include]: Failed opening './../common.php' for inclusion (include_path='.:/usr/local/lib/php') in /usr/home/user/domains/xxx.com/public_html/forum/adm/swatch.php on line 17
Fatal error: Call to a member function session_begin() on a non-object in /usr/home/user/domains/xxx.com/public_html/forum/adm/swatch.php on line 20
19 March 2007 at 3:05pm
What's happening is that all of the PHP files inside the forum folder are being included by the manifest builder when you're visiting your SilverStripe site.
You need to tell SilverStripe to ignore the /forum/ folder.
Make a PHP file called mysite/_exclude.php or (project)/_exclude.php if you don't have a folder called mysite.
Populate it with content something like this. You will need to list all of the SilverStripe modules that you want the system to look into.
* Exclude these modules from the manifest
ManifestBuilder::$restrict_to_modules = array(
19 March 2007 at 3:08pm
great, works fine - ta.
|Go to Top|