HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


[RESOLVED] v7.0.1 - Sitemap not being autogenerated

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#71066 (In Topic #14990)
Avatar

Community saint

I have "Auto-submit sitemap" checked but site map is not being auto generated, even after using "force_sitemap_generation.php" . Its been a few days since I first tried it.

Also, after forcing it I get the following error message:

Code

Unauthorized access to URL, http://search.yahooapis.com/SiteExplorerService/V1/ping?sitemap=http.../ocp_sitemap.xml.

Yet when I manually executed the URL just now in the browser I got:

Code

<Success>
<Message>Update notification has successfully submitted.</Message>
</Success>
&#8722;
<!--
 ws09.ydn.gq1.yahoo.com compressed/chunked Fri Jun 24 05:23:09 PDT 2011
-->

CRON jobs seem to be running fine according to the status page.

And finally, where is the regeneration frequency defined?


Last edit: by temp1024

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#71068
Avatar

I wonder if Yahoo has blocked your server from auto-submitting. If this is the case it probably kills the cron script in it's tracks, I'll change that.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#71069
Avatar

Oh forgot – 24h is hard-coded in sources/hooks/systems/cron/sitemap.php.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#71070
Avatar

Attachment
sources/sitemap.php
» Download: sitemap.php (14 Kb, 165 downloads so far)


Told it to ignore HTTP errors and move on.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#71076
Avatar

Community saint

Thanks Chris, patch applied.

Chris Graham said

Oh forgot – 24h is hard-coded in sources/hooks/systems/cron/sitemap.php.
In that case you should update ocPortal Tutorial: Improving your search engine ranking - ocPortal which says it happens every hour, which I thought was quite excessive.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#71079
Avatar

thanks


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#71145
Avatar

Community saint

Its been a few days now since applying the patch and its still not automatically updating.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#71170
Avatar

I think CRON says the time it last run on the Admin Zone front page's checklist, is that correct-looking?

This isn't a big feature as the search engines should auto recheck it once they know of it. I think you can also reference it in robots.txt.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#71175
Avatar

Community saint

Chris Graham said

I think CRON says the time it last run on the Admin Zone front page's checklist, is that correct-looking?
Deja Vu:

temp1024 said

CRON jobs seem to be running fine according to the status page.

As for:

Chris Graham said

This isn't a big feature as the search engines should auto recheck it once they know of it.
What you say is true, but if its supposed to be running…

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#71181
Avatar

Community saint

temp1024 said


As for:

Chris Graham said

This isn't a big feature as the search engines should auto recheck it once they know of it.
What you say is true, but if its supposed to be running…

I'm of the same mind. I'd rather a feature not be offered than have it not work as advertised.

Bob
Back to the top
 
Posted
Rating:
#71182
Avatar

It's not that I am ignoring a bug, it's that it could be many different things relating to the connection between the two servers. I don't think there is a bug here, and I can't dedicate the time to investigate at the moment.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#71184
Avatar

Community saint

Didn't mean to offend,Chris.

In fact, I posted a review of ocPortal on OpenSourceCMS where I wrote "The software is very stable to begin with and benefits from developers whose attitude is that bugs should not be put on lists, they should be fixed."

I know you will get around to it when you can.

Bob
Back to the top
 
Posted
Rating:
#71185
Avatar

Not offended, just stating my position :lol:. When I'm busy, my replies are as terse as possible, it can come across more abrupt that I intended.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#71212
Avatar

Community saint

Chris Graham said

When I'm busy, my replies are as terse as possible, it can come across more abrupt that I intended.
Yea, I've fallen for a few of those :lol:

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#73985
Avatar

Community saint

temp-

Did you ever get this working? I just set up the cron job and thought it was working ("Set up scheduler" is no longer on the To Do list).

EDIT: I have Auto-submit site map checked. This should put a site map in data_custom, correct?


[IGNORE]

I don't see this:
I think CRON says the time it last run on the Admin Zone front page's checklist, is that correct-looking?

Does that mean the job has failed to run?

EDIT: I just found the show all link and the cron job is running. So the question remain, did you ever get the site map to auto-generate?


[/IGNORE]

Thanks for any help.

Bob



Last edit: by BobS
Back to the top
 
Posted
Rating:
#73986
Avatar

Community saint

I just ran the script to force sitemap generation which created ocp_sitemap.xml in the root directory.

Is that the standard name of the sitemap created by the cron job and where could I change that to simply sitemap.xml.

Does the sitemap created by the cron job get created in the site root or in /data_custom?

I know that Google should discover stuff on its own once the site is crawled but there will be quite a bit of new content added in the first several months and it's been my experience that it is helpful to "steer" the search engines with a current sitemap.

Bob

Back to the top
 
Posted
Rating:
#73988
Avatar

Community saint

BTW, it would be nice if the "Set up scheduler" showed the time in addition to the date for the last successful running of the cron job.

Bob
Back to the top
 
Posted
Rating:
#74016
Avatar

Community saint

I never noticed ocp_sitemap.xml (0 byte) in data_custom before. As far as I am aware site maps are generally supposed to live in the site root, and looking at the source code, the one in data_custom is definitely the OLD one.

Auto-generated is still not happening, so problem still exists.

To change the sitemap file name you need to modify the following two files:

1) In \sitemap.php, there are 3 occurrences of ocp_sitemap.xml to change.

2) In force_sitemap_generation.php, there is just one occurrence of ocp_sitemap.xml to change.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#74017
Avatar

Community saint

Thanks, temp.

My force-generated site map lives in the root directory. I am curious if it will be updated as the cron job runs - apparently it won't.

I guess I can live with ocp_sitemap.xml - I will know for sure where the site map came from. I guess I will have to force generate them every couple of days until the auto-generate bug is addressed.

Thanks for your help.

Bob
Back to the top
 
Posted
Rating:
#74061
Avatar

Like anything that runs in the background, CRON is a pain. If you call up /data/cron_bridge.php you might see an error, which could block auto-generation.
If CRON doesn't run on your server there are free services out there that simulate it by doing URL calls – those work nicely.

data_custom is where the sitemap once was, but Google stopped supporting it in subdirs so we had to move it.

Add this to robots.txt if you want

Code

Sitemap: /ocp_sitemap.xml


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Expand