SimplePortal

Support => English Support => Topic started by: OzExcalibur on June 21, 2009, 10:23:58 PM

Title: Some errors (Standalone)
Post by: OzExcalibur on June 21, 2009, 10:23:58 PM
Hi there, first of all thanks for this great mod  :D

I am trying to set the portal as the front page to my website. i.e. root/index.php

I have renamed SPStandalone.php to index.php and uploaded it to my root directory.

I have edited the file;

// Should be the full path!
$forum_dir = 'http://www.ptiaccess.net/forum';

In the Portal Manager I have set the portal to Standalone and the base URL as http://www.ptiaccess.net/index.php

It was a package manager install but I checked SSI.php manually and the edits were made by the installer.

Now when I try and visit the home page I get the following errors;

Warning: require_once() [function.require-once]: URL file-access is disabled in the server configuration in /mounted-storage/home119b/sub002/sc66939-IKTW/www/index.php on line 45

Warning: require_once(http://www.ptiaccess.net/forum/SSI.php) [function.require-once]: failed to open stream: no suitable wrapper could be found in /mounted-storage/home119b/sub002/sc66939-IKTW/www/index.php on line 45

Fatal error: require_once() [function.require]: Failed opening required 'http://www.ptiaccess.net/forum/SSI.php' (include_path='.:/usr/share/php5/') in /mounted-storage/home119b/sub002/sc66939-IKTW/www/index.php on line 45

My SMF version is 2.0 RC1-1
My SP version is 2.2.2
Forum URL http://www.ptiaccess.net/forum/index.php

The portal works as expected when set to Front Page mode

The first error is gone when I edit SPStandalone.php to /mounted-storage/home119b/sub002/sc66939-IKTW/www instead of the URL so I am assuming this is a server config problem but what about the other 2 errors?

Please don't tell me I have to resort to pulling it onto the home page in an iframe.
Title: Re: Some errors (Standalone)
Post by: Nathaniel on June 22, 2009, 02:06:39 AM
Your issue is with this:
Code: [Select]
// Should be the full path!
$forum_dir = 'http://www.ptiaccess.net/forum';

It needs to be the 'path' not the 'web address'. Your path will be something like '/home/user/forum'. If you are unsure then navigate to your forums 'settings.php' file and have a look at the '$boarddir' value, that is your forums path.

Edit: '/mounted-storage/home119b/sub002/sc66939-IKTW/www/forum' should work. ;)
Title: Re: Some errors (Standalone)
Post by: OzExcalibur on June 22, 2009, 02:44:37 AM
Quote
Edit: '/mounted-storage/home119b/sub002/sc66939-IKTW/www/forum' should work.

ah so I was just missing the /forum on the end. No worries, all fixed and sorted.

Thank you for the fix and the quick response.
SimplePortal 2.3.8 © 2008-2024, SimplePortal