collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 431
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Installation errors? Mod incompatibilities? Upgrade problems? Make your way over to the Install and Upgrade Support board for all your solutions!

Author Topic: Standalone option - Fatal error  (Read 3837 times)

0 Members and 1 Guest are viewing this topic.

Offline Costa

  • Full Member
  • ***
  • Posts: 246
  • Gender: Male
  • Don't feed the trolls...
Standalone option - Fatal error
« on: February 27, 2013, 07:12:20 PM »
Hi folks

I'm trying the Standalone feaure, but it seems that doesn't work for me.

I have my forum in ./forum/ folder. The standalone file is in root dir. The option $forum_dir is correct(fyi $forum_dir '/home/costaweb/public_html/forum';)

Although is giving me a fatal error.
Code: [Select]
[28-Feb-2013 00:07:01 Europe/Lisbon] PHP Warning:  require_once(SSI.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/costaweb/public_html/forum/Themes/Glacier_dark/Toppanel.template.php on line 153
[28-Feb-2013 00:07:01 Europe/Lisbon] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'SSI.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/costaweb/public_html/forum/Themes/Glacier_dark/Toppanel.template.php on line 153

It gives me a page with the theme bg. above is the source code fo that page.
Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

    <link rel="stylesheet" type="text/css" href="http://www.costaweb.net/forum/Themes/Glacier_dark/css/glacier.css" />
<link rel="stylesheet" type="text/css" href="http://www.costaweb.net/forum/Themes/Glacier_dark/css/index.css?fin20" />
    <script src="http://www.costaweb.net/forum/Themes/Glacier_dark/scripts/jscroller-0.4.js" type="text/javascript"></script>
    <script src="http://www.costaweb.net/forum/Themes/Glacier_dark/scripts/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="http://www.costaweb.net/forum/Themes/Glacier_dark/scripts/slide.js" type="text/javascript"></script>
<script type="text/javascript" src="http://www.costaweb.net/forum/Themes/default/scripts/script.js?fin20"></script>
<script type="text/javascript" src="http://www.costaweb.net/forum/Themes/Glacier_dark/scripts/theme.js?fin20"></script>
<script type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "http://www.costaweb.net/forum/Themes/Glacier_dark";
var smf_default_theme_url = "http://www.costaweb.net/forum/Themes/default";
var smf_images_url = "http://www.costaweb.net/forum/Themes/Glacier_dark/images";
var smf_scripturl = "http://www.costaweb.net/forum/index.php";
var smf_iso_case_folding = false;
var smf_charset = "ISO-8859-1";
var ajax_notification_text = "A carregar...";
var ajax_notification_cancel_text = "Cancelar";
// ]]></script>
    <script type="text/javascript"><!-- // --><![CDATA[
 $(document).ready(function(){
 // Add Scroller Object
  $jScroller.add("#scroller_container","#scroller","up",3, true);

  // Start Autoscroller
  $jScroller.start();
 });
// ]]></script>
<script type="text/javascript"><!-- // --><![CDATA[
                    function show(layerid)
                      {
                       if (document.getElementById)  // IE and NS6
                          {
                           elm=document.getElementById(layerid)
                           if(elm.style.visibility=="visible")
                             {
                              elm.style.visibility="hidden"
                             }
                           else
                            {
                             elm.style.visibility="visible"
                            }
                          }
                       if(document.layers)
                         {
                          obj=eval("document."+layerid)
                          if(obj.visibility=="show")
                            {
                              obj.visibility="hide"
                            }
                          else
                            {
                             obj.visibility="show"
                            }
                          }
                   }                   
                    // ]]>
                    </script>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="description" content="Costa Web" />
<title>Costa Web</title>
<link rel="help" href="http://www.costaweb.net/forum/index.php?action=help" />
<link rel="search" href="http://www.costaweb.net/forum/index.php?action=search" />
<link rel="contents" href="http://www.costaweb.net/forum/index.php" />
<link rel="alternate" type="application/rss+xml" title="Costa Web - RSS" href="http://www.costaweb.net/forum/index.php?type=rss;action=.xml" />
<link rel="stylesheet" type="text/css" id="portal_css" href="http://www.costaweb.net/forum/Themes/default/css/portal.css" />
<script type="text/javascript" src="http://www.costaweb.net/forum/Themes/default/scripts/portal.js?235"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var sp_images_url = "http://www.costaweb.net/forum/Themes/Glacier_dark/images/sp";
function sp_collapseBlock(id)
{
mode = document.getElementById("sp_block_" + id).style.display == "" ? 0 : 1;
smf_setThemeOption("sp_block_" + id, mode ? 0 : 1, null, "5d5b7a6b8ca110b0d69df91872cbbe4a", "d5a4a6ce75f2");
document.getElementById("sp_collapse_" + id).src = smf_images_url + (mode ? "/collapse.gif" : "/expand.gif");
document.getElementById("sp_block_" + id).style.display = mode ? "" : "none";
}
window.addEventListener("load", sp_image_resize, false);
// ]]></script>
</head>
<body><a name="lgf_go_top"></a> <!-- Panel -->
<div id="toppanel">
<div id="panel">
<div class="content clearfix"><table id="top_table" width="100%">
<tr>
<td class="fields guest"><!-- Recent Topics-->
    <div class="panel p_left">
<h2 class="title avatar_img">Novas mensagens</h2>
    <div id="scroller_container">
        <div id="scroller"><table class="tablewidth">
        <tbody>
<tr>
<td valign="top" colspan="2"><a style="font-weight: bold;" title="Discussão geral" href="http://www.costaweb.net/forum/index.php?topic=52.msg70;topicseen#new">O que é o FluxBB?</a><br />
<small>por&nbsp;<a style="color: #FF0000;" href="http://www.costaweb.net/forum/index.php?action=profile;u=1" style="color: #FF0000;">Costa</a>&nbsp;|&nbsp;27 Fev 13</small>
</td>
</tr>
        <tr>
        <td valign="top"><div class="avatar_recent"><img src="http://www.costaweb.net/forum/img/av/avatar_1_1361400988.gif" alt="" width="40" height="40" /> </div> <div class="preview">  O FluxBB é um sistema de fóruns cuja maior preocupação é a rapidez. É um software extremamente rápido. Claro que para isto acontecer o software não tem metade das opções que o SMF ou o phpBB têm.Mas cumpre o seu propósito. É rápido. Esteticamente não...</div></td>
</tr>
        </tbody>
</table>
<hr /><table class="tablewidth">
        <tbody>
<tr>
<td valign="top" colspan="2"><a style="font-weight: bold;" title="Ajuda e suporte" href="http://www.costaweb.net/forum/index.php?topic=51.msg69;topicseen#new">Ajude a ter ajuda</a><br />
<small>por&nbsp;<a style="color: #FF0000;" href="http://www.costaweb.net/forum/index.php?action=profile;u=1" style="color: #FF0000;">Costa</a>&nbsp;|&nbsp;27 Fev 13</small>
</td>
</tr>
        <tr>
        <td valign="top"><div class="avatar_recent"><img src="http://www.costaweb.net/forum/img/av/avatar_1_1361400988.gif" alt="" width="40" height="40" /> </div> <div class="preview">  Ao pedirem ajuda, sigam esta regra de postagem. É bem mais simples e rápido, para quem ajuda, saber todas as informações sobre o sistema que usam.Versão do SMF:Tema:Mods instalados:URL do fórum:...</div></td>
</tr>
        </tbody>
</table>
<hr /><table class="tablewidth">
        <tbody>
<tr>
<td valign="top" colspan="2"><a style="font-weight: bold;" title="Gráficos e Templates" href="http://www.costaweb.net/forum/index.php?topic=50.msg68;topicseen#new">Re: Glacier Light</a><br />
<small>por&nbsp;<a style="color: #FF0000;" href="http://www.costaweb.net/forum/index.php?action=profile;u=1" style="color: #FF0000;">Costa</a>&nbsp;|&nbsp;27 Fev 13</small>
</td>
</tr>
        <tr>
        <td valign="top"><div class="avatar_recent"><img src="http://www.costaweb.net/forum/img/av/avatar_1_1361400988.gif" alt="" width="40" height="40" /> </div> <div class="preview">  Basta ires testando até chegares a um valor que te agrade. Aqui tens uma ajuda nas cores....</div></td>
</tr>
        </tbody>
</table>
<hr /><table class="tablewidth">
        <tbody>
<tr>
<td valign="top" colspan="2"><a style="font-weight: bold;" title="Gráficos e Templates" href="http://www.costaweb.net/forum/index.php?topic=49.msg62;topicseen#new">Re: Temas diversos</a><br />
<small>por&nbsp;<a style="color: #FF0000;" href="http://www.costaweb.net/forum/index.php?action=profile;u=1" style="color: #FF0000;">Costa</a>&nbsp;|&nbsp;27 Fev 13</small>
</td>
</tr>
        <tr>
        <td valign="top"><div class="avatar_recent"><img src="http://www.costaweb.net/forum/img/av/avatar_1_1361400988.gif" alt="" width="40" height="40" /> </div> <div class="preview">  Com alguns tweaks alguns encaixam na perfeição no seu fórum :)...</div></td>
