1
fbcarter
Re: Installation 2.53 but Admin page is blank.
  • 2011/10/8 22:59

  • fbcarter

  • Just popping in

  • Posts: 13

  • Since: 2009/6/11


The only other thing I had to do was to add a function in modules/system/class/cpanel.php


function XoopsSystemCpanel()
    {
        
$this->__construct();
    }



so far...



2
fbcarter
Re: Installation 2.53 but Admin page is blank.
  • 2011/10/8 16:17

  • fbcarter

  • Just popping in

  • Posts: 13

  • Since: 2009/6/11


My system

PHP version 4.4.9
MySQL version 4.1.22-standard
Architecture i686
Operating system linux
Perl version 5.8.8

Seems the PHP version is the problem. I will see if the hosting company can udate it. Thanks for all your help.



3
fbcarter
Re: Installation 2.53 but Admin page is blank.
  • 2011/10/8 15:07

  • fbcarter

  • Just popping in

  • Posts: 13

  • Since: 2009/6/11


I have looked deeper and I have it but do not know what to do about it.

function xoops_cp_header()
{
    
xoops_load('cpanel''system'); 
    
$cpanel =& XoopsSystemCpanel::getInstance();
    echo 
'xoops_cp_header()<br>'//farley
    
$cpanel->gui->header();
}

The problem is in the XoopsSystemCpanel::getInstance()

function &getInstance()
    {
        static 
$instance;
        if (!isset(
$instance)) {
            
$class __CLASS__;
echo 
'$class.'<br>'; //farley
            $instance = new $class();
        }
        return $instance; 
    }

On my local system (working) $class = XoopsSystemCpanel
On the non working online system $class = xoopssystemcpanel

Now I just need to know how to resolve this. The thing I do not know not knowing enough about php is where __CLASS__ is coming from.



4
fbcarter
Re: Installation 2.53 but Admin page is blank.
  • 2011/10/8 14:29

  • fbcarter

  • Just popping in

  • Posts: 13

  • Since: 2009/6/11


In going to the header method I put in an echo:

