Page 1 of 1

Everything was OK... now errors

Posted: Mon 23. Aug 2004, 15:47
by naabu
Hi

I am in desperate need of help, my site design was finished a week ago and when I have come back to it now it is showing erros, but nothing has changed.

http://www.naughtycharlotte.com

Warning: main(/home/virtual/site1/fst/var/www/html/include/inc_front/content.article.inc.php): failed to open stream: No such file or directory in /var/www/html/include/inc_front/content.func.inc.php on line 186

Warning: main(): Failed opening '/home/virtual/site1/fst/var/www/html/include/inc_front/content.article.inc.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in /var/www/html/include/inc_front/content.func.inc.php on line 186


The files do exist and the permissions are set as they were when it was working a week ago.

Any ideas?

Thanx

Posted: Mon 23. Aug 2004, 15:56
by Pappnase
hello

in your errormessage you see 2 different pathes to the file!
so there is again an pathproblem!

please post your conf.inc.php again without passwords!

Posted: Mon 23. Aug 2004, 16:02
by pSouper
have you been changin your php.ini?
or moved/changed/deleted your php's tmp_dir loctation.

Posted: Mon 23. Aug 2004, 16:17
by naabu
nope... this is the thing just went to see it today and errors...

which is kind of a pain as i have been showing people the site... and obviously not realising the errors...

the thing thats foxing me is why the errors have appeared...

what would i need to change to get it working again...

thanks
james

Posted: Mon 23. Aug 2004, 16:33
by pSouper
check the exisitance & read/write for your .:/php/includes:/usr/share/php/ dir
not sure if a colon in a path name is good though ( /includes:/ )

Re: Everything was OK... now errors

Posted: Mon 23. Aug 2004, 16:39
by Pappnase
naabu wrote: Warning: main(/home/virtual/site1/fst/var/www/html/include/inc_front/content.article.inc.php): failed to open stream: No such file or directory in /var/www/html/include/inc_front/content.func.inc.php on line 186

Warning: main(): Failed opening '/home/virtual/site1/fst/var/www/html/include/inc_front/content.article.inc.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in /var/www/html/include/inc_front/content.func.inc.php on line 186
please check your conf.inc.php

your document_root.php says the following!

Code: Select all

phpwcms DOCUMENT_ROOT test

This file has to be placed in your web root - do not
put it into any subdir of your webspace

1) your default $_SERVER['DOCUMENT_ROOT']: /var/www/html
2) real DOCUMENT_ROOT based on this file : /var/www/html

If (1) and (2) not equal then add following
line at the end of your conf.inc.php but before ending "?>":

$_SERVER['DOCUMENT_ROOT'] = '/var/www/html';

Check if this is corresponding with the subdir
in which phpwcms is installed:

$phpwcms['root'] = "";

If so - everything is fine too, also if this is empty.
Maybe some leading/ending slash "/" is there.
That's no problem here, but remove leading or
ending slashes. Do never use the backslash ""
in paths on Windows - this may fail.

Posted: Mon 23. Aug 2004, 17:48
by Oliver Georgi
maybe your provider has changed something.

Should not be neccessary to set $_SERVER['DOCUMENT_ROOT'] for your install.

Oliver

Posted: Mon 23. Aug 2004, 17:56
by pSouper
It may be quicker to just upload phpwcms again: just the files not the DB.
(you should lose nothing if you backup first)

you won't get the exact answer but if it is a missing or corrupt file you will know that for sure, right?

Posted: Mon 23. Aug 2004, 18:12
by Pappnase
Oliver Georgi wrote:maybe your provider has changed something.

Should not be neccessary to set $_SERVER['DOCUMENT_ROOT'] for your install.

Oliver
hello oli

thanks for you add to my thread! that was what i mean! cos before he was at another server and now the domain is on its own space! so i think he has in the conf.inc.php the old document_root settings