PEAK XOOPS - Blank screen after install in englishin japanese

Blank screen after install

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2005/4/4 11:29
harvester  ÆóÅùʼ   Posts: 4
I have installed the protector module for xoops v.2.0.9.3
All seemed to go well but when I try and access my site only a blank screen comes up. No error messages.
I can get into the admin section by going to /admin.php but the rest of my site is just comming up blank.

I turned on php debugging and I am getting this error message:

Warning [PHP]: Cannot modify header information - headers already sent by (output started at /home/----/public_html/mainfile.php:112) in file index.php line 39

I have tryed to uninstall the protector module but I still only get a blank screen on every part of my site exept the admin section.
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2005/4/4 13:18
GIJOE  ÀèǤ·³Áâ   Posts: 4110
hi harvester.

Perhaps you did a wrong patching into mainfile.php
Do you have mainfile.php before patching?

Else, check mainfile.php by yourself carefully.
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2005/4/4 15:29
harvester  ÆóÅùʼ   Posts: 4
I have reverted the mainfile.php back to original state and uninstalled the protector module. But i'm still having the same problem.
Here is my original mainfile.php:

define('XOOPS_GROUP_ADMIN', '1');
define('XOOPS_GROUP_USERS', '2');
define('XOOPS_GROUP_ANONYMOUS', '3');

if (!isset($xoopsOption['nocommon'])) {
include XOOPS_ROOT_PATH."/include/common.php";
}

}
?>

And this is what I had changed it to:

define('XOOPS_GROUP_ADMIN', '1');
define('XOOPS_GROUP_USERS', '2');
define('XOOPS_GROUP_ANONYMOUS', '3');

include( XOOPS_ROOT_PATH . '/modules/protector/include/precheck.inc.php' ) ;
if (!isset($xoopsOption['nocommon']) && XOOPS_ROOT_PATH != '' ) {
include XOOPS_ROOT_PATH."/include/common.php";
}
include( XOOPS_ROOT_PATH . '/modules/protector/include/postcheck.inc.php' ) ;



}
?>

Also I found out that I can reach the other parts of the page alright. I just have to type in the whole extention, like /modules/news/ or /modules/newbb/ etc. etc. but typeing in just the root url takes me to a blank page.
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2005/4/4 15:41
GIJOE  ÀèǤ·³Áâ   Posts: 4110
You should check the end of file.
Perhaps you can find another LF after ?>
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2005/4/5 11:27
harvester  ÆóÅùʼ   Posts: 4
Nope...There is nothing after the ?> at the bottom of the mainfile.php
Also, I'm not sure if it makes any difference or not but I installed the module while the site was closed down.

Just some extra info:
I noticed that it says to have the block on the top left and accessable to all groups. The protector mod doesn't show up as a block for any groups. I can only give admin permissions for the module, not block access rights.

It seems that the only page that is having any problems is /index.php, I have the news module as my start page. I have tryed to change the start page to differant modules like downloads and forums but with the same result.
I also checked to make sure that the root path to my xoops install in the mainfile.php is still correct and it is as it should be.

This is very strange...I have uninstalled and reinstalled the module and reverted the code on the mainfile.php many times but no change.

This is what the security advisor section of the protector module says:

'register_globals' : off ok

'allow_url_fopen' : on Not secure
This setting allows attackers to execute arbitrary scripts on remote servers.
Only administrator can change this option.
If you are an admin, edit php.ini or httpd.conf.
Sample of httpd.conf:
php_admin_flag allow_url_fopen off
Else, claim it to your administrators.

'XOOPS_DB_PREFIX' : --- ok
Go to prefix manager

'mainfile.php' : patched ok

'Password for rescue' : ok

My page was recently hacked into and when I asked for help in the xoops forums it was suggested that I install this mod. Maybe I should put a message to all who connect to my page that there is no need to hack into this web page...I can mess it up on my own
Votes:1 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2005/4/5 17:31
GIJOE  ÀèǤ·³Áâ   Posts: 4110
Though I don't read whole of your post...
Quote:
(output started at /home/----/public_html/mainfile.php:112)
this message means that you make some typos in mainfile.php near line 112.
Votes:0 Average:0.00

question Re: Blank screen after install

msg# 1.1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2005/4/6 12:14
harvester  ÆóÅùʼ   Posts: 4
line 112 was the last line of mainfile.php
There was no more text after ?> only blank lines...so I deleted all of the blank lines up to the ?> and it fixed the problem...Thanks for all your help and thanks for the great protection module.
Votes:0 Average:0.00

question Re: Blank screen after install

msg# 1.1.1.1.1.1.1.1
Previous post - Next post | Parent - No child | Posted on 2005/4/6 12:53
GIJOE  ÀèǤ·³Áâ   Posts: 4110
Do you read my advise carefully?

I've already written
Quote:
You should check the end of file.
Perhaps you can find another LF after ?>

Or, don't you know the meaning of LF?
Votes:1 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!