Sitemap Plugin (was Google Sitemap Plugin)

Creating and modifying plugins.
Hathor
Regular
Posts: 118
Joined: Tue Mar 22, 2005 11:48 pm

Post by Hathor »

Here's the error message I'm still getting, even after I created a sitemap.gz file myself:
Warning: fopen(/home/bluemus/public_html//sitemap.gz): failed to open stream: Permission denied in /home/bluemus/public_html/plugins/serendipity_event_google_sitemap/serendipity_event_google_sitemap.php on line 313
Could not open the outfile for writing.
Your entry has been saved
See what I bolded there? It's putting an extra / in the URL. That could be the problem.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

755 is not appropriate! Your directory must be 777 to be writable for Serendipity.

The extra "/" can be ignored.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
endless
Posts: 1
Joined: Mon Aug 01, 2005 7:32 pm

Double posting?

Post by endless »

This plugin appears to cause some posts to get entered twice. I don't currently have the time to dive into the code, and our blog is just a casual site, so I've removed the extension for now, but you can reach me at joey@php.net if you need me to test fixes or for more info.
Hathor
Regular
Posts: 118
Joined: Tue Mar 22, 2005 11:48 pm

Post by Hathor »

I found the fix for this.
garvinhicking wrote:755 is not appropriate! Your directory must be 777 to be writable for Serendipity.

The extra "/" can be ignored.

Regards,
Garvin
I put my blogs in the main folder (public_html) and I've always used 775 without a hitch, because 777 on the main folder would be a security risk. So in my experience with two blogs on several different hosts, 775 works fine. I wouldn't use S9 if I thought I had to either put it in a subfolder or set my main folder to 777, because I want the main site page to be my blog, but I don't want to be insecure.

That said, I tried setting the main folder to 777, and that still didn't help. What DID help was:

I created my own sitemap.gz file, then set the permissions on it to 777, and left the main folder (S9's folder) at 775. Now it's woking just fine.
Pintu
Regular
Posts: 9
Joined: Mon Aug 15, 2005 1:59 pm

Post by Pintu »

Hi,

did the plugin include the content of staticpages into the sitemap.gz?

Regards,
Joerg
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

Post by MySchizoBuddy »

shouldn't the file inside sitemap.gz have an xml extension
right now its just sitemap with no extension.

pintu, sitemap plugin doesn't have static pages.
Image
Boris

Post by Boris »

Pintu wrote:did the plugin include the content of staticpages into the sitemap.gz?
I want to include this some time.
MySchizoBuddy wrote:shouldn't the file inside sitemap.gz have an xml extension
right now its just sitemap with no extension.
Well, gzip is not zip. In zip you really have files in a compressed container. Gzip is only one compressed file with no information about the original filename. Most/All programs use only add an .gz to the original filename when compressing and remove it after decrompressing.
I thought about naming it sitemap.xml.gz, but then I choosed the filename sitemap.gz because google used that filename in their own documentation. The googlebot does not care about the extension, it's more important, that the XML inside is correct, which it seems to be.

Of course it is up to you to change the filename to sitemap.xml.gz ;-)
Boris

Post by Boris »

Boris wrote:
Pintu wrote:did the plugin include the content of staticpages into the sitemap.gz?
I want to include this some time.
It's now in CVS...

Has anyone (Garvin?) any idea how to get notified of configuration changes? E.g. changing the URL-Rewriting-method or the basurl should change the sitemap too.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

There currently is no hook to notify plugins of a change in permalinks, but this could be added easily.

I think it would be safer to use the index.php?serendipity[subpage]=pagetitle URL method for static pages instead of the permalink, as that might not always work and is dependant on the permalink config...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Post by Guest »

Hi folks,

I have installed the google sitemap plugin last weekend and it seems to work fine. I wanted to check if google reads my sitemap. So I went to
http://www.google.com/webmasters/sitemaps/login

When asked to for the URL of my sitemap I entered: http://atlanticreview.org/sitemap.gz

Google then asked me to create a control file at the same URL to confirm that this is my homepage. So I created and uploaded that file in the same directory where my sitemap is, but google can't find that control file.

Does this have to do with rights as well? I don't know how to change those 700 numbers, I can only change "read, write, execute" settings for "owner, group and all".

Perhaps this is a general problem I have with S9Y since I have never been able to open any page on www.atlanticreview.org that has not been created by S9Y. I always had to create a subdomain www.abc.atlanticreview/xyz.html. What shall I do?

I appreciate any help since I am still new. Thanks
Josh
Regular
Posts: 110
Joined: Mon Jul 18, 2005 3:02 pm
Location: Berlin
Contact:

Post by Josh »

The last post was from me.
I am sorry, I thought I was loggedin.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hhm, this is a bit weird. The sitemap.gz looks properly - what is the control file that google is complaining about?

Do you have an example for a file that can not be reached on your host even though you uploaded it?

Permissions need to be "read/write" for the owner, "read/write" for the group and "read" for the "other" column.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

Post by MySchizoBuddy »

a control file is just an empty file with filename GOOGLEa349d3022cd8634a.html or something
its used to identfy that the site belongs to u

JOsh try entering the sitemap manually on this website
http://www.google.com/webmasters/sitemaps/login
Image
Josh
Regular
Posts: 110
Joined: Mon Jul 18, 2005 3:02 pm
Location: Berlin
Contact:

Post by Josh »

Thank you very much for your help, Garvin and MySchizoBuddy.

"Do you have an example for a file that can not be reached on your host even though you uploaded it?"

Couple of month ago I created atlanticreview.org/aboutus.html, but instead of seeing aboutus.html, the browser showed the frontpage. I don't need this about us page anymore.

This problem, however, exists now with the google controlfile. When I click on http://atlanticreview.org/GOOGLEbe27aee4a423fxxx.html
I should see an empty page, but instead I see my frontpage again.

Google apparently experiences the same problem, since it can't find my controlfile.


The good news, however, is that google describes my sitemap status as "OK" now. Apparently google only needs this control file to determine that I am the owner of the homepage and therefore may view the statistics for my sitemap. I don't know what statistics exactly. They might be interesting, thus I would love to get access.

Since this is a public forum and that control file identifies me as the owner, I have replaced the last three digits in the above mentioned URL of the control file. I could email you the real file name if that helps to determine the problem I am having.

In one attempt to solve the problem, I described both the URL of my sitemap as both http://atlanticre.... and http://www.atlanticre....
Now google has two sitemaps. Is that good or bad? (Which one should I delete?)

Any help is appreciated!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Josh, the reason for this is the "mod_rewrite" issue.

If serendipity is installed in the root of your homepage, it takes on ALL *.htm files that exist to acknowledge rewriting.

There some a couple of ways to surround this:

1. Do not use mod_rewrite but apache errorhandling instead. apache errorhandling first checks for existing files and then does no rewriting.

2. Put the files you want to show not inside the root, but in a subdirectory. In that same directory put a ".htaccess" file with the content "rewriteengine off".

3. Do not name the file ".html" but instead ".txt" or so. s9y does not pick up those links.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply