Could anyone please help me with the following error?
This error comes from our server error log file. There are lines and lines of the same error.
******************************
[Tue Jan 19 12:19:09 2010] [error] [client 80.101.107.186] PHP Warning: chmod() [function.chmod]: Operation not permitted in /var/www/vhosts/mywebiste.com/httpdocs/zen/zp-core/i.php on line 113, referer: http://www.mywebsite.com/zen/john%20doe/New%20Scotland/JohnDoe_image1.jpg.php
[Tue Jan 19 12:19:09 2010] [error] [client 80.101.107.186] PHP Warning: chmod() [function.chmod]: Operation not permitted in /var/www/vhosts/mywebiste.com/httpdocs/zen/zp-core/i.php on line 113, referer: http://www.mywebsite.com/zen/john%20doe/New%20Scotland/JohnDoe_image2.jpg.php
and the lines keep going and going...
******************************
Apparently the issue in the i.php file on line 113:
// Make the directories for the albums in the cache, recursively.
// Skip this for safe_mode, where we can't write to directories we create!
if (!ini_get("safe_mode")) {
$albumdirs = getAlbumArray($album, true);
foreach($albumdirs as $dir) {
$dir = SERVERCACHE . '/' . $dir;
if (!is_dir($dir)) {
@mkdir($dir, CHMOD_VALUE);
chmod($dir, CHMOD_VALUE);
} else if (!is_writable($dir)) {
chmod($dir, CHMOD_VALUE); //this is line 113
}
}
}
PHP support - safe mode is off.
Could anyone please point me in a direction how to fix this?
Thank you very much in advance.