function header()
    {
        echo 
'default.header<br>'//farley
        
parent::header();

When testing I never reached here. So I went back and looked at the calling cp_functions.php

function xoops_cp_header()
{
    
xoops_load('cpanel''system'); 
    
$cpanel =& XoopsSystemCpanel::getInstance();
    echo 
'xoops_cp_header()<br>'//farley
    
$cpanel->gui->header();
}

and traced through xoops_load and in there through loadModule('cpanel','system');

function loadModule($name$dirname null)
    {
echo 
'1.0<br>'//farley
        
if (empty($dirname)) {
echo 
'1.1<br>'//farley
            
return false;
echo 
'1.2<br>'//farley
        
}
echo 
'1.3<br>'//farley
        
if (file_exists($file XOOPS_ROOT_PATH '/modules/' $dirname '/class/' $name '.php')) {
echo 
'1.4<br>'//farley
            
include $file;
echo 
'1.5 '.ucfirst($dirname) . ucfirst($name).'<br>'//farley
            
if (class_exists(ucfirst($dirname) . ucfirst($name))) {
echo 
'1.6<br>'//farley
                
return true;
echo 
'1.7<br>'//farley
            
}
echo 
'1.8<br>'//farley
        
}
echo 
'1.9<br>'//farley
        
return false;
echo 
'1.10<br>'//farley
    
}

Now my screen looks like this:

[b]1.0
1.3
1.4
1.5 SystemCpanel
1.8
1.9

xoops_cp_header()
[/b]

Which means the class does not exist. and false is returned. I would hav expected the class to be XoopsSystemCpanel?



5
fbcarter
Re: Installation 2.53 but Admin page is blank.
  • 2011/10/8 2:48

  • fbcarter

  • Just popping in

  • Posts: 13

  • Since: 2009/6/11


I completed the install with the same effect. admin.php generates a blank page.

I put a few echos in the source to try to track it down further. I am not an expert at php so have only got so far. The program runs through admin.php to line 33: xoops_cp_header();

in cp_functions.php it runs xoops cp_header() see snippet below.

function xoops_cp_header()
{
    
xoops_load('cpanel''system');
    
$cpanel =& XoopsSystemCpanel::getInstance();
    echo 
'1';
    
$cpanel->gui->header();
    echo 
'4';
}


I get a '1' on the screen but not a 4. I am using the default backend so it should be setting up an instance of XoopsGuiDefault But I have not been able to locate where $cpanel->gui->header(); takes the program. I have looked in both modules\system\themes\default\default.php and modules\system\class\gui.php



6
fbcarter
Re: Installation 2.53 but Admin page is blank.
  • 2011/10/7 22:32

  • fbcarter

  • Just popping in

  • Posts: 13

  • Since: 2009/6/11


I uninstalled everything then uploaded again and ran chechum.php.

The only error was:

./class/mail/phpmailer/language/phpmailer.lang-fo.php content invalid

I reuploaded this file and got the same error running checksum again.



7
fbcarter
Re: Installation 2.53 but Admin page is blank.
  • 2011/10/7 20:57

  • fbcarter

  • Just popping in

  • Posts: 13

  • Since: 2009/6/11


THanks I will try that...



8
fbcarter
Re: Installation 2.53 but Admin page is blank.
  • 2011/10/7 19:07

  • fbcarter

  • Just popping in

  • Posts: 13

  • Since: 2009/6/11


I have

system
profile
pm
protector

installed so far. Just what came with it.



9
fbcarter
Re: Installation 2.53 but Admin page is blank.
  • 2011/10/7 18:15

  • fbcarter

  • Just popping in

  • Posts: 13

  • Since: 2009/6/11


I turned on DEBUG MODE 1
-----
None All Errors (0) Deprecated (0) Queries (10) Blocks (0) Extra (1) Timers(3)
Errors
Deprecated
Queries
0.000141 - SET NAMES 'utf8'
0.000077 - SET SQL_BIG_SELECTS = 1
0.001216 - SELECT * FROM config WHERE (conf_modid = '0' AND conf_catid = '1') ORDER BY conf_order ASC
0.000401 - SELECT sess_data, sess_ip FROM session WHERE sess_id = 'e26a465401e55c43bfe0940051c21ff5'
0.000365 - SELECT * FROM users WHERE uid = '1'
0.000270 - UPDATE users SET last_login = '1318010889' WHERE uid = 1
0.000738 - DELETE FROM protector_access WHERE expire < UNIX_TIMESTAMP()
0.000262 - SELECT COUNT(*) FROM protector_access WHERE ip='67.212.3.162' AND request_uri='/admin.php'
0.000161 - SELECT COUNT(*) FROM protector_access WHERE ip='67.212.3.162'
0.000235 - INSERT INTO protector_access SET ip='67.212.3.162',request_uri='/admin.php',expire=UNIX_TIMESTAMP()+'60'
Total: 10
Blocks
Total: 0
Extra
Included files: 55 files
Timers
XOOPS took 0.077 seconds to load.
XOOPS Boot took 0.062 seconds to load.
Module init took 0.015 seconds to load.
---

Debug Mode 2
-----
Blank White

Debug Mode 3
-----
Blank White.


From this I see that there are no errors?



10
fbcarter
Installation 2.53 but Admin page is blank.
  • 2011/10/6 23:16

  • fbcarter

  • Just popping in

  • Posts: 13

  • Since: 2009/6/11


I just installed 2.53 and when I click on the Administration menu option. I get a blank page.

Any help would be greatly appreciated.

Farley




TopTop
(1) 2 »



Login

Who's Online

219 user(s) are online (153 user(s) are browsing Support Forums)


Members: 0


Guests: 219


more...

Donat-O-Meter

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

Latest GitHub Commits