</tr>
        </tbody>
</table>
<hr /><table class="tablewidth">
        <tbody>
<tr>
<td valign="top" colspan="2"><a style="font-weight: bold;" title="Gráficos e Templates" href="http://www.costaweb.net/forum/index.php?topic=48.msg58;topicseen#new">Re: Este Tema</a><br />
<small>por&nbsp;<a style="color: ;" href="http://www.costaweb.net/forum/index.php?action=profile;u=4" style="color: ;">filipe</a>&nbsp;|&nbsp;26 Fev 13</small>
</td>
</tr>
        <tr>
        <td valign="top"><div class="avatar_recent"> <img src="http://www.costaweb.net/forum/Themes/Glacier_dark/images/no_avatar.png" alt="default avatar" width="40" height="40" /> </div> <div class="preview">  Exactamente o que te disse no post anterior. Essas mensagens ficam no painel de login, quando o expandes, do lado esquerdo.Ok Costa compreendi..........</div></td>
</tr>
        </tbody>
</table>
<hr /></div></div> </div>

<!-- Recent Topics End--></td>
<td class="fields">
    <!-- User Info -->
    <div class="panel p_left">
    <h2 class="title avatar_img">Informação do utilizador</h2>
                <div class="welcome center">Bem-vindo, <span>Costa</span></div>                 
                    <p class="avatar"><img src="http://www.costaweb.net/forum/img/av/avatar_1_1361400988.gif" width="50" height="50" alt=""/></p>
             
