Yellow Swordfish said
As to the question – what code is used to create the folder – then Simple:Press uses the core WordPress function wp_mkdir_p().
So the error is happening when I go to Profile > Attachments > click on any of the directories…
To me it doesn’t even look like it’s trying to make a directory, it is just trying to scan… if the user hasn’t uploaded anything surely $files will be blank or zero and should just say there are no files?
$userid = sp_esc_int($_GET[‘uid’]);
if (empty($userid)) die();
$thisUser = sp_get_user($userid);
global $plup;
sp_plupload_config($thisUser);
$sfconfig = sp_get_option(‘sfconfig’);
$id = ($_POST[‘id’] == ‘#’) ? ” : sp_esc_str($_POST[‘id’]).’/’;
$type = sp_esc_str($_POST[‘type’]);
$path = $plup[‘basepath’][$type].$id;
$response = array();
$files = scandir($path);
It is only appearing for users who have not uploaded anything… if the user has uploaded the folder exists and then there are no errors…
My host said:
I’ve had a look at it and I’m not too sure on how to resolve the issue. The permissions seem fine, the php is up to date and the appropriate mods are enabled so I’m not sure what on the server would cause this.

