559 pointsLike some sort of WPMU DEV God"I'm helpful
rossagrant
Member
—
26th March 2011
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.
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.
Responses (1)
Sales & Support Lead — 27th March 2011 #
Hmm... I can think of a couple things.
Is the directory that it's looking for actually there? What are the permissions for wp-content and the 'uploads' folders (try setting both to 777)
Also, make sure PHP safemode is turned off:
http://www.serverschool.com/dedicated-servers/what-is-php-safe-mode/
Those are the first things I'd look at - I might also try manually uploading/reinstalling buddypress again.
Hope this helps. Let us know what you decide to do. If all the above fails - I'd probably just stick with an upgraded plan at your current host.
thanks!
Become a member