Efiction-SMF-Challe...
 
Notifications
Clear all

Efiction-SMF-Challenges Fatal Errors

6 Posts
4 Users
0 Reactions
4,799 Views
(@julieann)
Posts: 60
Trusted Member
Topic starter
 

URL to your eFiction: http://www.gatchfanfic.com/
Version of eFiction: 3.4.1
Have you bridged eFiction, if so with what?: SMF
Any mods installed?: Challenges, cpg-art
Version of PHP: 5.2.5
Version of MySQL: 4.1.22-standard
Have you searched for your problem: yes
If so, what terms did you try: SMF, Challenge, Fatal error
Do you have a test account for us? Yes. User name: testreg  Password: test1234
State the nature of your problem:

First I was able to get both Efiction and SMF to work properly. Then I loaded the bridging files. The path to SMF SHOULD be "../forum/", and in fact on a test site I was able to get that to work (in a subfolder of the site). However, on the live site, which sits at the base of the server, it throws up this error:

Warning: main(../forum/SSI.php) [function.main]: failed to open stream: No such file or directory in /home/**/public_html/includes/get_session_vars.php on line 23

Fatal error: main() [function.require]: Failed opening required '../forum/SSI.php' (include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php:/usr/local/lib/php') in /home/**/public_html/includes/get_session_vars.php on line 23

I see that Darklight once had a similar problem here in regards to a SMF bridge and Challenges.

So, in the queries.php file I changed the path to SMF to "/home/**/public_html/forum/". That change succeeded in getting the Efiction files to load and I was able to get into the main site.

Well, most of site.

When Efiction and SMF were unbridged, the challenges module worked fine. However, as soon as they are bridged, and I click on a specific challenge to see the stories listed under it, I get the following error:

Warning: main(../..//home/**/public_html/forum/SSI.php) [function.main]: failed to open stream: No such file or directory in /home/**/public_html/includes/get_session_vars.php on line 23

Fatal error: main() [function.require]: Failed opening required '../..//home/**/public_html/forum/SSI.php' (include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php:/usr/local/lib/php') in /home/**/public_html/includes/get_session_vars.php on line 23

In a possibly related issue, when I go to the "Edit Bio" link in the "Account Info" on the Efiction side, I get the following error:

Not Found
The requested URL /home/**/public_html/forum/index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

It looks like the settings in queries.php for the relative path to SMF are not doing what they should. "../forum/" doesn't seem to work at all on the live site, but the path from the root gives off errors in other places even though most of the site is now working with it.

Does anyone have any idea on how to fix this?


Julieann

Running 3.4.3 bridged with SMF and Coppermine
Mods: Challenges, cpg-art (not working), Limit Summary Length, Bio to Prefs, Top 20 instead of 10
Wants: Move Betareader to Prefs, Twitter
Gatchaman Fanfic Archive

 
Posted : 01/04/2008 1:12 am
(@julieann)
Posts: 60
Trusted Member
Topic starter
 

Well, I'm still not sure why I'm unable to use a simple relative path at the root of my server, unlike I can in a subdirectory where I have my test site.

I sent a support request with my server, wondering if this could be caused by some setting they had. This morning they answered back. Here is what they said concerning includes/get_session_vars.php:

I have checked and the parameter _BASEDIR was adding the extra ../../ to the path to SSI.php. So I have now removed it from your code and now the URL you provide is working fine. But there are some errors on the page and that are purely development related. Please contact your developer to fix those issues.

In this file they changed

$eFicLang = $language;
require_once(_BASEDIR.PATHTOSMF."SSI.php");
$language = $eFicLang;

to

$eFicLang = $language;
#require_once(_BASEDIR.PATHTOSMF."SSI.php");
require_once(PATHTOSMF."SSI.php");
$language = $eFicLang;

So now, the challenges module is working. However, it did not solve the problem "Edit Bio" link in the "Account Info" on the Efiction side. It's now trying to go to a link " http://www.gatchfanfic.com/home/jgatchfa/public_html/forum/index.php?action=profile"

Which of course won't work, as that is not a valid web address, so it throws up the following error:

Not Found
The requested URL /home/jgatchfa/public_html/forum/index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Anyone have any new ideas?


Julieann

Running 3.4.3 bridged with SMF and Coppermine
Mods: Challenges, cpg-art (not working), Limit Summary Length, Bio to Prefs, Top 20 instead of 10
Wants: Move Betareader to Prefs, Twitter
Gatchaman Fanfic Archive

 
Posted : 02/04/2008 10:45 am
(@mickinell)
Posts: 62
Trusted Member
 

I think this has something to do with SMF, because on our REAL site (not live yet), the address is one of those big long giant /home/bla bla/public_html/forum addresses too.

And I've found in SMF when installing packages that instead of just using /forum or /smf or whatever you've used, it wants /public_html/forum (but not the whole kit & caboodle).  I found this out after an hour or two of frustrating tries and searching the SM forums.

I have not had these errors on my personal site, which is just a plain old www.address.com/forum, so I'm 90% sure that's what would be causing it.


URL to your eFiction:  http://www.mickiclark.com/efiction33
Version of eFiction:  3.3.1
Have you bridged eFiction, if so with what?:  SMF
Version of PHP:
Version of MySQL: MySQL 4.1.14

 
Posted : 04/04/2008 11:55 am
(@julieann)
Posts: 60
Trusted Member
Topic starter
 

I ended up modifying user/editbio.php and changed it to:

<?php

if(!defined("_CHARSET")) exit( );

$output .= "<script language="javascript" type="text/javascript">
location = "../forum/index.php?action=profile";
</script>";
?>

Basically made it a direct link, instead of it trying to pull part of the address from the query.php settings. Now it's working fine. πŸ™‚  I haven't run into any other problems with links....so far.  πŸ˜€


Julieann

Running 3.4.3 bridged with SMF and Coppermine
Mods: Challenges, cpg-art (not working), Limit Summary Length, Bio to Prefs, Top 20 instead of 10
Wants: Move Betareader to Prefs, Twitter
Gatchaman Fanfic Archive

 
Posted : 04/04/2008 8:57 pm
(@becca)
Posts: 553
Honorable Member
 

I believe when you run into problems like this, its due to the different configuration that your webhost has set. For example Dreamhost is my current host but I run into odd config problems sometimes, I had one with a SMF mod.


 
Posted : 07/04/2008 11:58 pm
(@guest9063)
Posts: 0
 

I would like to say thank you to Julieann for posting the code to solve the Challenges Errors.

Many Thanks!

Note: For anybody else who has this problem jus goto the SMF Bridge file 

get_session_vars.php

and open it in a Text editor.

Find this:

$eFicLang = $language;
require_once(_BASEDIR.PATHTOSMF."SSI.php");
$language = $eFicLang;

And Replace with this code:

$eFicLang = $language;
#require_once(_BASEDIR.PATHTOSMF."SSI.php");
require_once(PATHTOSMF."SSI.php");
$language = $eFicLang;

Enjoy

The Wizard


 
Posted : 16/04/2011 12:06 pm
Share: