Everything was OK... now errors

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
naabu
Posts: 29
Joined: Thu 12. Aug 2004, 15:08

Everything was OK... now errors

Post 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
Pappnase

Post 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!
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

have you been changin your php.ini?
or moved/changed/deleted your php's tmp_dir loctation.
naabu
Posts: 29
Joined: Thu 12. Aug 2004, 15:08

Post 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
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post 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:/ )
Pappnase

Re: Everything was OK... now errors

Post 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.
User avatar
Oliver Georgi
Site Admin
Posts: 9936
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

maybe your provider has changed something.

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

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post 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?
Pappnase

Post 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
Post Reply