Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Mambo Bridge Support => Aiheen aloitti: hdsrob - huhtikuu 10, 2006, 08:38:48 IP

Otsikko: Index.php: Error After installing bridge
Kirjoitti: hdsrob - huhtikuu 10, 2006, 08:38:48 IP
I hate to post, but I cannot find this in the forum

Mambo 4.5.3h Stable
SMF 1.1 RC2
Bridge 1.1.3 (SMF 1.1 RC2-Mambo,Joomla)

clean install in a shared DB
Both Mambo, and SMF work(ed) before bridge install
mambo admin is fine, as is all of SMF (if I browse to folder manually)
forum is wrapped

2nd clean install with the same result

mambo   www.touchmenus.net/new (http://www.touchmenus.net/new)
smf        www.touchmenus.net/new/smf (http://www.touchmenus.net/new/smf)

After installing the bridge, the following error displays when trying to view the site

Warning: main(/SSI.php): failed to open stream: No such file or directory in C:\Inetpub\wwwroot\new\templates\waterandstone\index.php on line 25

Fatal error: main(): Failed opening required '/SSI.php' (include_path='.;c:\php4\pear') in C:\Inetpub\wwwroot\new\templates\waterandstone\index.php on line 25

Line 25 is:  require ($smf_path."/SSI.php");


Thanks in advance for any suggestion that can be provided
Otsikko: Re: Index.php: Error After installing bridge
Kirjoitti: Orstio - huhtikuu 10, 2006, 08:43:45 IP
Go to your Joomla admin panel.

Go to your Components Menu.

Go to the SMF Bridge Component.

Click on Edit Config.

Set the path to SMF.  Remember that a path is not a URL.  When the path is correct, click Save.

Even if you didn't have to change anything, Click Save.
Otsikko: Re: Index.php: Error After installing bridge
Kirjoitti: hdsrob - huhtikuu 10, 2006, 10:25:19 IP
Orstio,

Thanks for the reply

I had set it during the install, and saved.

It is currently set to "C:\Inetpub\wwwroot\new\smf"

This is the value that I coppied out of SMF.

the "create path automatically" function just clears the textbox

I Have tried forward slashes and a trailing slash

I know that this is the correct windows path, as I have root & physical access to the machine

I can also see all of the groups in the SMF Bridge Component, and I can add new groups in SMF, and they show up in Mambo

I have a 4.5.2 / 1.0.7 / 3.19a_stable install running successfully in another folder / db on the same machine.

I am a little lost at this point

Thanks

Rob
Otsikko: Re: Index.php: Error After installing bridge
Kirjoitti: Orstio - huhtikuu 10, 2006, 10:27:37 IP
Alright.  Did you add the code from the readme.html to your Mambo template?
Otsikko: Re: Index.php: Error After installing bridge
Kirjoitti: hdsrob - huhtikuu 10, 2006, 10:29:13 IP
Thats the code that is producing the error  ;)
Otsikko: Re: Index.php: Error After installing bridge
Kirjoitti: Orstio - huhtikuu 10, 2006, 10:30:16 IP
Can you post your template code here?
Otsikko: Re: Index.php: Error After installing bridge
Kirjoitti: hdsrob - huhtikuu 10, 2006, 10:35:10 IP
<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = explode( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!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>
<?php mosShowHead(); ?>
<?php
if ( $my->id ) {
   initEditor();
}
?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<link href="<?php echo $mosConfig_live_site;?>/templates/waterandstone/css/template_css.css" rel="stylesheet" type="text/css"/>

<?php 
global $sc, $context, $settings, $modSettings;

if (!defined('SMF')){
  require ("administrator/components/com_smf/config.smf.php");
  require ($smf_path."/SSI.php");
}

$sc = &$context['session_id'];
$_SESSION['USER_AGENT'] = $_SERVER['HTTP_USER_AGENT'];

mysql_select_db($mosConfig_db);

     echo '     
     <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?rc2"></script>
     <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
          var smf_theme_url = "', $settings['theme_url'], '";
          var smf_images_url = "', $settings['images_url'], '";
          var smf_scripturl = "', $scripturl, '";
          var smf_session_id = "', $context['session_id'], '";
     // ]]></script>';

     // The ?rc2 part of this link is just here to make sure browsers don't cache it wrongly.
     echo '
     <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?rc2" />
     <link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?rc2" media="print" />';


     /* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
          Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
          Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
          Standards compliance mode happens when you use xhtml... */
     if ($context['browser']['needs_size_fix'])
          echo '
     <link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';

     // Show all the relative links, such as help, search, contents, and the like.
     echo '
     <link rel="help" href="', $scripturl, '?action=help" target="_blank" />
     <link rel="search" href="' . $scripturl . '?action=search" />
     <link rel="contents" href="', $scripturl, '" />';

     // If RSS feeds are enabled, advertise the presence of one.
     if (!empty($modSettings['xmlnews_enable']))
          echo '
     <link rel="alternate" type="application/rss+xml" title="', $context['forum_name'], ' - RSS" href="', $scripturl, '?type=rss;action=.xml" />';

     // If we're viewing a topic, these should be the previous and next topics, respectively.
     if (!empty($context['current_topic']))
          echo '
     <link rel="prev" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=prev" />
     <link rel="next" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=next" />';

     // If we're in a board, or a topic for that matter, the index will be the board's index.
     if (!empty($context['current_board']))
          echo '
     <link rel="index" href="' . $scripturl . '?board=' . $context['current_board'] . '.0" />';

     // We'll have to use the cookie to remember the header...
     if ($context['user']['is_guest'])
          $options['collapse_header'] = !empty($_COOKIE['upshrink']);

     // Output any remaining HTML headers. (from mods, maybe?)
     echo $context['html_headers'], '

     <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
          var current_header = ', empty($options['collapse_header']) ? 'false' : 'true', ';

          function shrinkHeader(mode)
          {';

     // Guests don't have theme options!!
     if ($context['user']['is_guest'])
          echo '
               document.cookie = "upshrink=" + (mode ? 1 : 0);';
     else
          echo '
               smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "', $context['session_id'], '");';

     echo '
               document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

               document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
               document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

               current_header = mode;
          }
     // ]]></script>';

     // the routine for the info center upshrink
     echo '
          <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
               var current_header_ic = ', empty($options['collapse_header_ic']) ? 'false' : 'true', ';

               function shrinkHeaderIC(mode)
               {';

     if ($context['user']['is_guest'])
          echo '
                    document.cookie = "upshrinkIC=" + (mode ? 1 : 0);';
     else
          echo '
                    smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "', $context['session_id'], '");';

     echo '
                    document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

                    document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

                    current_header_ic = mode;
               }
          // ]]></script>
