Error - bridge not working

Started by downatone, December 01, 2005, 03:53:59 PM

Previous topic - Next topic

downatone

I'm getting the following error when trying to view the forum within joomla:

QuoteWarning: main(): open_basedir restriction in effect. File(/SSI.php) is not within the allowed path(s): (/home/hdowna28:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/hdowna28/public_html/components/com_smf/smf.php on line 15

Warning: main(/SSI.php): failed to open stream: Operation not permitted in /home/hdowna28/public_html/components/com_smf/smf.php on line 15

Fatal error: main(): Failed opening required '/SSI.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hdowna28/public_html/components/com_smf/smf.php on line 15

jorgen

This error is described in the readme-file that comes with the bridge.

The cause is that you have not added the required code from step 4 into your joomla template.

Orstio

QuoteWarning: main(): open_basedir restriction in effect. File(/SSI.php) is not within the allowed path(s):

You did not configure your component.

Go to your Joomla admin panel.  Go to the Components Menu.  Find the SMF bridge component, and click on Edit Config.

Put the absolute path in the text box that asks for it.  Make sure to click Save when you are finished.

downatone

Ok, I had never seen those instrucions; the readme I saw was as follows:

========================================================
PLEASE READ FIRST
========================================================

THIS IS JOOMLA-SMF FORUM 1.0.1B (AKA MAMBO-SMF FORUM 1.3.3)

========================================================
COMPATIBILITY:
========================================================
1. Joomla 1.0.x
2. Mambo 4.5.2.x
3. SMF 1.1 RC1


========================================================
INSTALLATION INSTRUCTIONS:
========================================================

1. Install Joomla-SMF Forum component.
2. Configure the component. All Installation Checklist
   items must be marked "installed" and "done".

NOTE: Before upgrading SMF or installing SMF mod,
      un-patch first the SMF files! Please be sure that
      the upgrade will work on the current version of
      this component.


========================================================
UPGRADE INSTRUCTIONS:
========================================================

1. Uninstall the previous version of the component,
   recent topics modules, and optional login module.
2. Uninstall the SMF Mod from SMF Package Manager.
   (for Mambo-SMF Forum users)
3. Install the new version.

NOTE: Other modules might not work with this version.
      For now, recent topics and optional login module
      are modified to comply with the new version.
      We will modify the other modules to make it work
      for this version.


========================================================
If you like this component, a little donation will help
for the improvement and continuous development.
Please visit JoomlaHacks.com to donate or
send it to [email protected] via Paypal.

Thanks.
Cowboy
========================================================

downatone

Might be better to add the following to that readme:

    *   Download SMF from SimpleMachines.org.
    * Install SMF on the same database as Joomla.
    * Extract the Joomla-SMF Forum package:
      * com_joomla_smf_forum_1.0.zip - (main component)
      * mod_smf_login_optional.zip - (optional login module)
      * mod_smf_recent_topics.zip - (optional recent topics module)
    * Install first the component and setup the configuration (follow the INSTALLATION CHECKLIST).
    * After that, you may choose to install the optional login module to make use of the extra configurable links option. If you do this, uninstall the default Joomla login module.
    * Then install the optional recent topics module.

downatone

Ok, it requires me to make my public_html folder writeable. I can't do this on my host...their security settings deny access to do so. Making the rest writeable is fine -- any way to do this without having to make it writeable? (Seems a little crazy to me that the public_html needs to be writeable, this is the first component I've come accross that requires this...)

Orstio

The joomlahacks bridge is not supported here.  You will get support for it where you downloaded it:

http://www.joomlahacks.com

downatone

Do you provide a bridge of your own?

Orstio


downatone

Thanks for the links...
Sadly I'm running into issues on step 1! Sad.
I login as admin in joomla. Top menu: Installers->Components.  Browse, located: 'smf_mambo3.1.tar.gz' File Upload. Then I get the following error: ERROR: Could not find a Joomla! XML setup file in the package.
I've checked the setup and can't see anything I'm missing...
Thoughts?

Orstio

Please read the instructions.

Step 1 is a SMF mod package, to be installed with your SMF Package Manager.

downatone

