| |
|
Latest Version |
Page Cache 1.0.8 stable Release Date: 2007-06-11 |
|
[Solved] BUG in 1.0.8 stable?? (2 viewing)
|
|
TOPIC: [Solved] BUG in 1.0.8 stable??
|
lynnmora (User)
Junior Boarder
Posts: 6
|
| [Solved] BUG in 1.0.8 stable?? 2007/07/24 07:58 |
Karma: 0   |
 I have been trying to install this 3 days now and still nothing!!!! I changed all the requested file permissions. This is the whole message I get after installing: | Code: | Checking dependencies...
Checking PHP version...
Checking MySQL version
Checking Joomla version
Dependencies Passed!
Installing DB...
Installing...
Checking for previous installation...
Notice: Table 'xxxxx_jperu.jos_page_cache_conf' doesn't exist in /home/xxxxx/public_html/includes/database.php on line 191
/home/xxxxx/public_html/includes/database.php:342
/home/xxxxx/public_html/administrator/components/com_page_cache/install.page_cache.php:61
/home/xxxxx/public_html/administrator/components/com_page_cache/install.page_cache.php:32
/home/xxxxx/public_html/administrator/components/com_installer/component/component.class.php:193
/home/xxxxx/public_html/administrator/components/com_installer/admin.installer.php:112
/home/xxxxx/public_html/administrator/components/com_installer/admin.installer.php:47
/home/xxxxx/public_html/administrator/index2.php:34None found, installing database...
Database installation/upgrade complete!
Attempting to modify files
Starting...
Hacking /index.php...
/index.php Backed Up Successfully to /index.bak.php
/index.php Modified Sucessfully
Hacking /administrator/index2.php...
/home/xxxxx/public_html/administrator/index2
/administrator/index2.php Backed Up Successfully to /administrator/index2.bak.php
/administrator/index2.php Modified Sucessfully
Hacking /administrator/index3.php...
/home/xxxxx/public_html/administrator/index3
/administrator/index3.php Backed Up Successfully to /administrator/index3.bak.php
/administrator/index3.php Modified Sucessfully
Modification Complete!
|
And after having done all this, and load my website (http://www.jperu.com) I get this message:
| Code: |
require_once( 'components/com_page_cache/page_cache.class.php' );
Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/index.php:3) in /home/xxxxx/public_html/includes/joomla.php on line 468
Fatal error: Call to a member function on a non-object in /home/xxxxx/public_html/index.php on line 150
|
Please Help Me! Thx
Post edited by: lynnmora, at: 2007/07/27 22:55 Post edited by: lynnmora, at: 2007/07/27 22:59
jperu.com
|
|
|
|
The administrator has disabled public write access.
|
ircmaxell (Admin)
Admin
Posts: 444
|
| Re:BUG in 1.0.8 stable?? 2007/07/24 14:40 |
Karma: 8   |
|
Well, that database error is actually supposed to happen. It's the way I check to see if it was previously installed. If I detect an error, then it wasn't... Could you post back your index.php?
|
|
|
|
The administrator has disabled public write access.
|
lynnmora (User)
Junior Boarder
Posts: 6
|
| Re:BUG in 1.0.8 stable?? 2007/07/26 05:12 |
Karma: 0   |
Here. Thx | Code: | <!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>JPeru.com | Browse Peru Yourself ™ - Recommended Site Travel Information - Peru Tours Machu Picchu Cusco Hotels Cuzco Inca Trail</TITLE>
<META NAME="subject" CONTENT="Machu Picchu, Cusco Peru, Cuzco, Travel Information, Inca Trail Machu Picchu, Tours Cuzco, Cusco
Hotels" />
<META NAME="Classification" CONTENT="Welcome to the one and only tourist information site, JPeru.com. Peru is a country full of
interesting places to go; feel free to Browse the best of Machu Picchu, Cusco, Lima and different
other hotels, hostels, travel agencies peru, peru tours, restaurants, and all the services." />
<META NAME="Geography" CONTENT="Plaza Manco Capac s/n, Machu Picchu Peru" />
<META NAME="Language" CONTENT="English, Spanish, French, Deutsch, German, Italian, Chinese, Portuguese, Arabic, Japanese, Korean"
/>
<META HTTP-EQUIV="Expires" CONTENT="never" />
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="PUBLIC" />
<META NAME="Copyright" CONTENT="PeruPixels.com" />
<META NAME="Designer" CONTENT="PeruPixels.com" />
<META NAME="author" CONTENT="Peru Pixels Graph SAC" />
<META NAME="Publisher" CONTENT="PeruPixels.com" />
<META NAME="Revisit-After" CONTENT="1 week" />
<META NAME="distribution" CONTENT="Global" />
<META NAME="Robots" CONTENT="INDEX,FOLLOW" />
<META NAME="city" CONTENT="Cusco" />
<META NAME="country" CONTENT="Peru" />
<META NAME="MSSmartTagsPreventParsing" CONTENT="TRUE" />
<?php
$menu_name = "mainmenu"; // mainmenu by default,you can use any joomla menu name
$control_panel = "false"; // true | false
$width_template = "980px";
$template_style = "style5"; // you can set default (default = style1), style2, style3, ....
$sidebar_position = "right"; // you can set "right" or "left"
require($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/gk_suckerfish.php");
require($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/gk_setup.php");
?>
<?php mosShowHead(); ?>
<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 href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/
css/suckerfish.css" rel="stylesheet" type="text/css" />
<?php if ( $my->id ) { initEditor(); } ?>
<style type="text/css">
img { behavior: url(<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->
getTemplate(); ?>/css/iepngfix.htc); }
</style>
<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->
getTemplate(); ?>/css/ie6_css.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->
getTemplate(); ?>/css/ie7_css.css" rel="stylesheet" type="text/css" />
<?php
echo '<link href="'.$mosConfig_live_site.'/templates/'.$mainframe->getTemplate().'/css/
style5.css" rel="stylesheet" type="text/css" />';
if(isset($_COOKIE['gk_temp_width'])){
$wrapper_width = 'style="width: '.$_COOKIE['gk_temp_width'].'px"';
}
else{
$wrapper_width = '';
}
if(isset($_COOKIE['gk_sidebar_pos'])){
$sidebar_position = $_COOKIE['gk_sidebar_pos'];
}
?>
<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo
$mainframe->getTemplate(); ?>/scripts/template_scripts.js"></script>
<script type="text/javascript">
area_position = '<?php echo $sidebar_position; ?>';
gk_max_length_1 = 1200;
gk_max_length_2 = 0;
tmp_wdth = "<?php echo $width_template; ?>";
css_path = '<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?
>/css/';
</script>
</head>
<body id="bg">
<div id="wrapper" <?php echo $wrapper_width;?>>
<div id="topwrap">
<div id="logo">
<a href="./" class="logo"></a>
</div>
<div id="icons">
<a href="javascript:addBookmark('JPeru.com | Browse Peru Yourself %E2%84%A2 - Recommended
Site - Tours, Machu Picchu, Cusco, Cuzco','http://www.jperu.com');" id="icon-shop">Bookmark Us!</a>
<a href="/component/option,com_joomap/Itemid,26/" id="icon-sitemap">Sitemap</a>
</div>
</div>
<div id="memberwrap">
<?php if (mosCountModules('advert1')) : ?>
<div id="memberarea">
<?php mosLoadModules('advert1', -1); ?>
</div>
<?php endif; ?>
<?php if (mosCountModules('advert2')) : ?>
<div id="searcharea">
<?php mosLoadModules('advert2', -1); ?>
</div>
<?php endif; ?>
</div>
<div id="menuwrap">
<div id="nav">
<?php mosShowListMenu($menu_name); ?>
</div>
</div>
<table border="0" cellspacing="0" cellpadding="0" id="contentwrap" >
<tr valign="top" id="two_areas">
<?php if(mosCountModules('right')){
if($sidebar_position == 'left'){
echo '<td id="blockright">';
echo '<div id="rightarea">';
echo mosLoadModules('right', -2);
echo '</div>';
echo '</td>';
echo '<td id="space"></td>';
}
}
?>
<td id="blockleft"><table border="0" cellspacing="0" cellpadding="0" id="leftwrap">
<?php if (mosCountModules('banner')) : ?>
<tr valign="top">
<td colspan="3" id="bannerarea"><?php mosLoadModules('banner', -2); ?></td>
</tr>
<?php endif; ?>
<tr valign="top">
<td id="maincontentwrap"><table border="0" cellspacing="0" cellpadding="0" id="
maincontent" >
<?php if (mosCountModules('user1')) : ?>
<tr valign="top">
<td><?php mosLoadModules('user1', -2); ?></td>
</tr>
<?php endif; ?>
<?php if (mosCountModules('user2')) : ?>
<tr valign="top">
<td><?php mosLoadModules('user2', -2); ?></td>
</tr>
<?php endif; ?>
<tr valign="top">
<td><?php mosMainBody(); ?></td>
</tr>
</table></td>
<?php if (mosCountModules('inset')) : ?>
<td class="space"></td>
<td id="insetwrap"><?php mosLoadModules('inset', -2); ?></td>
<?php endif; ?>
</tr>
</table></td>
<?php if(mosCountModules('right')){
if($sidebar_position == 'right'){
echo '<td id="space"></td>';
echo '<td id="blockright" >';
echo '<div id="rightarea">';
echo mosLoadModules('right', -2);
echo '</div>';
echo '</td>';
}
}
?>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" id="userdownwrap" >
<?php if (mosCountModules('user3') or mosCountModules('user4') or mosCountModules('user5') or
mosCountModules('user6')) : ?>
<tr valign="top">
<td><table border="0" cellspacing="0" cellpadding="0" width="100%" >
<tr valign="top">
<?php if (mosCountModules('user3')) : ?>
<td class="downuser" style="width: <?php echo $downwidth; ?>;"><?php mosLoadModules('
user3', -2); ?></td>
<?php endif; ?>
<?php if (mosCountModules('user4')) : ?>
<td class="downuser <?php echo $spacer1; ?>" style="width: <?php echo $downwidth; ?> ;">
<?php mosLoadModules('user4', -2); ?></td>
<?php endif; ?>
<?php if (mosCountModules('user5')) : ?>
<td class="downuser <?php echo $spacer2; ?>" style="width: <?php echo $downwidth; ?> ;">
<?php mosLoadModules('user5', -2); ?></td>
<?php endif; ?>
<?php if (mosCountModules('user6')) : ?>
<td class="downuser <?php echo $spacer3; ?>" style="width: <?php echo $downwidth; ?> ;">
<?php mosLoadModules('user6', -2); ?></td>
<?php endif; ?>
</tr>
</table></td>
</tr>
<?php endif; ?>
<?php if (mosCountModules('user7') or mosCountModules('user8') or mosCountModules('user9') or
mosCountModules('user10')) : ?>
<tr valign="top">
<td><table border="0" cellspacing="0" cellpadding="0" width="100%" >
<tr valign="top">
<?php if (mosCountModules('user7')) : ?>
<td class="downuser" style="width: <?php echo $exdownwidth; ?>;"><?php mosLoadModules('
user7', -2); ?></td>
<?php endif; ?>
<?php if (mosCountModules('user8')) : ?>
<td class="downuser <?php echo $spacer1; ?>" style="width: <?php echo $exdownwidth; ?> ;
"><?php mosLoadModules('user8', -2); ?></td>
<?php endif; ?>
<?php if (mosCountModules('user9')) : ?>
<td class="downuser <?php echo $spacer2; ?>" style="width: <?php echo $exdownwidth; ?> ;
"><?php mosLoadModules('user9', -2); ?></td>
<?php endif; ?>
<?php if (mosCountModules('user10')) : ?>
<td class="downuser <?php echo $spacer3; ?>" style="width: <?php echo $exdownwidth; ?> ;
"><?php mosLoadModules('user10', -2); ?></td>
<?php endif; ?>
</tr>
</table></td>
</tr>
<?php endif; ?>
<tr valign="top">
<td id="footer"><span id="info">
<?php include_once('gk_footer.php'); ?>
</span></td>
</tr>
</table>
</div>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-2243874-1";
urchinTracker();
</script>
</body>
</html>
|
jperu.com
|
|
|
|
The administrator has disabled public write access.
|
ircmaxell (Admin)
Admin
Posts: 444
|
| Re:BUG in 1.0.8 stable?? 2007/07/26 05:17 |
Karma: 8   |
|
Not the template, the actual index.php from the Joomla root...
|
|
|
|
The administrator has disabled public write access.
|
lynnmora (User)
Junior Boarder
Posts: 6
|
| Re:BUG in 1.0.8 stable?? 2007/07/27 06:31 |
Karma: 0   |
Here it is | Code: | <?php
define( '_VALID_MOS', 1 );
if (!file_exists( 'configuration.php' ) || filesize( 'configuration.php' ) < 10) {
$self = rtrim( dirname( $_SERVER['PHP_SELF'] ), '/\\' ) . '/';
header("Location: http://" . $_SERVER['HTTP_HOST'] . $self . "installation/index.php" );
exit();
}
require( 'globals.php' );
require_once( 'configuration.php' );
$http_host = explode(':', $_SERVER['HTTP_HOST'] );
if( (!empty( $_SERVER['HTTPS'] ) && strtolower( $_SERVER['HTTPS'] ) != 'off' || isset( $http_host[1] ) && $http_host[1] == 443) && substr( $mosConfig_live_site, 0, 8 ) != 'https://' ) {
$mosConfig_live_site = 'https://'.substr( $mosConfig_live_site, 7 );
}
require_once( 'includes/joomla.php' );
if (file_exists( 'installation/index.php' ) && $_VERSION->SVN == 0) {
define( '_INSTALL_CHECK', 1 );
include ( $mosConfig_absolute_path .'/offline.php');
exit();
}
if ($mosConfig_offline == 1) {
require( $mosConfig_absolute_path .'/offline.php' );
}
$_MAMBOTS->loadBotGroup( 'system' );
$_MAMBOTS->trigger( 'onStart' );
if (file_exists( $mosConfig_absolute_path .'/components/com_sef/sef.php' )) {
require_once( $mosConfig_absolute_path .'/components/com_sef/sef.php' );
} else {
require_once( $mosConfig_absolute_path .'/includes/sef.php' );
}
require_once( $mosConfig_absolute_path .'/includes/frontend.php' );
$option = strval( strtolower( mosGetParam( $_REQUEST, 'option' ) ) );
$Itemid = intval( mosGetParam( $_REQUEST, 'Itemid', null ) );
if ($option == '') {
if ($Itemid) {
$query = "SELECT id, link"
. "\n FROM #__menu"
. "\n WHERE menutype = 'mainmenu'"
. "\n AND id = " . (int) $Itemid
. "\n AND published = 1"
;
$database->setQuery( $query );
} else {
$query = "SELECT id, link"
. "\n FROM #__menu"
. "\n WHERE menutype = 'mainmenu'"
. "\n AND published = 1"
. "\n ORDER BY parent, ordering"
;
$database->setQuery( $query, 0, 1 );
}
$menu = new mosMenu( $database );
if ($database->loadObject( $menu )) {
$Itemid = $menu->id;
}
$link = $menu->link;
if (($pos = strpos( $link, '?' )) !== false) {
$link = substr( $link, $pos+1 ). '&Itemid='.$Itemid;
}
parse_str( $link, $temp );
/** this is a patch, need to rework when globals are handled better */
foreach ($temp as $k=>$v) {
$GLOBALS[$k] = $v;
$_REQUEST[$k] = $v;
if ($k == 'option') {
$option = $v;
}
}
}
if ( !$Itemid ) {
$Itemid = 99999999;
}
$mainframe = new mosMainFrame( $database, $option, '.' );
$mainframe->initSession();
$_MAMBOTS->trigger( 'onAfterStart' );
if ( $option == 'com_content' && $Itemid === 0 ) {
$id = intval( mosGetParam( $_REQUEST, 'id', 0 ) );
$Itemid = $mainframe->getItemid( $id );
}
if ( $Itemid === 0 ) {
$query = "SELECT id"
. "\n FROM #__menu"
. "\n WHERE menutype = 'mainmenu'"
. "\n AND published = 1"
. "\n ORDER BY parent, ordering"
;
$database->setQuery( $query, 0, 1 );
$Itemid = $database->loadResult();
}
if ($option == 'search') {
$option = 'com_search';
}
if ($mosConfig_lang=='') {
$mosConfig_lang = 'english';
}
include_once( $mosConfig_absolute_path .'/language/' . $mosConfig_lang . '.php' );
$return = strval( mosGetParam( $_REQUEST, 'return', NULL ) );
$message = intval( mosGetParam( $_POST, 'message', 0 ) );
if ($option == 'login') {
$mainframe->login();
if ( $message ) {
?>
<script language="javascript" type="text/javascript">
<!--//
alert( "<?php echo addslashes( _LOGIN_SUCCESS ); ?>" );
//-->
</script>
<?php
}
if ( $return && !( strpos( $return, 'com_registration' ) || strpos( $return, 'com_login' ) ) ) {
if (isset( $_COOKIE[mosMainFrame::sessionCookieName()] )) {
mosRedirect( $return );
} else {
mosRedirect( $mosConfig_live_site .'/index.php?option=cookiecheck&return=' . urlencode(
$return ) );
}
} else {
if (isset( $_COOKIE[mosMainFrame::sessionCookieName()] )) {
mosRedirect( $mosConfig_live_site .'/index.php' );
} else {
mosRedirect( $mosConfig_live_site .'/index.php?option=cookiecheck&return=' . urlencode(
$mosConfig_live_site .'/index.php' ) );
}
}
} else if ($option == 'logout') {
$mainframe->logout();
if ( $message ) {
?>
<script language="javascript" type="text/javascript">
<!--//
alert( "<?php echo addslashes( _LOGOUT_SUCCESS ); ?>" );
//-->
</script>
<?php
}
if ( $return && !( strpos( $return, 'com_registration' ) || strpos( $return, 'com_login' ) ) ) {
mosRedirect( $return );
} else {
mosRedirect( $mosConfig_live_site.'/index.php' );
}
} else if ($option == 'cookiecheck') {
if (isset( $_COOKIE[mosMainFrame::sessionCookieName()] )) {
mosRedirect( $return );
} else {
mosErrorAlert( _ALERT_ENABLED );
}
}
$my = $mainframe->getUser();
$mainframe->detect();
$mainframe->set( 'loadOverlib', false );
$gid = intval( $my->gid );
$cur_template = $mainframe->getTemplate();
$_MOS_OPTION = array();
require_once( $mosConfig_absolute_path . '/editor/editor.php' );
ob_start();
if ($path = $mainframe->getPath( 'front' )) {
$task = strval( mosGetParam( $_REQUEST, 'task', '' ) );
$ret = mosMenuCheck( $Itemid, $option, $task, $gid );
if ($ret) {
require_once( $path );
} else {
mosNotAuth();
}
} else {
header( 'HTTP/1.0 404 Not Found' );
echo _NOT_EXIST;
}
$_MOS_OPTION['buffer'] = ob_get_contents();
ob_end_clean();
initGzip();
header( 'Expires: Mon, 26 Jul 1997 05:00:00 GMT' );
header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );
header( 'Cache-Control: no-store, no-cache, must-revalidate' );
header( 'Cache-Control: post-check=0, pre-check=0', false );
header( 'Pragma: no-cache' );
if (defined( '_ADMIN_OFFLINE' )) {
include( $mosConfig_absolute_path .'/offlinebar.php' );
}
if ( !file_exists( $mosConfig_absolute_path .'/templates/'. $cur_template .'/index.php' ) ) {
echo _TEMPLATE_WARN . $cur_template;
} else {
require_once( $mosConfig_absolute_path .'/templates/'. $cur_template .'/index.php' );
echo '<!-- '. time() .' -->';
}
if ($mosConfig_debug) {
echo $database->_ticker . ' queries executed';
echo '<pre>';
foreach ($database->_log as $k=>$sql) {
echo $k+1 . "\n" . $sql . '<hr />';
}
echo '</pre>';
}
doGzip();
?>
|
jperu.com
|
|
|
|
The administrator has disabled public write access.
|
ircmaxell (Admin)
Admin
Posts: 444
|
| Re:BUG in 1.0.8 stable?? 2007/07/27 06:37 |
Karma: 8   |
Change that to (I've modified it properly): | Code: | <?php
define( '_VALID_MOS', 1 );
if (!file_exists( 'configuration.php' ) || filesize( 'configuration.php' ) < 10) {
$self = rtrim( dirname( $_SERVER['PHP_SELF'] ), '/\\' ) . '/';
header("Location: http://" . $_SERVER['HTTP_HOST'] . $self . "installation/index.php" );
exit();
}
require( 'globals.php' );
require_once( 'configuration.php' );
$http_host = explode(':', $_SERVER['HTTP_HOST'] );
if( (!empty( $_SERVER['HTTPS'] ) && strtolower( $_SERVER['HTTPS'] ) != 'off' || isset( $http_host[1] ) && $http_host[1] == 443) && substr( $mosConfig_live_site, 0, 8 ) != 'https://' ) {
$mosConfig_live_site = 'https://'.substr( $mosConfig_live_site, 7 );
}
require_once( 'includes/joomla.php' );
$require_once( 'components/com_page_cache/page_cache.class.php' );
if (file_exists( 'installation/index.php' ) && $_VERSION->SVN == 0) {
define( '_INSTALL_CHECK', 1 );
include ( $mosConfig_absolute_path .'/offline.php');
exit();
}
if ($mosConfig_offline == 1) {
require( $mosConfig_absolute_path .'/offline.php' );
}
$_MAMBOTS->loadBotGroup( 'system' );
$_MAMBOTS->trigger( 'onStart' );
if (file_exists( $mosConfig_absolute_path .'/components/com_sef/sef.php' )) {
require_once( $mosConfig_absolute_path .'/components/com_sef/sef.php' );
} else {
require_once( $mosConfig_absolute_path .'/includes/sef.php' );
}
require_once( $mosConfig_absolute_path .'/includes/frontend.php' );
$option = strval( strtolower( mosGetParam( $_REQUEST, 'option' ) ) );
$Itemid = intval( mosGetParam( $_REQUEST, 'Itemid', null ) );
if ($option == '') {
if ($Itemid) {
$query = "SELECT id, link"
. "\n FROM #__menu"
. "\n WHERE menutype = 'mainmenu'"
. "\n AND id = " . (int) $Itemid
. "\n AND published = 1"
;
$database->setQuery( $query );
} else {
$query = "SELECT id, link"
. "\n FROM #__menu"
. "\n WHERE menutype = 'mainmenu'"
. "\n AND published = 1"
. "\n ORDER BY parent, ordering"
;
$database->setQuery( $query, 0, 1 );
}
$menu = new mosMenu( $database );
if ($database->loadObject( $menu )) {
$Itemid = $menu->id;
}
$link = $menu->link;
if (($pos = strpos( $link, '?' )) !== false) {
$link = substr( $link, $pos+1 ). '&Itemid='.$Itemid;
}
parse_str( $link, $temp );
/** this is a patch, need to rework when globals are handled better */
foreach ($temp as $k=>$v) {
$GLOBALS[$k] = $v;
$_REQUEST[$k] = $v;
if ($k == 'option') {
$option = $v;
}
}
}
if ( !$Itemid ) {
$Itemid = 99999999;
}
$mainframe = new mosMainFrame( $database, $option, '.' );
$mainframe->initSession();
$_MAMBOTS->trigger( 'onAfterStart' );
if ( $option == 'com_content' && $Itemid === 0 ) {
$id = intval( mosGetParam( $_REQUEST, 'id', 0 ) );
$Itemid = $mainframe->getItemid( $id );
}
if ( $Itemid === 0 ) {
$query = "SELECT id"
. "\n FROM #__menu"
. "\n WHERE menutype = 'mainmenu'"
. "\n AND published = 1"
. "\n ORDER BY parent, ordering"
;
$database->setQuery( $query, 0, 1 );
$Itemid = $database->loadResult();
}
if ($option == 'search') {
$option = 'com_search';
}
if ($mosConfig_lang=='') {
$mosConfig_lang = 'english';
}
include_once( $mosConfig_absolute_path .'/language/' . $mosConfig_lang . '.php' );
$return = strval( mosGetParam( $_REQUEST, 'return', NULL ) );
$message = intval( mosGetParam( $_POST, 'message', 0 ) );
if ($option == 'login') {
$mainframe->login();
if ( $message ) {
?>
<script language="javascript" type="text/javascript">
<!--//
alert( "<?php echo addslashes( _LOGIN_SUCCESS ); ?>" );
//-->
</script>
<?php
}
if ( $return && !( strpos( $return, 'com_registration' ) || strpos( $return, 'com_login' ) ) ) {
if (isset( $_COOKIE[mosMainFrame::sessionCookieName()] )) {
mosRedirect( $return );
} else {
mosRedirect( $mosConfig_live_site .'/index.php?option=cookiecheck&return=' . urlencode(
$return ) );
}
} else {
if (isset( $_COOKIE[mosMainFrame::sessionCookieName()] )) {
mosRedirect( $mosConfig_live_site .'/index.php' );
} else {
mosRedirect( $mosConfig_live_site .'/index.php?option=cookiecheck&return=' . urlencode(
$mosConfig_live_site .'/index.php' ) );
}
}
} else if ($option == 'logout') {
$mainframe->logout();
if ( $message ) {
?>
<script language="javascript" type="text/javascript">
<!--//
alert( "<?php echo addslashes( _LOGOUT_SUCCESS ); ?>" );
//-->
</script>
<?php
}
if ( $return && !( strpos( $return, 'com_registration' ) || strpos( $return, 'com_login' ) ) ) {
mosRedirect( $return );
} else {
mosRedirect( $mosConfig_live_site.'/index.php' );
}
} else if ($option == 'cookiecheck') {
if (isset( $_COOKIE[mosMainFrame::sessionCookieName()] )) {
mosRedirect( $return );
} else {
mosErrorAlert( _ALERT_ENABLED );
}
}
$my = $mainframe->getUser();
$mainframe->detect();
global $pageCache;
$pageCache->init();
ob_start("jos_page_cache_store");
$mainframe->set( 'loadOverlib', false );
$gid = intval( $my->gid );
$cur_template = $mainframe->getTemplate();
$_MOS_OPTION = array();
require_once( $mosConfig_absolute_path . '/editor/editor.php' );
ob_start();
if ($path = $mainframe->getPath( 'front' )) {
$task = strval( mosGetParam( $_REQUEST, 'task', '' ) );
$ret = mosMenuCheck( $Itemid, $option, $task, $gid );
if ($ret) {
require_once( $path );
} else {
mosNotAuth();
}
} else {
header( 'HTTP/1.0 404 Not Found' );
echo _NOT_EXIST;
}
$_MOS_OPTION['buffer'] = ob_get_contents();
ob_end_clean();
initGzip();
header( 'Expires: Mon, 26 Jul 1997 05:00:00 GMT' );
header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );
header( 'Cache-Control: no-store, no-cache, must-revalidate' );
header( 'Cache-Control: post-check=0, pre-check=0', false );
header( 'Pragma: no-cache' );
if (defined( '_ADMIN_OFFLINE' )) {
include( $mosConfig_absolute_path .'/offlinebar.php' );
}
if ( !file_exists( $mosConfig_absolute_path .'/templates/'. $cur_template .'/index.php' ) ) {
echo _TEMPLATE_WARN . $cur_template;
} else {
require_once( $mosConfig_absolute_path .'/templates/'. $cur_template .'/index.php' );
echo '<!-- '. time() .' -->';
}
if ($mosConfig_debug) {
echo $database->_ticker . ' queries executed';
echo '<pre>';
foreach ($database->_log as $k=>$sql) {
echo $k+1 . "\n" . $sql . '<hr />';
}
echo '</pre>';
}
doGzip();
ob_end_flush();
?>
|
|
|
|
|
The administrator has disabled public write access.
|
lynnmora (User)
Junior Boarder
Posts: 6
|
| Re:BUG in 1.0.8 stable?? 2007/07/27 18:58 |
Karma: 0   |
Thank you ircmaxell. Thank you very much indeed (I have donated some money for this help)
jperu.com
|
|
|
|
The administrator has disabled public write access.
|
ircmaxell (Admin)
Admin
Posts: 444
|
| Re:BUG in 1.0.8 stable?? 2007/07/27 19:13 |
Karma: 8   |
|
No problem!
|
|
|
|
The administrator has disabled public write access.
|
lynnmora (User)
Junior Boarder
Posts: 6
|
| Re:BUG in 1.0.8 stable?? 2007/07/28 05:00 |
Karma: 0   |
Problems again, sorry for bothering. I uninstalled and installed again, changed the index.php as you requested. But then I got this message when loading the page: | Code: | Fatal error: Call to undefined function: () in /home/xxxxx/public_html/index.php on line 15
|
Any ideas?
jperu.com
|
|
|
|
The administrator has disabled public write access.
|
lynnmora (User)
Junior Boarder
Posts: 6
|
| Re:BUG in 1.0.8 stable?? 2007/07/28 05:06 |
Karma: 0   |
|
Nevermind. I found the problem. You typed $require_once instead of require_once Thanks anyway. Love this Component!
jperu.com
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
|
|
|
|
|
 |
|
 |
|