<ul class="lgf_message_info">
                <li><strong>Total de mensagens</strong>: <a href="http://www.costaweb.net/forum/index.php?action=pm">3</a></li>
                <li><strong>Mensagens por ler</strong>: <a href="http://www.costaweb.net/forum/index.php?action=pm">0</a></li>
                <li><a href="http://www.costaweb.net/forum/index.php?action=unread">Tópicos recentes não lidos</a></li>
<li><a href="http://www.costaweb.net/forum/index.php?action=unreadreplies">Tópicos actualizados</a></li>
                <li><a href="http://www.costaweb.net/forum/index.php?action=profile;area=showposts;">Minhas mensagens</a></li>
                <li><a href="http://www.costaweb.net/forum/index.php?action=profile">Perfil</a></li>
               
            </ul>
            </div>
            </td>
<td class="fields"><!-- Stats-->
<div class="panel p_left">
<h2 class="title avatar_img">Estatísticas</h2><ul>
                <li><a href="http://www.costaweb.net/forum/index.php?action=mlist"><b>6</b></a> Membros</li>
                <li><b>62</b> Mensagens</li>
                <li><b>46</b> Tópicos</li>
                <li><a href="http://www.costaweb.net/forum/index.php?action=stats">[Mais estatísticas]</a></li>
</ul>
            <div class="sp_center"><strong>Latest Member</strong></div>
            <hr />
            <ul>
                <li><b><a href="http://www.costaweb.net/forum/index.php?action=profile;u=6" style="color: ;">alexandre.freires</a></b></li>
</ul>
            <br /></div>