Maybe thats the question I should've been asking...
I'm completely new to smf. Whats the 'SMF Package Manager'? Where do I find this?

Orstio

Go to your SMF admin panel.  Click on the link that says "Package Manager".

downatone

Thank you.
The link is actually called 'Package' (my excuse for why I missed it in the first place).  :P

1. Quick question. Is there a script that ports all my joomla/mambo users over so smf recognizes them? Under config, I'm using the bridge registration. And am now testing login with a previous mambo user, but its not allowing me to login (obviously smf is not recognizing this user)

2. I'm getting a bit of a weird problem as well; it is as follows:
When viewing my forum: http://www.downatone.com/index.php?option=com_smf&Itemid=99
- In firefox it works perfectly.
- In IE it mostly shows blank (completely white), unless I refresh a few times, then it appears, but the component doesn't fit so displays itself outside the container - ontop of this it shows the follow text below the component:
Quote<form action="http://www.downatone.com/index.php?option=com_smf&Itemid=99&action=mambo_login" method="post" onsubmit="hashLogin
- in Opera it displays correct, but also has error codes under the component, they are as follows:
QuoteDatabase Error: Table 'hdowna28_Mambo.smf_sessions' doesn't exist
File: /home/hdowna28/public_html/smf/Sources/Load.php
Line: 1877
Warning: Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0

cheers for your time
David


Kindred


1- Yes, there is a script.  it's available on mamboforge where the 3.19 bridge is. It's called mos2smf.php (or in some versions I have seen mos2smfusers.php)

2- Cowboy's bridge has never uninstalled correctly. :(    You may have to reupload some of the source files for SMF and/or joomla.

3- You may want to look at some of the modified themes we have designed... many of the standard SMF themes will have issues displaying inside the component "window"   (if you are the same downatone from the gallery2 discussion, you understand what I am talking about)

4- did you save the module settings?   Did you add the code (as instructed in step4) to BOTH places in the joomla template file?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

downatone

Thanks for the reply Kindred...

1. I could not locate this file on mambo forge. I did hunt down one on this forum, it is as follows:

<?php

// Edit this line to reflect the path to SSI.php.
require_once('/var/www/html/forum/SSI.php');

// edit these variables for your table prefixes.  They are set at the defaults, so you probably won't need to.
$mos_prefix = "mos_";
$smf_prefix = "smf_";

// Get usernames already existing in Mambo, one by one...
$mos_result = mysql_query("
  SELECT name, username, email, password, UNIX_TIMESTAMP(registerDate) AS registerDate
  FROM
{$mos_prefix}users") or die(mysql_error());
while (
$mos_row = mysql_fetch_assoc($mos_result))
{
 
// Try to find a match in the SMF members.
 
$smf_result = mysql_query("
     SELECT memberName
     FROM
{$smf_prefix}members
     WHERE memberName = '
$mos_row[username]'
     LIMIT 1"
) or die(mysql_error());
 
$smf_row = mysql_fetch_array($smf_result);
 
mysql_free_result($smf_result);

 
// If the username already exists in both, don't do anything.
 
if (!empty($smf_row['username']))
     echo
'
        '
, $smf_row['username'], ' already exists.<br />';
  else
  {
     
// If the username doesn't exist in SMF, create it!
     
$write_result = mysql_query("
        INSERT INTO
{$smf_prefix}members
           (realName, memberName, passwd, emailAddress, dateRegistered)
        VALUES ('
$mos_row[name]', '$mos_row[username]', '$mos_row[password]', '$mos_row[email]', '$mos_row[registerDate]')") or die(mysql_error());
     echo
'
        '
, $mos_row['username'], ' added to SMF.<br />';
  }
}
mysql_free_result($mos_result);

?>


From looking at the code, this file seems to assume that smf & mambo are installed on the same database with different prefix's. I installed them on seperate databases...do you know of a script that takes this into consideration - or would this be a good time for me to learn php?

2-4. #4 resolved it. I had it in both locations for front.php but didn't add it to my inner.php this seems to have fixed the random error messages along with the container issues, it all fits now  :)

cheers
:: downatone ::

Advertisement: