Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#21 categories management errors

open
nobody
None
5
2008-01-05
2008-01-05
Anonymous
No

When I clicked to create a category from the ACP (Administration Control Panel) I got 2 php errors: mkdir and chmod functions couldn't do create the directory in the uploads/ folder even though uploads/ directory permission's are set to CHMOD 777.

Here's how I fixed it:
I opened <root_path>/functions/f_admin.php and changed this:
$path = getPicturesPathFromCategory($config, $row['cid'], 1, "");

to this:
$path = '.'.getPicturesPathFromCategory($config, $row['cid'], 1, "");

It wasn't a big deal, but it was a little bug and I had the obligation to report this.
Also another little bug on <root_path>functions/f_cats.php on moveFiles function():
this:
$dir = $path_from;

should be:
$dir = '.'.$path_from;

Discussion