';

?>

</head>
<body class="waterbody">

<div align="center">
<div id="container">
   <div id="containerbg">
      <div id="outerleft">
         <!-- start logo -->
         <div id="logo">
           <a href="index.php"><img src="<?php echo $mosConfig_live_site; ?>/templates/waterandstone/images/logo.gif" alt="logo image" border="0" align="top" /></a>
         </div>
         <!-- end logo -->
         <!-- start top menu -->
         <div id="topmenu">
         <?php mosLoadModules('top',-1); ?>
         </div>
         <!-- end top menu.  -->
         <!-- start image header -->
         <div id="imgheader">
         <img src="<?php echo $mosConfig_live_site; ?>/templates/waterandstone/images/img_header.jpg" alt="header image" />
         </div>
         <!-- end image header -->
         <div id="container_inner">
            <!-- start left column. -->
            <div id="leftcol">
            <?php mosLoadModules('left'); ?>
            </div>
            <div id="leftcolmenu">
            <?php mosLoadModules('user1'); ?>
            </div>
            <!-- end left column. -->
            <!-- start content top wrapper -->
            <?php
            if (mosCountModules('user2') >= 1 OR mosCountModules('user3') >= 1 ) {
            ?>
            <div id="content_top_wrapper">
               <!-- start content top 1.  -->
               <div id="content_top1">
               <?php mosLoadModules('user2'); ?>
               </div>
               <!-- end content top 1 -->
               <!-- start content top 2.  -->
               <div id="content_top2">
               <?php mosLoadModules('user3'); ?>
               </div>
               <!-- end content top 2 -->
            </div>
            <?php
            }
            ?>
            <!-- end content top wrapper -->
            <!-- start main body -->
            <div id="content_main">
               <?php mosPathWay(); ?>
               <table width="519" border="0" cellspacing="0" cellpadding="0">
                 <tr>
                  <td>
                  <?php mosMainBody(); ?>
                  </td>
                 </tr>
               </table>
            </div>
            <!-- end main body -->
         </div>
      </div>
      <div id="outerright">
         <!-- start right top header.  -->
         <div id="rightcol_top">
         <?php mosLoadModules('header'); ?>
         </div>
         <!-- end right top header.-->
         <!-- start right column. -->
         <div id="rightcol">
         <?php mosLoadModules('newsflash'); ?>
         <?php mosLoadModules('right'); ?>
         <?php mosLoadModules('user4'); ?>
         </div>
         <!-- end right column. -->
      </div>
      
      <div class="clear">
      </div>
      <?php
      if (mosCountModules('banner') >= 1) {
      ?>
         <!-- start banner.  -->
         <div id="banner">
         <?php mosLoadModules('banner'); ?>
         </div>
         <!-- end banner. -->
      <?php
      }
      ?>
      
      <div id="blackline">
      </div>
      <div class="clear">
      </div>
      <div id="bottompadding"></div>
   </div>
   <!-- copyright notice -->
   <div id="copyright">
   <?php include_once( $GLOBALS['mosConfig_absolute_path'] . '/includes/footer.php' ); ?>
   </div>

</div>
</div>

<?php mosLoadModules('debug', -1);?>

<?php mysql_select_db($GLOBALS['db_name']); ?>

</body>
</html>
Otsikko: Re: Index.php: Error After installing bridge
Kirjoitti: Orstio - huhtikuu 10, 2006, 10:37:46 IP
Right.  That's the header code from 3.19a.

Please read the readme.html that comes with the 1.1.3 bridge, and place the code from that readme.html into your template where you have placed the code from the readme from 3.19a.
Otsikko: Re: Index.php: Error After installing bridge
Kirjoitti: hdsrob - huhtikuu 10, 2006, 10:51:32 IP
That fixed it!

Thank you so much for the help

Just an F.Y.I. I took that template from the FAQ at:

http://www.simplemachines.org/community/index.php?topic=63187.msg465834#msg465834 (http://www.simplemachines.org/community/index.php?topic=63187.msg465834#msg465834)

to replace the one from the readme. It should probably be labled as 3.19

Once agaian thanks for the help and the great software.