Forum

MamboHacks.com => Mambo-SMF Integration 1.1x Support => Topic started by: Jim on March 23, 2005, 07:21:43 PM



Title: Yet Another Fatal Error... :(
Post by: Jim on March 23, 2005, 07:21:43 PM
Greetings!
I'd love to get this working.. but...
I had version one working fine on another site but have done everything I can to get this one working, but I get the following error:

Code:
Warning: main(/SSI.php): failed to open stream: No such file or directory in W:\www\hipware\templates\hipware1\index.php on line 17

Fatal error: main(): Failed opening required '/SSI.php' (include_path='.;\usr\local\PHP\includes;w:/www/mambo45') in W:\www\hipware\templates\hipware1\index.php on line 17

Just so you know, I'm working locally, but that didn't make a difference on another prototype site I was working on with your other version (1.0)...

I'm almost interested in locating the original version 1 to get it working...

Thanks! :)


Title: Re: Yet Another Fatal Error... :(
Post by: Jim on March 23, 2005, 08:08:27 PM
OK...
Please disregard, I finally figured it out LOL... it took me all day but i put in the absolute path where the comment /SSI.php is... apparantly it needed an absolute one to do that.... is this a bug?


Title: Re: Yet Another Fatal Error... :(
Post by: cowboy on March 24, 2005, 02:39:02 AM
My instruction should do everything. I don't know how you went through the installation so I don't have any idea.  ;D


Title: Re: Yet Another Fatal Error... :(
Post by: Jim on March 24, 2005, 06:16:11 AM
Quote from: admin on March 24, 2005, 02:39:02 AM
My instruction should do everything. I don't know how you went through the installation so I don't have any idea.  ;D


I followed your instructions closely, after doing it a few times... it's working now but for some odd reason, I had to put the ABSOLUTE pate into a couple of documents by hand because the installer didn't do it.  Even in the smf config, I had the absolute path as required but it didn't put that in correnctly.

I know it's not a write issue because I have all permissions set up correctly.

Another weird thing... where the config specifies the ABSOLUTE path, if you try and change it... your config won't allow it... it will simply put it back it what it 'thinks' should be default.. is that working as intended?  I can see this could be a problem for those who many need to change that in the smf config.  I'm wondering if this had to do with my problem.

Thanks again! :)


Title: Re: Yet Another Fatal Error... :(
Post by: lawman on March 24, 2005, 06:41:42 AM
Quote from: Jim on March 23, 2005, 08:08:27 PM
OK...
Please disregard, I finally figured it out LOL... it took me all day but i put in the absolute path where the comment /SSI.php is... apparantly it needed an absolute one to do that.... is this a bug?


Can you tell me and others which files you editied to get it working...


Title: Re: Yet Another Fatal Error... :(
Post by: Jim on March 24, 2005, 07:35:13 AM
Yeah... this one is a strange thing, and I do believe it is a bug (or just a little glitch in the code...

First things first :)

1) I noticed that in my templates "index.php" code, that around line 17 there is a line that says:


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

I had to replace it with the path (remember I'm working on a test server, but it's the same thing:

if (!defined('SMF')){
  require ($mosConfig_absolute_path."/administrator/components/com_smf/config.smf.php");
  require ($smf_path."W:/www/hipware/forum/SSI.php");
}

Now, notice I had to put in the full path.  Yours will be different based on your server, for example, it may need to be:

home/public_html/forum/SSI.php
(or something similar).

THEN...
I had to do the same in the smf.php file located in /components/com_smf on or around line 15:

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

Replace with:

if (!defined('SMF')){
  global $mosConfig_absolute_path;
  require_once ($mosConfig_absolute_path."/administrator/components/com_smf/config.smf.php");
  require_once ($mosConfig_absolute_path."/administrator/components/com_smf/functions.smf.php");
  require_once ($mosConfig_absolute_path."/administrator/components/com_smf/functions.smf.main.php");
  require ($smf_path."W://www/hipware/forum/SSI.php");
}

or something similar to your server as stated in the first code example.

NOW.. here is the tricky part...
Please let me know if any of you experience this, because it's VERY strange...

In your mambo admin panel, go to SMF Configuration
I noticed that the settings don't stick (even with FULL writing permissions on the config file).  I tried experimenting with the path, and it would insist on putting in what it "thought" was the path, but it's correct.  It wouldn't let me change it.

I opened up the config file (the php file in your administrator/components/com_smf/) and I noticed that the absolute path was BLANK!  I played with this and it was the only way it would stick to what I wanted.  Then it would show up in the SMF configuration in the control panel.

This problem remains...
It still says that SMF is not installed, yet I have it working.  So that leaves the new update feature out of the question.

Can anyone go through the documents that I've stated and experiment and see if your findings are the same?  Or is this all intended? 

In some ways I'd like to revert back to 1.0 until it's fixed, but I deleted the file :(

Anyway, still a GREAT job on this bridge !!

Keep us up-to-date! I do hope I've helped...

Cheers,
Jim


Title: Re: Yet Another Fatal Error... :(
Post by: Jim on March 24, 2005, 07:44:28 AM
OK, I reformatted my above post to make it easier :P


Title: Re: Yet Another Fatal Error... :(
Post by: Ismim Yok on March 24, 2005, 11:20:28 AM
Hi,

I had exactly the same problem Jim had. However Jim's solution didn't work for me. Here is my solution:

I edited only the config_smf.php under administrator/components/com_smf/ and put this as the smf path:

$smf_path = ($mosConfig_absolute_path."/forum");

[In my case smf is located in a subdirectory named forum under the mambo' direcotry.]

So far everything seems to be working. I'll update if anything goes wrong.

Regards,
Ertu


Title: Re: Yet Another Fatal Error... :(
Post by: Kindred on March 24, 2005, 12:04:59 PM
Jim...


You didn't need to actually do all those edits...  what you actually needed was to make certain that config.smf.php is setting the proper path to the forum directory. The rest descends from that...


Title: Re: Yet Another Fatal Error... :(
Post by: cowboy on March 24, 2005, 01:43:39 PM
Your problem seems like the config.smf.php is not writable. If you notice, Mambo has a configuration option that sets files permission settings of files you installed. Look at those settings in Global Configuration.

On 1.2 I made adjustments so future users don't have to worry about this permissions and manually inserting codes.


Title: Re: Yet Another Fatal Error... :(
Post by: aravot on March 24, 2005, 09:34:44 PM
Quote from: admin on March 24, 2005, 01:43:39 PM
On 1.2 I made adjustments so future users don't have to worry about this permissions and manually inserting codes.


Where is 1.2, I was gone install Mambo and SMF tonight but if you are coming out with 1.2 I'll wait.


Title: Re: Yet Another Fatal Error... :(
Post by: cowboy on March 24, 2005, 11:50:32 PM
i'm still working on 1.2, my changes there are mostly on installation process. 1.1a should be fine. I already tested it twice.


Forum | Powered by SMF 1.0.5 & Mambo-SMF.
© 2001-2005, Lewis Media. All Rights Reserved.