Topic: invalid $DOM_SCRIPT

weird..  i have

$DOM_SCRIPT = $_SERVER['SERVER_NAME']; // --> mysite.com
$PATH_SERVER = $_SERVER['DOCUMENT_ROOT']; // --> /public_html (pssst.. NO ENDING SLASH!)

    // example:
    # $DOM_SCRIPT = 'mysite.com';
    # $PATH_SERVER = '/public_html'; 
    /* Btw, you can check this values by uncommenting this: */
    echo 'DOM: '.$DOM_SCRIPT.' - PATH: '.$PATH_SERVER;

note that echo is not commented and it returns:

DOM: www.image-bb.org - PATH: /home/86412/domains/image-bb.org/html

so my settings now are...

$DOM_SCRIPT = $_SERVER['www.image-bb.org']; // --> mysite.com
$PATH_SERVER = $_SERVER['/home/86412/domains/image-bb.org/html']; // --> /public_html (pssst.. NO ENDING SLASH!)

but, i get the following errors

Critital error: Invalid $DOM_SCRIPT, edit it manually in config.php

Last edited by philhxc (01/16/2010 21:08:00)

Thumbs up Thumbs down

Re: invalid $DOM_SCRIPT

philhxc wrote:

weird..  i have

$DOM_SCRIPT = $_SERVER['SERVER_NAME']; // --> mysite.com
$PATH_SERVER = $_SERVER['DOCUMENT_ROOT']; // --> /public_html (pssst.. NO ENDING SLASH!)

    // example:
    # $DOM_SCRIPT = 'mysite.com';
    # $PATH_SERVER = '/public_html'; 
    /* Btw, you can check this values by uncommenting this: */
    echo 'DOM: '.$DOM_SCRIPT.' - PATH: '.$PATH_SERVER;

note that echo is not commented and it returns:

DOM: www.image-bb.org - PATH: /home/86412/domains/image-bb.org/html

so my settings now are...

$DOM_SCRIPT = $_SERVER['www.image-bb.org']; // --> mysite.com
$PATH_SERVER = $_SERVER['/home/86412/domains/image-bb.org/html']; // --> /public_html (pssst.. NO ENDING SLASH!)

but, i get the following errors

Critital error: Invalid $DOM_SCRIPT, edit it manually in config.php

Do it like so:

$DOM_SCRIPT = "www.image-bb.org"; // --> mysite.com
$PATH_SERVER = "/home/86412/domains/image-bb.org/html"; // --> /public_html (pssst.. NO ENDING SLASH!)

Thumbs up Thumbs down

Re: invalid $DOM_SCRIPT

gamerlv wrote:
philhxc wrote:

weird..  i have

$DOM_SCRIPT = $_SERVER['SERVER_NAME']; // --> mysite.com
$PATH_SERVER = $_SERVER['DOCUMENT_ROOT']; // --> /public_html (pssst.. NO ENDING SLASH!)

    // example:
    # $DOM_SCRIPT = 'mysite.com';
    # $PATH_SERVER = '/public_html'; 
    /* Btw, you can check this values by uncommenting this: */
    echo 'DOM: '.$DOM_SCRIPT.' - PATH: '.$PATH_SERVER;

note that echo is not commented and it returns:

DOM: www.image-bb.org - PATH: /home/86412/domains/image-bb.org/html

so my settings now are...

$DOM_SCRIPT = $_SERVER['www.image-bb.org']; // --> mysite.com
$PATH_SERVER = $_SERVER['/home/86412/domains/image-bb.org/html']; // --> /public_html (pssst.. NO ENDING SLASH!)

but, i get the following errors

Critital error: Invalid $DOM_SCRIPT, edit it manually in config.php

Do it like so:

$DOM_SCRIPT = "www.image-bb.org"; // --> mysite.com
$PATH_SERVER = "/home/86412/domains/image-bb.org/html"; // --> /public_html (pssst.. NO ENDING SLASH!)

did the edits and i get the same error

Thumbs up Thumbs down

Re: invalid $DOM_SCRIPT

It seems that I need to release a new version sad

Re: invalid $DOM_SCRIPT

I have the same issue BUT
when I first uploaded chevereto_nb1.7 I put it in a test folder on my remote server.
Everything worked fine, edited everything to my liking and everything good.

I copied the files to another folder where it would be run live and I get the error.
Same files, same server except for different folders

WORKS:
DOM: www.artistmean.com - PATH: /home1/drafthor/public_html/artistmean

DOES NOT WORK:
DOM: images.dhv.com - PATH: /home1/drafthor/public_html/phpBB2/Chevereto

DOES WORK (with redirect of subdomain to PATH):
DOM: images.dhv.com - PATH: /home1/drafthor/public_html/phpBB2/gallery

Last edited by Logman (02/02/2010 17:27:54)

Thumbs up Thumbs down

Re: invalid $DOM_SCRIPT

is the problem with sub domains?
because if I move the non working folder of Chevereto into the phpbb2 folder and redirect the subdomain to its folder the page works fine (no invalid $DOM_SCRIPT error). Just errors when I connect directly threw a sub domain

I really like your product btw smile

Thumbs up Thumbs down