Page 1 of 1

Code shows up in a public page

Posted: Tue 20. Dec 2005, 16:47
by carstenlegaard
"Warning: main(): Unable to access /var/www/senvinet.dk/public_html/phpwcms/include/inc_ext/ss_image/ss_image.class.php in /var/www/senvinet.dk/public_html/include/inc_lib/imagick.convert.inc.php on line 34

Warning: main(/var/www/senvinet.dk/public_html/phpwcms/include/inc_ext/ss_image/ss_image.class.php): failed to open stream: No such file or directory in /var/www/senvinet.dk/public_html/include/inc_lib/imagick.convert.inc.php on line 34

Warning: main(): Failed opening '/var/www/senvinet.dk/public_html/phpwcms/include/inc_ext/ss_image/ss_image.class.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/senvinet.dk/public_html/include/inc_lib/imagick.convert.inc.php on line 34"


These lines became public on my indexpage yesterday. The reason is that I changed location for the phpwcms-installation from the directory 'phpwcms' to the root level of the webserver.
Now, what I do I have to do to wipe out those lines? Is it a question of giving access rights or do I have to delete certain files? I can't read that out the context ...

Posted: Tue 20. Dec 2005, 16:55
by flip-flop
Hi carstenlegaard,

1.26CVS/DEV?
have you set all folder/file permissions?
Is it a new installation at root?
You have changed your config.inc.php?

/

Code: Select all

/ site values
$phpwcms["site"]              = "http://www.mydomain.tld/";
$phpwcms["admin_email"]       = "webmaster@mydomain.tld";

// paths
$phpwcms["DOC_ROOT"]          = $_SERVER['DOCUMENT_ROOT'];
$phpwcms["root"]        	     = "";         //default: "" 
Gruß Knut

Posted: Tue 20. Dec 2005, 16:56
by jscholtysik
Hi carstenlegaard,


how did your conf.inc.php look before the move and now?

Did you adjust the settings?


Joachim

Posted: Tue 20. Dec 2005, 19:52
by carstenlegaard
I did not change any settings in the conf.inc.php, and maybe that's the trouble. Maybe, rather than gambling with codes, I should reinstall phpWCMS at root level and start all over (my website contains only two pages untill now)?

Posted: Tue 20. Dec 2005, 21:03
by DeXXus
carstenlegaard wrote:I did not change any settings in the conf.inc.php, and maybe that's the trouble. Maybe, rather than gambling with codes, I should reinstall phpWCMS at root level and start all over (my website contains only two pages untill now)?
It appears you have ~already~ installed it "at root level":
This line is the path of the script that's running:
/var/www/senvinet.dk/public_html/include/inc_lib/imagick.convert.inc.php on line 34
This is the path of the script being called (it can't be found because it's not ~at~ that path)
Unable to access /var/www/senvinet.dk/public_html/phpwcms/include/inc_ext/ss_image/ss_image.class.php
You have specified "phpwcms" as your $phpwcms["root"] in "config.inc.php" but it appears that you copied the files (installed phpWCMS) to your root. If so, try what fli-flop suggested:

Code: Select all

/ site values 
$phpwcms["site"]              = "http://www.senvinet.dk/"; 
$phpwcms["admin_email"]       = "webmaster@senvinet.dk"; 

// paths 
$phpwcms["DOC_ROOT"]          = $_SERVER['DOCUMENT_ROOT']; 
$phpwcms["root"]                = "";         //default: ""