101 pointsSerious WPMU DEV-sterI'm new here
omgitsrfb
Member
—
2nd August 2009 (2 years ago)
Andrew,
I'm getting the following errors when trying to view domain.com/sitemap.xml:
Warning: file_put_contents(//home/sportsfg/public_html/wp-content/blogs.dir/1/files/sitemap.xml) [function.file-put-contents]: failed to open stream: Permission denied in /home/sportsfg/public_html/wp-content/mu-plugins/simple-sitemaps.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/sportsfg/public_html/wp-content/mu-plugins/simple-sitemaps.php:177) in /home/sportsfg/public_html/wp-content/sitemap.php on line 29
I tried changing blogs.dir to 777 and access it again but same error msgs. One thing I noticed is that file-put-contents is:
file_put_contents( "$filename/$file", $content );
and my blogs.dir paths are /1/files (plural). Could that be an issue? I vaguely remember changing it to files some time ago due to image and avatar upload issues.
Andrew,
I'm getting the following errors when trying to view domain.com/sitemap.xml:
Warning: file_put_contents(//home/sportsfg/public_html/wp-content/blogs.dir/1/files/sitemap.xml) [function.file-put-contents]: failed to open stream: Permission denied in /home/sportsfg/public_html/wp-content/mu-plugins/simple-sitemaps.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/sportsfg/public_html/wp-content/mu-plugins/simple-sitemaps.php:177) in /home/sportsfg/public_html/wp-content/sitemap.php on line 29
I tried changing blogs.dir to 777 and access it again but same error msgs. One thing I noticed is that file-put-contents is:
file_put_contents( "$filename/$file", $content );
and my blogs.dir paths are /1/files (plural). Could that be an issue? I vaguely remember changing it to files some time ago due to image and avatar upload issues.
7430 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Erstwhile founder
—
3rd August 2009 (2 years ago)
#
Hiya,
and my blogs.dir paths are /1/files (plural). Could that be an issue? I vaguely remember changing it to files some time ago due to image and avatar upload issues.
The path is correct in the warning so that's not the issue.
Have you checked the permissions of "wp-content/blogs.dir/1/files" and "wp-content/blogs.dir/1"?
they are set to 755. should they be set to 777 along with blogs.dir? is that the default permission for all three? just wondering cause i don't remember changing them myself.
andrew,
you're probably right. let's try a different approach with my other question. when you guys installed wpmu for me with psek.com what were the default permissions for ""wp-content/blogs.dir/1/files", "wp-content/blogs.dir/1" and "wp-content/blogs.dir"?
and, is that what they should still be set with in order for sitemaps to be displayed?
Responses (5)
Erstwhile founder — 3rd August 2009 (2 years ago) #
Hiya,
The path is correct in the warning so that's not the issue.
Have you checked the permissions of "wp-content/blogs.dir/1/files" and "wp-content/blogs.dir/1"?
Thanks,
Andrew
Member — 3rd August 2009 (2 years ago) #
they are set to 755. should they be set to 777 along with blogs.dir? is that the default permission for all three? just wondering cause i don't remember changing them myself.
thanks andrew
Erstwhile founder — 3rd August 2009 (2 years ago) #
Hiya,
I've taken a look at the plugin and I'm afraid I can't find an issue. It has to either be a permissions or ownership issue.
Thanks,
Andrew
Member — 3rd August 2009 (2 years ago) #
andrew,
you're probably right. let's try a different approach with my other question. when you guys installed wpmu for me with psek.com what were the default permissions for ""wp-content/blogs.dir/1/files", "wp-content/blogs.dir/1" and "wp-content/blogs.dir"?
and, is that what they should still be set with in order for sitemaps to be displayed?
thanks
Member — 3rd August 2009 (2 years ago) #
all fixed now. it was the nobody user php4 owner/permission crap.
thanks andrew
Become a member