Avatar Upload/ delete Issue on one server not another. Is it my host?

Hi guys,

I’m testing out different hosts before I take my site live in about 3 weeks.

I’ve built it on bog standard £3 a month shared hosting but to be honest the site has been super responsive with no issues.

I got some new hosting yesterday and have rebuilt my site on it. It’s ‘clustered hosting’.

Now on the new setup I had an intermittent problem when uploading group and profile avatars. Sometimes they will upload flawlessly but other times the images either fail to display properly, although uploaded as I can see the origianl file in FTP but not the thumbed versions or the cropping fails and it tells me to try again.

When I delete an avatar I often get this error too.

Warning: opendir(/var/sites/a/actonthis.tv/public_html/wp-content/uploads/avatars/2) [function.opendir]: failed to open dir: No such file or directory in /var/sites/a/actonthis.tv/public_html/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php on line 153

Warning: closedir(): supplied argument is not a valid Directory resource in /var/sites/a/actonthis.tv/public_html/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php on line 191

The directory it says doesn’t exist does exist and to be fair the avatar actually does get deleted but it still throws up that error.

Now my new host is saying that the script actually is supposed to delete the avatar folder for the user/ group and then the next call in bp-core-avatars.php then tries to list the directory it just deleted so that’s why the error occurs.

He says that the script is probably designed to run with display_errors off and that is why it isn’t throwing up the error on the other hosts I have sites with.

I know nothing about hosting so is this true or are there underlying problems.

I don’t really have time to troubleshoot you see as the site needs to launch so I need to know whether I go back to my old host but on an upgraded server or to stick with this new clustered host which might be causing problems.

What do you think?