chmod warning in basic.php - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Installation & Setup (http://get-simple.info/forums/forumdisplay.php?fid=5) +--- Thread: chmod warning in basic.php (/showthread.php?tid=4491) |
chmod warning in basic.php - tgiadd - 2013-03-17 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 RE: chmod warning in basic.php - shawn_a - 2013-03-17 Could just b tha chmod is not allowed at all on your server RE: chmod warning in basic.php - tgiadd - 2013-03-19 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. Regards Tim 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. Tim RE: chmod warning in basic.php - tgiadd - 2013-03-19 I was wrong, the chown operation didn't solve it after all. Tim |