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.
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.
You should check the end of file.
Perhaps you can find another LF after ?>
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
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.
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.
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?