chrismunden / cmsfromscratch

Automatically exported from code.google.com/p/cmsfromscratch
0 stars 0 forks source link

MKDIR problem, may require 3rd parameter to be set in some environments #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When I tried to create a page from the Browse tab, I would get an error
from PHP about not being able to mkdir
./inclues/{pagename}_cms_files/cms_preview

The code looked fine and I was scratching my head for a while.  What I
ended up doing to repair this was to add "TRUE" as the 3rd attribute to the
mkdir() method:
[line 71 of cms/new-page.php] if (mkdir($previewIncludesDirectory, 0755,
TRUE) === False) {

Original issue reported on code.google.com by designfr...@gmail.com on 6 Feb 2008 at 1:53

GoogleCodeExporter commented 8 years ago
Can anyone confirm issues with MKDIR? If not, I may shelve this as a non-issue.

Ben

Original comment by ben.hunt...@gmail.com on 7 Jun 2008 at 8:54