<!-- Stats End--></td>
<td class="fields"><!-- Who is Online-->
<div class="panel p_left online_box">
<h2 class="title avatar_img">Online</h2><br />
<b>Warning</b>:  require_once(SSI.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in <b>/home/costaweb/public_html/forum/Themes/Glacier_dark/Toppanel.template.php</b> on line <b>153</b><br />
<br />
<b>Fatal error</b>:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'SSI.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in <b>/home/costaweb/public_html/forum/Themes/Glacier_dark/Toppanel.template.php</b> on line <b>153</b><br />

Any tip on how to solve this?

SMF 2.0.4
SP 2.3.5

Thanks in advance.

« Last Edit: February 27, 2013, 07:18:54 PM by Costa »
Hugo "Costa" FernandesCrudelius est quam semper mortem timere

Offline ccbtimewiz

  • Hero Member
  • *****
  • Posts: 2185
  • Gender: Male
  • $("div.content:dd").hide();
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
  • EhPortal Version: None
Re: Standalone option - Fatal error
« Reply #1 on: February 27, 2013, 10:09:54 PM »
Long time no see, Costa.

Try using the default theme for now, tell me if you get similar results because an error that is being displayed in the container means the files were found... just some things are missing.

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Standalone option - Fatal error
« Reply #2 on: February 27, 2013, 10:30:17 PM »
Costa,

  Imo possible directory/file ownership and/or permissions issue.
You use Apache so the ownership should be ie. www-data:costaweb and permission for the file ie. 0755
This will give apache & your user id (costaweb) ownership.

0755 permission ->
owner: read, write and execute permissions
group: read and execute permissions
others: read and execute permissions

or actually if the ownership is set as noted above, you can just give the owner(s) the appropriate permission..

0644 permission ->
owner: read and write permissions
group: only read permissions
others: only read permissions

Note: Do not adjust any files to the 0777 file permission value no matter what you read at the SMF site as this will give anyone write access to that file/directory. If 0777 is necessary in your testing then the ownership of the file is not set correctly.
 
« Last Edit: February 27, 2013, 10:52:16 PM by Underdog »

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Standalone option - Fatal error
« Reply #3 on: February 28, 2013, 09:15:47 AM »
Costa,

  I figure something else may be relevant to mention here due to those specific errors.
There is a setting in the php.ini file called include_path that allows php's various inclusive file commands of require, include, fopen(), file(), readfile() and file_get_contents() to only be able to use certain folder paths. Since you are attempting to use the file in a different directory than your forum I figure this may be the issue.
Here is the reference:  http://www.php.net/manual/en/ini.core.php#ini.include-path

Make sure that php.ini setting includes the necessary directory path where your standalone file resides.
If you do not have access to your php.ini file then you will have to ask your host to configure it for you.
Multiple directories for that setting using a Unix based OS are separated by a colon.
Remember that the ownership & permission must also be set properly for that directory (recursive to allow access to any existing files in that directory).
« Last Edit: February 28, 2013, 09:20:42 AM by Underdog »

Offline Costa

  • Full Member
  • ***
  • Posts: 246
  • Gender: Male
  • Don't feed the trolls...
Re: Standalone option - Fatal error
« Reply #4 on: February 28, 2013, 09:51:11 AM »
@Chris
Long time indeed. Feel free to add me on Skype if you want: hcosta1985

With default theme, the portal work without any problem.

@Underdog
The user has 777 permissions. And it's the owner.
Hugo "Costa" FernandesCrudelius est quam semper mortem timere

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Standalone option - Fatal error
« Reply #5 on: February 28, 2013, 11:04:49 AM »
@Chris
Long time indeed. Feel free to add me on Skype if you want: hcosta1985

With default theme, the portal work without any problem.

@Underdog
The user has 777 permissions. And it's the owner.

Costa,
  You mean the file has 0777 permission.
  If the owner is only the user & not both apache:user (www-data:costaweb) this may explain why apache needs 0777 to access it. 0777 is a flat out security risk & you can read that info on reputable sites such as ie. Ubuntu & CentOS sites. Imo I disagree with the documentation on the SMF site regarding that subject since the actual OS sites say otherwise & the people that write the Unix software would know better than the staff at SMF + I have some experience on Unix structure.

 Anyhow since it works in your default theme then it sounds like Bullet may know your solution so I will await the response out of curiosity & it will help others with similar issues. The only thing I can think of atm is the theme's directory path setting in Admin -> Themes and Layout -> Theme Settings is possibly incorrect or has a slash at the end when it should not.
 
« Last Edit: February 28, 2013, 12:44:29 PM by Underdog »