1
ukandrewf
SITE DOWN :(
  • 2009/4/21 15:02

  • ukandrewf

  • Friend of XOOPS

  • Posts: 198

  • Since: 2002/12/2


'Notice: Undefined variable: HTTP_SERVER_VARS in /home/domains/html/index.php on line 25

is pending on this server. Please allow up to two minutes for to become fully active.'

has been like this for 24 hours :(

my site http://www.colournation.com was on an live server then had problems so had to go to a scripting server and then back to a live server.

back on the live server i'm now getting this error.

Any ideas?

2
ghia
Re: SITE DOWN :(
  • 2009/4/21 19:51

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


I doubt waiting will solve anything.
The error is probably introduced, because you are running PHP 4 code on a PHP 5 server. You have an old XOOPS version or a non standard hack. Replace by the _SERVER variable.

3
ukandrewf
Re: SITE DOWN :(
  • 2009/4/21 22:43

  • ukandrewf

  • Friend of XOOPS

  • Posts: 198

  • Since: 2002/12/2


i should be running the latest 2.3.x version of xoops.

I was using the old 1.x.x.x distro on my first live server and this started causing the host problems so they booted me onto a scripting server. Here i had the site working ok and upgraded to 2.3.x. and again all worked fine. Then they moved me back to a live server (different server) and i get this error message.

I really need so help with this one.

It could be caused by a php version problem i can look into this.

Below is what my index file looks like. (line 25 is 'include "mainfile.php";')

/**
 * XOOPS global index file
 *
 * You may not change or alter any portion of this comment or credits
 * of supporting developers from this source code or any supporting source code 
 * which is considered copyrighted (c) material of the original comment or credit authors.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * @copyright       The XOOPS Project http://sourceforge.net/projects/xoops/
 * @license         http://www.fsf.org/copyleft/gpl.html GNU public license
 * @package         core
 * @since           2.0.0
 * @author          Kazumi Ono 
 * @author          Skalpa Keo 
 * @author          Taiwen Jiang 
 * @version         $Id: index.php 2712 2009-01-22 10:06:01Z phppp $
 */
 
/**
 * redirects to installation, if XOOPS is not installed yet
 **/
include "mainfile.php";

//check if start page is defined
if ( isset($xoopsConfig['startpage']) && $xoopsConfig['startpage'] != "" && $xoopsConfig['startpage'] != "--" ) {

    
// Temporary solution for start page redirection
    
define("XOOPS_STARTPAGE_REDIRECTED"1);
    
    global 
$xoopsModuleConfig;
    
$module_handler =& xoops_gethandler('module');
    
$xoopsModule =& $module_handler->getByDirname($xoopsConfig['startpage']);
    if (!
$xoopsModule || !$xoopsModule->getVar('isactive')) {
        include_once 
XOOPS_ROOT_PATH "/header.php";
        echo 
"

_MODULENOEXIST "

"
;
        include_once 
XOOPS_ROOT_PATH "/footer.php";
        exit();
    }
    
$moduleperm_handler =& xoops_gethandler('groupperm');
    if (
$xoopsUser) {
        if (!
$moduleperm_handler->checkRight('module_read'$xoopsModule->getVar('mid'), $xoopsUser->getGroups())) {
            
redirect_header(XOOPS_URL1_NOPERMfalse);
            exit();
        }
        
$xoopsUserIsAdmin $xoopsUser->isAdmin($xoopsModule->getVar('mid'));
    } else {
        if (!
$moduleperm_handler->checkRight('module_read'$xoopsModule->getVar('mid'), XOOPS_GROUP_ANONYMOUS)) {
            
redirect_header(XOOPS_URL "/user.php"1_NOPERM);
            exit();
        }
    }
    if (
$xoopsModule->getVar('hasconfig') == || $xoopsModule->getVar('hascomments') == || $xoopsModule->getVar'hasnotification' ) == 1) {
        
$xoopsModuleConfig $config_handler->getConfigsByCat(0$xoopsModule->getVar('mid'));
    }
    
    
chdir'modules/' $xoopsConfig['startpage'] . '/' );
    
xoops_loadLanguage('main'$xoopsModule->getVar('dirname''n'));
    
$parsed parse_url(XOOPS_URL);
    
$url = isset($parsed['scheme']) ? $parsed['scheme'].'://' 'http://';
    if ( isset( 
$parsed['host'] ) ) {
        
$url .= $parsed['host'];
        if ( isset( 
$parsed['port'] ) ) {
            
$url .= ':' $parsed['port'];
        }
    } else {
        
$url .= $_SERVER['HTTP_HOST'];
    }
    
    
$_SERVER['REQUEST_URI'] = substr(XOOPS_URLstrlen($url)) . '/modules/' $xoopsConfig['startpage'] . '/index.php';
    include 
XOOPS_ROOT_PATH '/modules/' $xoopsConfig['startpage'] . '/index.php';
    exit();
} else {
    
$xoopsOption['show_cblock'] =1;
    
$xoopsOption['template_main'] = "db:system_homepage.html";
    include 
"header.php";
    include 
"footer.php";
}
?>


and the mainfile.php looks a bit like this (edited on paths for security).
// XOOPS Physical Paths

    // Physical path to the XOOPS documents (served) directory WITHOUT trailing slash
    
define'XOOPS_ROOT_PATH''/physicalpathtomysite/colournation.com/user/htdocs' );

    
// For forward compatibility
    // Physical path to the XOOPS library directory WITHOUT trailing slash
    
define'XOOPS_PATH''/physicalpathtomysite/colournation.com/user/htdocs/xoops_lib' );
    
