blank page on mambo after installing smf

Started by Tony Reid, August 21, 2005, 06:17:00 PM

Previous topic - Next topic

Tony Reid

Hi,

I seem to have gone through all the steps fine... but when I add the code below to my mambo themes index.php - all I get is a completely blank page when loading the site up :(

Im using quote instead of code so I can highlight what I'm adding in...


Quote<?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 = split( '=', _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
require($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/md_transmenu.php");
mosInitTransmenu("mainmenu");
if ( $my->id ) {
   initEditor();
}

if (mosCountModules('user1') + mosCountModules('user2') < 2) {
  $greybox = 'large';
} else {
  $greybox = 'small';
}
?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/template_css.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="<?php echo $mosConfig_live_site;?>/images/favicon.ico" />
<?php
global $sc, $context;

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);
?>

</head>

<?php mysql_select_db($db_name); ?>

<body id="page_bg" onload="init()">
<a name="up" id="up"></a>

Any idea on what I could be doing wrong?

If I remove the above code then mambos template loads up fine  :-\

Thanks in advance,
Tony
Tony Reid

xenovanis

This


<?php mysql_select_db($db_name); ?>


Should be just before the </body> tag, you added it before the <body> tag.  ;)
"Insanity: doing the same thing over and over again and expecting different results."

Tony Reid

Damn I feel stupid ;D

Ive changed it - although I still have a blank page though :(

I'll have another play around now that I know the codes in the right place ;D

Thanks,
Tony
Tony Reid

Orstio

Turn off GZip compression (compressed output) in Mambo.

Tony Reid

Ive made sure its off in both smf and mambo ... still no change.

If I view the sorce of the blank page I get.....


<?xml version="1.0" encoding="iso-8859-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>
<title>Infertileworld.co.uk - Home</title>
<meta name="description" content="none yet" />
<meta name="keywords" content="none yet" />
<meta name="Generator" content="Mambo - Copyright 2000 - 2005 Miro International Pty Ltd.  All rights reserved." />
<meta name="robots" content="index, follow" />
<link rel="shortcut icon" href="http://www.infertileworld.co.uk/images/favicon.ico" />

<link rel="stylesheet" type="text/css" href="http://www.infertileworld.co.uk/templates/md_aphelion/styles.css" />

<!-- these two are required for transmenus to function -->
<link rel="stylesheet" type="text/css" href="http://www.infertileworld.co.uk/templates/md_aphelion/transmenu.css" />
<script type="text/javascript" language="javascript" src="http://www.infertileworld.co.uk/templates/md_aphelion/packed.js"></script>





<script type="text/javascript" language="javascript">
//<![CDATA[
function init() {
  if (TransMenu.isSupported()) {
TransMenu.initialize();
document.getElementById("mtm_home").onmouseover = function() { ms.hideCurrent(); this.className = "hover"; }
document.getElementById("mtm_home").onmouseout = function() { this.className = ""; }
document.getElementById("mtm_magazine").onmouseover = function() { ms.hideCurrent(); this.className = "hover"; }
document.getElementById("mtm_magazine").onmouseout = function() { this.className = ""; }
document.getElementById("mtm_noticeboard").onmouseover = function() { ms.hideCurrent(); this.className = "hover"; }
document.getElementById("mtm_noticeboard").onmouseout = function() { this.className = ""; }
document.getElementById("mtm_forum").onmouseover = function() { ms.hideCurrent(); this.className = "hover"; }
document.getElementById("mtm_forum").onmouseout = function() { this.className = ""; }
menu5.onactivate = function() { document.getElementById("mtm_community").className = "hover"; };
menu5.ondeactivate = function() { document.getElementById("mtm_community").className = ""; };
menu6.onactivate = function() { document.getElementById("mtm_resources").className = "hover"; };
menu6.ondeactivate = function() { document.getElementById("mtm_resources").className = ""; };
document.getElementById("mtm_live_feed").onmouseover = function() { ms.hideCurrent(); this.className = "hover"; }
document.getElementById("mtm_live_feed").onmouseout = function() { this.className = ""; }
}
  }
//]]>
</script>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="http://www.infertileworld.co.uk/templates/md_aphelion/css/template_css.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="http://www.infertileworld.co.uk/images/favicon.ico" />


Dont know if that sheds any light?

Tony Reid

Orstio

Have you set your path correctly in the bridge component config?

Tony Reid

Yeah it looks set ok... I even tried out  the full path from /home

permissions all check out ok too.

Tony Reid

Orstio

How about if you remove the password protection on your site (at least on the forum directory)?

Tony Reid

Tony Reid

Orstio

Is there anything in your site's error log?

Tony Reid

#10
yeah.... dont like the look of it though.......

PHP Fatal error:  Allowed memory size of 8388608 bytes exhausted (tried to allocate 92160 bytes) in /home/infertil/public_html/community/Sources/Load.php on line 432

And these....

Quote[client 81.158.252.122] PHP Notice:  Undefined variable:  smfpath in /home/infertil/public_html/administrator/components/com_smf/admin.smf.php on line 119
[client 81.158.252.122] PHP Notice:  Undefined variable:  smf_database in /home/infertil/public_html/administrator/components/com_smf/admin.smf.php on line 126
[client 81.158.252.122] PHP Notice:  Undefined variable:  smf_prefix in /home/infertil/public_html/administrator/components/com_smf/admin.smf.php on line 135
[client 81.158.252.122] PHP Notice:  Undefined variable:  mos_prefix in /home/infertil/public_html/administrator/components/com_smf/admin.smf.php on line 145
[client 81.158.252.122] PHP Notice:  Undefined variable:  act in /home/infertil/public_html/administrator/components/com_smf/admin.smf.php on line 179
[client 81.158.252.122] PHP Notice:  Undefined variable:  smfpath in /home/infertil/public_html/administrator/components/com_smf/admin.smf.php on line 119
[client 81.158.252.122] PHP Notice:  Undefined variable:  smf_database in /home/infertil/public_html/administrator/components/com_smf/admin.smf.php on line 126
Tony Reid

Orstio

Hmmm....

I have only seen this on sites that have a lot of memory-intensive modules.  Do you have any Java applets on the frontpage?

Tony Reid

No I did have some news scrollers but they are all unpublished.

It plain vanilla stuff at the moment.

Tony Reid

Orstio

QuoteAnd these....


Quote
[client 81.158.252.122] PHP Notice:  Undefined variable:  smfpath in /home/infertil/public_html/administrator/components/com_smf/admin.smf.php on line 119
[client 81.158.252.122] PHP Notice:  Undefined variable:  smf_database in /home/infertil/public_html/administrator/components/com_smf/admin.smf.php on line 126
[client 81.158.252.122] PHP Notice:  Undefined variable:  smf_prefix in /home/infertil/public_html/administrator/components/com_smf/admin.smf.php on line 135
[client 81.158.252.122] PHP Notice:  Undefined variable:  mos_prefix in /home/infertil/public_html/administrator/components/com_smf/admin.smf.php on line 145
[client 81.158.252.122] PHP Notice:  Undefined variable:  act in /home/infertil/public_html/administrator/components/com_smf/admin.smf.php on line 179
[client 81.158.252.122] PHP Notice:  Undefined variable:  smfpath in /home/infertil/public_html/administrator/components/com_smf/admin.smf.php on line 119
[client 81.158.252.122] PHP Notice:  Undefined variable:  smf_database in /home/infertil/public_html/administrator/components/com_smf/admin.smf.php on line 126

What version of the bridge is this?  Those variables have not been required since version 3.12.

Tony Reid

This was the filename I obtained it from

MOS_SMF_BRIDGEv3[1].19a_SMF1.1b3.zip

And I followed the steps 1 through 4.
Tony Reid

Orstio

QuotePHP Fatal error:  Allowed memory size of 8388608 bytes exhausted (tried to allocate 92160 bytes) in /home/infertil/public_html/community/Sources/Load.php on line 432

Have you attempted to contact your host to request more memory?

Tony Reid

Its a dedicated box and I am 2 gigs or ram.

I can extend PHP's script allowance but I think 8mb is enough though. I think its something else.

I'll have a play.
Tony Reid

tentronik

Just a guess but could this be a open /tmp dir issue, cause the /tmp dir is full?

Tony Reid

Hi,

No - tmp partition is pretty clean.

Ive removed the smf mambo component for now.

Thanks to everyone for trying though.

Tony,
Tony Reid

Tony Reid

After Upping the memory a few times - it seems to be fine at 16mb's - I only have login issues now - but will do that on a seperate topic :)

Thanks for your help guys,

Tony
Tony Reid

Advertisement: