Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

installed forum software, rewrite rules not happy


Go to End


3 Posts   2765 Views

Avatar
a-tech

Community Member, 39 Posts

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

Avatar
Sam

Administrator, 690 Posts

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.

<?php
/**
* Exclude these modules from the manifest
*/
ManifestBuilder::$restrict_to_modules = array(
'cms',
'jsparty',
'mysite',
'sapphire'
);

?>

Avatar
a-tech

Community Member, 39 Posts

19 March 2007 at 3:08pm

great, works fine - ta.