When I try and update the page layout, I am getting the following
Warning: fopen("/usr/local/psa/home/vhosts/christchurchurc.me.uk/httpdocs/include/inc_conf/conf.pagelayout.inc.php", "w+b") - Permission denied in /usr/local/psa/home/vhosts/christchurchurc.me.uk/httpdocs/include/inc_lib/general.inc.php on line 713
Warning: Cannot add header information - headers already sent by (output started at /usr/local/psa/home/vhosts/christchurchurc.me.uk/httpdocs/include/inc_lib/general.inc.php:713) in /usr/local/psa/home/vhosts/christchurchurc.me.uk/httpdocs/include/inc_act/act_pagelayout.php on line 144
Any ideas guys - this is a totally fresh install
Thanks!
Problem with page layout
Re: Problem with page layout
File permissions seem incorrect for "/include/inc_conf/" directory. Script cannot write to "conf.pagelayout.inc.php" on line 713 using this function:PeterJ wrote:When I try and update the page layout, I am getting the following
Warning: fopen("/usr/local/psa/home/vhosts/christchurchurc.me.uk/httpdocs/include/inc_conf/conf.pagelayout.inc.php", "w+b") - Permission denied in /usr/local/psa/home/vhosts/christchurchurc.me.uk/httpdocs/include/inc_lib/general.inc.php on line 713
Any ideas guys - this is a totally fresh install
Thanks!
Code: Select all
function write_textfile($filename, $text) {
if($fp = fopen($filename, "w+b")) {;
fwrite($fp, $text);
fclose($fp);
return true;
} else {
return false;
}
}
http://www.phpwcms.de/index.php?id=10,0,0,1,0,0
Code: Select all
you have to check access rights for special files and folders.
1) DIR phpwcms_tmp/thumb_list 777
2) DIR phpwcms_tmp/thumb_preview 777
3) DIR phpwcms_ftp 755
4) DIR phpwcms_filestorage 777
5) DIR content/images 777
6) FILE setup/setup.conf.inc.php 666
7) FILE phpwcms_template/inc_css/frontend.css 666
8) FILE include/inc_conf/conf.pagelayout.inc.php 666
All other files listed above can set to 644, directories to 755. Sometimes it can help to set mode to 766 for the following directories: phpwcms_tmp, phpwcms_template, phpwcms_ftptakeover, inc_css, content. If you have further access problems try to set all files and directories to 777 (not recommend).