SimplePortal

Development => Bugs => Fixed or Bogus Bugs => Topic started by: JBlaze on June 25, 2009, 08:46:14 PM

Title: Possible Bug - SPStandalone.php
Post by: JBlaze on June 25, 2009, 08:46:14 PM
The other day, I was fiddling around with Standalone Mode, and I couldn't get it to work. I tried all angles, still no dice...

So here's what I did.

ETA: Using SP 2.2.2 and SMF 2.0 RC1-1

Forum located at http://dev.smfchat.com/forum (no longer there, was for testing purposes...)

Placed SPStandalone.php in http://dev.smfchat.com/SPStandalone.php

Renamed SPStandalone.php to index.php

Edited file like so:
Code: (find) [Select]
// Should be the full path!
$forum_dir = 'full/path/to/forum';
Code: (replace) [Select]
// Should be the full path!
$forum_dir = '/home/****/public_html/smfchat/dev/forum';

Left all this intact:
Code: [Select]
// Yeah, I'm amazing! :P
$forum_version = 'SMF';

// Call the SSI magic.
require_once($forum_dir . '/SSI.php');

// Re-initialize SP.
sportal_init(true);

// Get the page ready.
sportal();

// Here we go!
obExit(true);

Now, in AdminCP, under SimplePortal, I set SP to Standalone. Also set the full URL to SPStandalone.php (index.php) which was http://dev.smfchat.com/index.php

I also tried using the path to SPStandalone.php (index.php) which was /home/****/public_html/smfchat/dev/index.php

Mind you, I spent about an hour on this, trying all possible variations to try and get it to work. No dice.

The result I always got was just a blank index.php

If you require more info, such as server specs, etc, I will be more than happy to provide them.

(This post was requested by Eliana, concluding the chat in IRC.)

Regards,
JB
Title: Re: Possible Bug - SPStandalone.php
Post by: [SiNaN] on June 26, 2009, 01:33:36 AM
What do you mean by blank index.php? A white page or SMF layout without blocks?

See if this works:

Code: (Find) [Select]
$forum_dir = '/home/****/public_html/smfchat/dev/forum';
Code: (Replace) [Select]
$forum_dir = dirname(__FILE__) . '/forum';
Standalone URL should be: http://dev.smfchat.com/index.php
Title: Re: Possible Bug - SPStandalone.php
Post by: JBlaze on June 26, 2009, 01:37:03 AM
Yeah, it was just a blank white page. Nothing to it.

I'll try that now.
Title: Re: Possible Bug - SPStandalone.php
Post by: JBlaze on June 26, 2009, 01:56:59 AM
Nope. Still getting a blank white page.

Forum Directory: http://dev.smfchat.com/test/forum
Standalone Directory: http://dev.smfchat.com/test/index.php

Code: (index.php) [Select]
<?php
/**********************************************************************************
* SPStandalone.php                                                                *
***********************************************************************************
* SimplePortal                                                                    *
* SMF Modification Project Founded by [SiNaN] (sinan@simplemachines.org)          *
* =============================================================================== *
* Software Version:           SimplePortal 2.2.2                                  *
* Software by:                SimplePortal Team (http://www.simpleportal.net)     *
* Copyright 2008-2009 by:     SimplePortal Team (http://www.simpleportal.net)     *
* Support, News, Updates at:  http://www.simpleportal.net                         *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/

/*

This file here, unbelievably, has your portal within.

In order to use SimplePortal in standalone mode:
+ Go to "SPortal Admin" >> "Configuration" >> "General Settings"
+ Select "Standalone" mode as "Portal Mode"
+ Set "Standalone URL" as the full url of this file.
+ Edit path to the forum ($forum_dir) in this file.

See? It's just magic!

*/

// Should be the full path!
$forum_dir dirname(__FILE__) . '/forum';

// Yeah, I'm amazing! :P
$forum_version 'SMF';

// Call the SSI magic.
require_once($forum_dir '/SSI.php');

// Re-initialize SP.
sportal_init(true);

// Get the page ready.
sportal();

// Here we go!
obExit(true);

?>

SP Settings:

Portal Mode: Standalone
Standalone URL: http://dev.smfchat.com/test/index.php
Title: Re: Possible Bug - SPStandalone.php
Post by: [SiNaN] on June 26, 2009, 02:03:42 AM
Could you provide me a temporary FTP access?
Title: Re: Possible Bug - SPStandalone.php
Post by: JBlaze on June 26, 2009, 02:06:43 AM
Could you provide me a temporary FTP access?

Sending PM now
Title: Re: Possible Bug - SPStandalone.php
Post by: [SiNaN] on June 26, 2009, 02:30:24 AM
Fixed. The issue was probably $forum_dir was not set correctly, resulting in SSI.php not to be included.

You can check the modified file and remove the FTP account too.
Title: Re: Possible Bug - SPStandalone.php
Post by: JBlaze on June 26, 2009, 02:32:18 AM
Fixed. The issue was probably $forum_dir was not set correctly, resulting in SSI.php not to be included.

You can check the modified file and remove the FTP account too.

Awesome :)

Thanks [SiNaN]
SimplePortal 2.3.8 © 2008-2024, SimplePortal