PEAK XOOPS - Installation Issue - Failed to Open Stream in englishin japanese

Installation Issue - Failed to Open Stream

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2007/2/19 5:28
Telcia  ÆóÅùʼ   Posts: 2
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
Previous post - Next post | Parent - Children.1 | Posted on 2007/2/20 5:15 | Last modified
GIJOE  ÀèǤ·³Áâ   Posts: 4110
Have you installed Version 3 ?

Thus, write XOOPS_TRUST_PATH instead of XOOPS_ROOT_PATH in mainfile.php.
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2007/2/21 0:49 | Last modified
Telcia  ÆóÅùʼ   Posts: 2
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
Previous post - Next post | Parent - No child | Posted on 2007/2/21 3:32
GIJOE  ÀèǤ·³Áâ   Posts: 4110
Quote:

Telcia wrotes:
// XOOPS Trust Path
define('XOOPS_TRUST_PATH', 'home/NAMEOMITTED/xoops-secure');
You've missed '/' before "home".
Votes:11 Average:10.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!