SimplePortal

Support => English Support => Topic started by: Greybrow on August 30, 2013, 04:45:09 AM

Title: Standalone shows no theme
Post by: Greybrow on August 30, 2013, 04:45:09 AM
I've installed SMF 2.0.5 and SimplePortal 2.3.5 on XAMPP for testing (no other mods installed).
SMF and SimplePortal work fine when set to front page or integrated.
After setting it to standalone, portal loads with no theme and broken links. Forum works fine.

My settings:
http://127.0.0.1/smf2 -> D:\xampp\htdocs\smf2 - SMF installation
http://127.0.0.1/portal -> D:\xampp\htdocs\portal - folder with PortalStandalone.php renamed to index.php
settings in SimplePortal:
standalone url: http://127.0.0.1/portal/index.php
path set in portal/index.php (same as in Administration Center > Server Settings > Database and Paths):
Code: [Select]
$forum_dir = 'D:\xampp\htdocs\smf2';
Loading standalone portal loads the article, calendar etc. but gives this in sourcecode:
Code: [Select]
<link rel="stylesheet" type="text/css" href="http://127.0.0.1/portal/Themes/default/css/index.css?fin20" />
<script type="text/javascript" src="http://127.0.0.1/portal/Themes/default/scripts/script.js?fin20"></script>
<script type="text/javascript" src="http://127.0.0.1/portal/Themes/default/scripts/theme.js?fin20"></script>
.
.
.

<li><img src="http://127.0.0.1/portal/Themes/default/images/sp/dot3.png" alt="Dot" title="Dot" /> Users: 1</li>
<li><img src="http://127.0.0.1/portal/Themes/default/images/sp/dot4.png" alt="Dot" title="Dot" /> <a href="http://127.0.0.1/portal/index.php?action=who">Users Online</a>:</li>

Seems like somehow the path to SMF installation is replaced with standalone folder.
I've tried to move standalone folder up level and to smf subfolder but with the same results

What do I miss?
Title: Re: Standalone shows no theme
Post by: [SiNaN] on August 31, 2013, 07:34:00 AM
Welcome to SimplePortal!

It seems to me that SMF is thinking that the URL used to access the forum is broken, so it's trying to fix it. Would you try installing your forum using http://localhost/ rather than http://127.0.0.1/? I have a feeling that it'll work fine if you don't use IPs.
Title: Re: Standalone shows no theme
Post by: Greybrow on September 01, 2013, 12:01:12 PM
I've checked again and it seems that the problem is/was with PHP version 5.5 included in newest XAMPP.
Probably something with preg_replace changes, as I got this error on another computer:
Quote
/e modifier is deprecated, use preg_replace_callback instead
Falling back to version 5.4 fixed it.
Title: Re: Standalone shows no theme
Post by: [SiNaN] on September 02, 2013, 12:01:45 AM
That is interesting. That error alone shouldn't cause such an issue but I wonder if the code that verifies the theme URL is incompatible with PHP 5.5. In any case, if the issue is solved for you it's all good.
Title: Re: Standalone shows no theme
Post by: Greybrow on September 02, 2013, 03:48:18 AM
I'm not sure, but probably it was problem with XAMPP. I've reinstalled it on my other xp machine, and it works just fine.
Thank you for your help anyway :)
Title: Re: Standalone shows no theme
Post by: [SiNaN] on September 02, 2013, 04:26:43 PM
You're welcome! Glad that you could solve it in the end. :)
SimplePortal 2.3.8 © 2008-2024, SimplePortal