Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » installed forum software, rewrite rules not happy

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

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

Page: 1
Go to End
Author Topic: 2056 Views
  • a-tech
    Avatar
    Community Member
    39 Posts

    installed forum software, rewrite rules not happy Link to this post

    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

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: installed forum software, rewrite rules not happy Link to this post

    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'
    );

    ?>

  • a-tech
    Avatar
    Community Member
    39 Posts

    Re: installed forum software, rewrite rules not happy Link to this post

    great, works fine - ta.

    2056 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.