Installation Issue - Failed to Open Stream
- You cannot open a new topic into this forum
- Guests cannot post into this forum
msg# 1
I just finished installing Protector on my xoops site and recieved the following errors on the top of my page -
Warning: include(home/NAMEOMMITTED/xoops-secure/modules/protector/include/precheck.inc.php) [function.include]: failed to open stream: No such file or directory in /home/NAMEOMMITTED/public_html/index/mainfile.php on line 104
Warning: include() [function.include]: Failed opening 'home/NAMEOMMITTED/xoops-secure/modules/protector/include/precheck.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/NAMEOMMITTED/public_html/index/mainfile.php on line 104
I'm not sure but I'm worried that my host (ipower.com) may have something set up where I can't access files I place in my /home/ directory.
Is this what this error indicates? Is there any other options for me if that's true? If it's not true do you know what I've done wrong?
I've had a phpnuke site hacked in the past and I REALLY don't want to go through being hacked again. :(
Thank you for your help in advance.
Votes:1
Average:10.00
msg# 1.1
Have you installed Version 3 ?
Thus, write XOOPS_TRUST_PATH instead of XOOPS_ROOT_PATH in mainfile.php.
Votes:0
Average:0.00
msg# 1.1.1
Hmm well, I installed 3, & I had written it wrong (as in not 'trust_path'; I was following directions off another site) but even after the repair I got the following errors -
Warning: include(home/NAMEOMITTED/xoops-secure/modules/protector/include/precheck.inc.php) [function.include]: failed to open stream: No such file or directory in /home/NAMEOMITTED/public_html/index/mainfile.php on line 103
Warning: include() [function.include]: Failed opening 'home/NAMEOMITTED/xoops-secure/modules/protector/include/precheck.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/NAMEOMITTED/public_html/index/mainfile.php on line 103
I believe the following are the relavent code areas. Perhaps reviewing them will help you see what I've done wrong.
if ( !defined("XOOPS_MAINFILE_INCLUDED") ) {
define("XOOPS_MAINFILE_INCLUDED",1);
// XOOPS Physical Path
define('XOOPS_ROOT_PATH', '/home/NAMEOMITTED/public_html/index');
// XOOPS Virtual Path (URL)
define('XOOPS_URL', 'http://URL-OMITTED/index');
// XOOPS Trust Path
define('XOOPS_TRUST_PATH', 'home/NAMEOMITTED/xoops-secure');
--- & ----
include XOOPS_TRUST_PATH.'/modules/protector/include/precheck.inc.php' ;
if (!isset($xoopsOption['nocommon']) && XOOPS_ROOT_PATH != '') {
include XOOPS_ROOT_PATH."/include/common.php";
}
include XOOPS_TRUST_PATH.'/modules/protector/include/postcheck.inc.php' ;
}
Thanks for your time!
Votes:0
Average:0.00
msg# 1.1.1.1
Quote:
Telcia wrotes:
// XOOPS Trust Path
define('XOOPS_TRUST_PATH', 'home/NAMEOMITTED/xoops-secure');
You've missed '/' before "home".
Votes:11
Average:10.00