1
StErMi
help me i can't understand the problem. i can't access to my site HELP
  • 2005/7/27 13:04

  • StErMi

  • Just popping in

  • Posts: 15

  • Since: 2004/10/7


XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run.

this is the error...

how can i resolve this problem? sorry for my bad english

2
davidthomas1
Re: help me i can't understand the problem. i can't access to my site HELP

It sounds like you must put the script inside the XOOPs folder structure.

Are you trying to run an external script on a different site?

or maybe a different folder outside your XOOPS installation?

You may have to put the script inside the XOOPS folder structure.

D.
みんなちがってみんないい。

XOOPS 2.0.13.2

3
StErMi
Re: help me i can't understand the problem. i can't access to my site HELP
  • 2005/7/27 13:09

  • StErMi

  • Just popping in

  • Posts: 15

  • Since: 2004/10/7


i don't know if this morning on 5am i did something that hurt XOOPS system but i'm sure that i didn't upload external scripts or something else like that.

4
davidthomas1
Re: help me i can't understand the problem. i can't access to my site HELP

Try checking your path settings in mainfile.php

Make sure that the XOOPS virtual path and the XOOPS physical path are correct.
みんなちがってみんないい。

XOOPS 2.0.13.2

5
StErMi
Re: help me i can't understand the problem. i can't access to my site HELP
  • 2005/7/27 13:12

  • StErMi

  • Just popping in

  • Posts: 15

  • Since: 2004/10/7


maybe yesterday i erased some folders in XOOPS subfolders and i didn't remember it.. but.. if i did this... which folder/s or file/s ?

6
StErMi
Re: help me i can't understand the problem. i can't access to my site HELP
  • 2005/7/27 13:14

  • StErMi

  • Just popping in

  • Posts: 15

  • Since: 2004/10/7


if ( !defined("XOOPS_MAINFILE_INCLUDED") ) {
    
define("XOOPS_MAINFILE_INCLUDED",1);

    
// XOOPS Physical Path
    // Physical path to your main XOOPS directory WITHOUT trailing slash
    // Example: define('XOOPS_ROOT_PATH', '/membri/music4all');
    
define('XOOPS_ROOT_PATH''/membri/music4all');

    
// XOOPS Virtual Path (URL)
    // Virtual path to your main XOOPS directory WITHOUT trailing slash
    // Example: define('XOOPS_URL', 'http://www.music4all.altervista.org');
    
define('XOOPS_URL''http://www.music4all.altervista.org');

    
define('XOOPS_CHECK_PATH'1);
    
// Protect against external scripts execution if safe mode is not enabled
    
if ( XOOPS_CHECK_PATH && !@ini_get('safe_mode') ) {
        if ( 
function_exists('debug_backtrace') ) {
            
$xoopsScriptPath debug_backtrace();
            if ( !
count($xoopsScriptPath) ) {
                 die(
"XOOPS path check: this file cannot be requested directly");
            }
            
$xoopsScriptPath $xoopsScriptPath[0]['file'];
        } else {
            
$xoopsScriptPath = isset($_SERVER['PATH_TRANSLATED']) ? $_SERVER['PATH_TRANSLATED'] :  $_SERVER['SCRIPT_FILENAME'];
        }
        if ( 
DIRECTORY_SEPARATOR != '/' ) {
            
// IIS6 may double the  chars
            
$xoopsScriptPath str_replacestrpos$xoopsScriptPath'\\') ? '\\' DIRECTORY_SEPARATOR'/'$xoopsScriptPath);
        }
        if ( 
strcasecmpsubstr($xoopsScriptPath0strlen(XOOPS_ROOT_PATH)), str_replaceDIRECTORY_SEPARATOR'/'XOOPS_ROOT_PATH)) ) {
             exit(
"XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run.");
        }
    }


i don't understand in php or XOOPS scripting... plz help me and take a second to read this..

7
davidthomas1
Re: help me i can't understand the problem. i can't access to my site HELP

If you deleted some XOOPS folders, you can upload the same XOOPS version (folder/files) again.

Just overwrite the existing files.

The missing folders/files will be replaced.

If you copy the same XOOPS files again to your server, it should be fine.

The content will stay the same coz it's stored in the database.

Probably best to use the same version. But you could try uploading a newer version too.

Afterwards, try updating your system module in Admin>System>Modules>

hope it helps,

D.
みんなちがってみんないい。

XOOPS 2.0.13.2

8
StErMi
Re: help me i can't understand the problem. i can't access to my site HELP
  • 2005/7/27 13:19

  • StErMi

  • Just popping in

  • Posts: 15

  • Since: 2004/10/7


D. read my last reply plz

9
davidthomas1
Re: help me i can't understand the problem. i can't access to my site HELP

I see two options

1) Check your XOOPS ROOT PATH

It looks a little short. Mine is "/home/ajet/public_html"

But if the rest of your XOOPS installation is working, it must be correct...

2) A quick and dirty solution

Comment out the statement :

if ( strcasecmpsubstr($xoopsScriptPath0strlen(XOOPS_ROOT_PATH)), str_replaceDIRECTORY_SEPARATOR'/'XOOPS_ROOT_PATH)) ) {
             exit(
"XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run.");
        }


by adding comment signs /* and */

i.e

/* if ( strcasecmp( substr($xoopsScriptPath, 0, strlen(XOOPS_ROOT_PATH)), str_replace( DIRECTORY_SEPARATOR, '/', XOOPS_ROOT_PATH)) ) {
             exit("XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run.");
        } */


This is a quick and dirty solution and may make your XOOPS installation less secure. USE AT YOUR OWN RISK!

I'm sorry I can't help more, perhaps someone else can give you more assistance.

D.
みんなちがってみんないい。

XOOPS 2.0.13.2

10
StErMi
Re: help me i can't understand the problem. i can't access to my site HELP
  • 2005/7/27 13:51

  • StErMi

  • Just popping in

  • Posts: 15

  • Since: 2004/10/7


i'm beckuping ftp files... i wish uploading the original files it works well...

i wish...

well..i can only hope ^_^

becoming news soon

Login

Who's Online

364 user(s) are online (319 user(s) are browsing Support Forums)


Members: 0


Guests: 364


more...

Donat-O-Meter

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

Latest GitHub Commits