• Welcome to Simple Machines Community Forum. Please login or sign up.

ssi include statement causes white screen of death. SOLVED

Started by timned88, March 24, 2008, 01:32:38 AM

Previous topic - Next topic

timned88

hi, i am building a joomla site and when i include the ssi include statement in my template's index.php file, it causes a white screen of death.  i recently ported the forum over from another hosting company.  when i do a fresh install of the forum, i have no issues with the ssi include.  when i ftp'ed all of the forum files and moved the database over, then used the include statement the error occurs and i get a white screen of death on my index page.  if i take out the ssi include the site works fine once again.  i have done the repair_settings.php and all looks good, then i dbl checked to settings.php to make sure everthing was correct.  not really sure what else to check... someone please guide me in the right direction.  the forum itself appears to be functioning properly and i got the include statement from ssi_examples.php which is also working properly.  there is no error message in the error logs.

here is the sample from my index.php where i am trying to use the include statement:
<?php
defined( '_VALID_MOS' ) or die( 'Restricted access' );
$iso = split( '=', _ISO ); ?>
<?php require("/path as given by ssi_examples.php"); ?>
<!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>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<meta http-equiv="Content-Style-Type" content="text/css" />

etc. etc. etc.

Oldiesmann

SSI.php needs to be included as the first thing in your file, so move the require statement above anything else.
Michael Eshom
Cincy Space - now open!

timned88

March 24, 2008, 10:45:40 AM #2 Last Edit: March 24, 2008, 10:50:11 AM by timned88
that still didnt work...
<?php require("/home/themagi2/public_html/forum/SSI.php"); ?>
<?php
defined( '_VALID_MOS' ) or die( 'Restricted access' );
$iso = split( '=', _ISO ); ?>
<!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>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<meta http-equiv="Content-Style-Type" content="text/css" />

timned88

March 24, 2008, 11:05:47 AM #3 Last Edit: March 24, 2008, 02:39:58 PM by timned88
the ssi include statement  <?php require("/home/themagi2/public_html/forum/SSI.php"); ?>  was  moved to the top of /home/public_html/index.php and it  took with no problems.  now i am getting the following errors:

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/themagi2/public_html/forum/Sources/Subs.php on line 321

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/themagi2/public_html/forum/Sources/Errors.php on line 123

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/themagi2/public_html/forum/Sources/Errors.php on line 124

Warning: filemtime() [function.filemtime]: stat failed for /Load.php in /home/themagi2/public_html/forum/Sources/Load.php on line 2166



joomla is installed to /home/public_html/
smf is installed to /home/public_html/forum/

here is the actual code i am using to call those functions.  this is being called from a mod_php module in joomla 1.0.15 - it worked with my old hosting company:
New posts today: <b><?php ssi_postsToday(); ?></b><br>
<?php ssi_boardStats(); ?><br><i><u><br>Members currently online:</u></i><br><?php ssi_whosOnline(); ?>

Rumbaar

I'm not sure, but I know some packages have similar functions.  Does Joomla functions conflict with any SMF SSI calls?
"An important reward for a job well done is a personal sense of worthwhile achievement."


[ Themes ]

timned88

it was an issue where smf and virtuemart shared the same global variable.  it was fixed by renaming the global Variable $func to something else in smf. problem SOLVED.  the variable is in the /sources directory in a bunch of files.

Advertisement: