Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
chmod warning in basic.php
#1
Hi,
I've checked the forum and externally for a solution – none. Have updated from v3 to 3.2, and have got it all working... except for a 'flash' of an error message on saving page updates. The pages in question doo get there content saved – which is odd, as when I turned debug mode on it showed this error:

Warning: chmod() [function.chmod]: Operation not permitted in /Users/username/client-x/admin/inc/basic.php on line 308

The line in question refers to this code in basic.php:

302 function XMLsave($xml, $file) {
303 # get_execution_time(true);
304 $success = @$xml->asXML($file) === TRUE;
305 # debugLog('XMLsave: ' . $file . ' ' . get_execution_time());
306
307 if (defined('GSCHMOD')) {
308 return $success && chmod($file, GSCHMOD);
309 } else {
310 return $success && chmod($file, 0755);
311 }
312 }

It refers to line 308 if GSHMOD is defined (as 0777), and to 310 if it is not.

Why? The permissions on the basic.php are 775 (-rwxr-xr-x) and even if changed to 777 do not get rid of warning message. It is a 'warning' and not a break but I would like to get rid of it.

Kind regards
Tim
Reply


Messages In This Thread
chmod warning in basic.php - by tgiadd - 2013-03-17, 00:38:30
RE: chmod warning in basic.php - by shawn_a - 2013-03-17, 06:15:14
RE: chmod warning in basic.php - by tgiadd - 2013-03-19, 03:41:21
RE: chmod warning in basic.php - by tgiadd - 2013-03-19, 19:59:49



Users browsing this thread: 1 Guest(s)