CMS 1.9.2
CGBlog 1.7.1
CGExtensions 1.22.1
CGFeedMaker 1.0.11
CGSimpleSmarty 1.4.7
When trying to Add a New Feed in CGFeedMaker, I get this:
Warning: mkdir() [function.mkdir]: Permission denied in /blah/blah/public_html/cms/modules/CGExtensions/lib/class.cge_dir.php on line 174
directory still does not exist
I tried with cms/modules and cms/modules/CGFeedMaker and cms/modules/CGFeedMaker/templates chmod 777 to no avail.
Thanks for any ideas you might have.
[SOLVED] Permission error adding new feed in CGFeedMaker
[SOLVED] Permission error adding new feed in CGFeedMaker
Last edited by postiffm on Tue Dec 21, 2010 9:59 pm, edited 1 time in total.
Re: Permission error adding new feed in CGFeedMaker
Check your unmask to see owners etc. you may have to change it and test again...
Re: Permission error adding new feed in CGFeedMaker
A little extra debugging information in the code helped me find which directory was the problem.
I'd suggest this change in CGFeedMaker/action.addfeed.php, line 192:
if( !is_dir($destdir) ) die('directory ' . $destdir . ' still does not exist');
Then the user can see what directory is the problem when the script dies. In my case, the directory that could not be created was /blah/blah/public_html/cms/uploads/CGFeedMaker. A quick
chmod 777 cms/uploads
did the trick.
I'd suggest this change in CGFeedMaker/action.addfeed.php, line 192:
if( !is_dir($destdir) ) die('directory ' . $destdir . ' still does not exist');
Then the user can see what directory is the problem when the script dies. In my case, the directory that could not be created was /blah/blah/public_html/cms/uploads/CGFeedMaker. A quick
chmod 777 cms/uploads
did the trick.