php Touch ()
Posted: 13 Sep 2016, 12:59
Posting this just in case it helps.
At home I have a Synology NAS that I mirror my website on. This gives me a backup and also allows me to experiment without disturbing the live public site. The NAS runs an Apache Web Server. Anyway, the site browses fine, but when I logged into the panel I could not change/save any settings, nor could I run "refresh menu". Both resulted in "can't write to \content" error. Checking the error logs I notice that both errors were triggered in lines of code that used the touch() command. Doing a little research I foundĀ THIS discussion on the touch command. Following user166560 advice (3rd answer listed), in the two php files that were giving me problems, filemanager_core.php [line 48] and menu_create.php [line 37], I changed the touch function to is_writable and all seems to work well now. I haven't played extensively with the panel on this home server, so not sure if the touch function is used elsewhere, that will give me further issues.
At home I have a Synology NAS that I mirror my website on. This gives me a backup and also allows me to experiment without disturbing the live public site. The NAS runs an Apache Web Server. Anyway, the site browses fine, but when I logged into the panel I could not change/save any settings, nor could I run "refresh menu". Both resulted in "can't write to \content" error. Checking the error logs I notice that both errors were triggered in lines of code that used the touch() command. Doing a little research I foundĀ THIS discussion on the touch command. Following user166560 advice (3rd answer listed), in the two php files that were giving me problems, filemanager_core.php [line 48] and menu_create.php [line 37], I changed the touch function to is_writable and all seems to work well now. I haven't played extensively with the panel on this home server, so not sure if the touch function is used elsewhere, that will give me further issues.