Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
chmod warning in basic.php
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());
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
Could just b tha chmod is not allowed at all on your server
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
For further environmental info, it's on my development server on my Mac: Xampp using Apache2.
Given that the file (both basic.php and the gsconfigure.php) has appropriate permissions, I would thought that chmod'ing would be achievable.


I may have solved it by chown the 'inc' directory (parent of basic.php) to 'nobody'. There hasn't been a triggering of the warning since I did that.

I was wrong, the chown operation didn't solve it after all.

Users browsing this thread: 1 Guest(s)