Page 1 of 1

[SOLVED] Permission error adding new feed in CGFeedMaker

Posted: Tue Dec 21, 2010 3:19 am
by postiffm
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.

Re: Permission error adding new feed in CGFeedMaker

Posted: Tue Dec 21, 2010 4:36 pm
by Dr.CSS
Check your unmask to see owners etc. you may have to change it and test again...

Re: Permission error adding new feed in CGFeedMaker

Posted: Tue Dec 21, 2010 9:58 pm
by postiffm
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.