// Physical path to the XOOPS datafiles (writable) directory WITHOUT trailing slash
    
define'XOOPS_VAR_PATH''/physicalpathtomysite/colournation.com/user/htdocs/xoops_data' );
    
// Alias of XOOPS_PATH, for compatibility, temporary solution
    
define("XOOPS_TRUST_PATH"XOOPS_PATH);

    
// XOOPS Virtual Path (URL)
    // Virtual path to your main XOOPS directory WITHOUT trailing slash
    // Example: define( 'XOOPS_URL', 'http://www.colournation.com' );
    
define'XOOPS_URL''http://www.colournation.com' );


and can you confirm that this is the look for mailnfile.php for the latest version 2.3.x of xoops?

Last time to swap servers all i had to do was to change the physical path and it all worked again.

Andrew

4
ghia
Re: SITE DOWN :(
  • 2009/4/22 0:12

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Index file and the showed part of the mainfile looks ok.
You have upgraded your XOOPS to 2.3.3?
Did you run the file check (see release notes)? (For upgrade there might some errors, which is normal, due to the upgrade instructions.)

5
ukandrewf
Re: SITE DOWN :(
  • 2009/4/22 8:00

  • ukandrewf

  • Friend of XOOPS

  • Posts: 198

  • Since: 2002/12/2


this upgrade to 2.3.3 was all working perfectly on the scripting server after upgrade. It only brok when it moved back to the live server.

Andrew

6
ghia
Re: SITE DOWN :(
  • 2009/4/22 8:18

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


When moving sites you have to empty the cache and template directories (except index.html) and also the sessions table in the db.

7
ukandrewf
Re: SITE DOWN :(
  • 2009/4/22 9:10

  • ukandrewf

  • Friend of XOOPS

  • Posts: 198

  • Since: 2002/12/2


i didn't have to do that last time when moving from live site to the scripting server can you explain or point me at an explanation of the steps needed to do this.

also they put me on a load balanced server spreading my site across three servers - could this be causing a problem? They have switched me back off this but I'm not sure if it has happened yet - certainly site is still not working.

Andrew

8
ghia
Re: SITE DOWN :(
  • 2009/4/22 9:42

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


I think load balancing is not suitable for XOOPS sites. If set up right it could work. But I assume, it is better to avoid its use.
A simple shared hosting will do the job.
For more info about moving sites see this FAQ and some posts in the forum you can find by searching for 'mov server' or 'local'.


9
ukandrewf
Re: SITE DOWN :(
  • 2009/4/22 11:36

  • ukandrewf

  • Friend of XOOPS

  • Posts: 198

  • Since: 2002/12/2


To update a little my quest, when they truned off the load balancing they changed my server which explains part of the problem. I realised this when instead of using http://www.colournation.com to access I used the backdoor pre-dns update path which looked a bit like http://www.domainx876.myhostingcompany.com this showed a different error to the line 25 shown at the top of this tread. it showed xoops_path error which made me double check the server link i had been given - and see taht the server had changed.

I updated my mainfile.php and still got the same 'line 25' error on http://www.colournation.com but using the backdoor url as above i now got...

This page cannot be displayed due to an internal error.

You can provide the following information to the administrators of this site to help them solve the problem:

ErrorSmarty errorunable to write to $cache_dir '/myhost/c/colournation.com/user/htdocs/xoops_data/caches/smarty_cache'Be sure $cache_dir is writable by the web server user.

Backtrace:
/class/
smarty/Smarty.class.php (1092
/class/
smarty/internals/core.write_cache_file.php (81
/class/
smarty/Smarty.class.php (1278
/class/
theme_blocks.php (144
/class/
theme_blocks.php (97
/class/
theme_blocks.php (38
/class/
theme.php (250
/class/
theme.php (75
/
header.php (66
/
index.php (78)


Now a thread on this subject on the form said to chmod the directories to 777 (currently 755).
But when i try to do this i get.
'An error occured modifiying 'xoops_data': 550 COLUD NOT CHANGE PERMS ON XOOPS_DATA: BAD FILE DESCRIPTOR'

I've informed my hosting company and tried other folders which gave the same error.

This suggests i hope some problem with my hosting setup which isn't allowing chmod and hopefully when fixed and i change to 777 all might work (BIG FINGERS CROSSED).

Andrew

10
ukandrewf
Re: SITE DOWN :(
  • 2009/4/22 13:40

  • ukandrewf

  • Friend of XOOPS

  • Posts: 198

  • Since: 2002/12/2


my hosting company is now telling me to use PuTTY to 'ssh' into my server and do the chmod on the folders I want. I am clueless about all this and annoyed that my normall ftp client can't do the chmod themselves (Dopus and LeechFTP).

Any help and syntax i'd need to do type to chmod the following locations appreciated.
Xoops_data chmod 777
xoops_data/caches/ chmod 777
xoops_data/caches/smarty_cache chmod 777

(do we think these three folders will be enough?)

Reading another thread https://xoops.org/modules/newbb/viewtopic.php?topic_id=67949&forum=1&post_id=308523#forumpost308523 it appears that if i could just do the chmod I should be back up.

Andrew

Login

Who's Online

329 user(s) are online (261 user(s) are browsing Support Forums)


Members: 0


Guests: 329


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits