skip to main content

kiesler.at
You are NOT logged in. ( login | New Account Signup | Forgot Your Password? ) Why log in?
View Topic
Forums > Content Management > phpWebSite > Site Map Script


The ad will go away if you log in.

<< [ 1 ] >>

| NewTopic New Topic | Reply Reply

 

rwilson50 “Site Map Script” #1
Member[2] 2006-08-10 19:42

I have installed the google site map script. I do not have shell access to my account but I have cron jobs which I used to set up running the script using the manual way you showed (php -f). My cron job is returning me the following error and I was wondering if you had ever encountered this before. Thanks for your help.

-Rick


Warning: session_start(): Cannot send session cookie - headers already sent in /home/richar12/public_html/sites/CMS_MAIN/core/Core.php on line 304

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/richar12/public_html/sites/CMS_MAIN/core/Core.php:304) in /home/richar12/public_html/sites/CMS_MAIN/core/Core.php on line 304
SQL: insert CMS_MAIN_mod_stats_today (ip, username, date, id) values (NULL, 'unknown', '08-10-2006', 1166)
unknown error
Quote Quote
rck “Re: Site Map Script” #2
Admin[1999] from Korneuburg 2006-08-11 20:55

Can you post the exact lines in your crontab?
---
200 channels and... nothing but cats.
Quote Quote
rwilson50 “Re: Site Map Script” #3
Member[2] 2006-08-11 21:07

php -f /home/richar12/public_html/sites/CMS_MAIN/tools/sitemap/index.php richardawilson.com

Thanks,

Rick
Quote Quote
rck “Re: Site Map Script” #4
Admin[1999] from Korneuburg 2006-08-11 21:35

Mine reads

[code]0 3 * * * /usr/bin/nice /home/kiesler.at/bin/create_sitemaps[/code]

which points to my create_sitemaps script which reads

[code]cd /home/kiesler.at/sitemap

/usr/bin/php -f index.php kiesler.at > /home/kiesler.at/public_html/sitemap.xml
/bin/gzip -9f /home/kiesler.at/public_html/sitemap.xml
wget --spider -q http://www.google.com/webmasters/sitemaps/ping?sitemap=http%3A%2F%2Fwww.kiesler.at%2Fsitemap.xml.gz
[/code]

so... could it be, that you need the "cd" statement first? "cannot send session cookie" means, that there's some php output and php tries to output something else afterwards.

if the "cd" command isn't enough, you might want to re-check your Core.php and conf/config.php for superfluous empty lines / linebreaks.
---
200 channels and... nothing but cats.
Quote Quote
tligon “Re: Site Map Script” #5
Activator[42] 2007-02-05 00:54

I have a different issue. I just installed and when I run the script it appears to run I just have NO OUTPUT not a single thing, If I dont specify the domain name I do get a message telling me I have to and lists the ones I put in the inc file. What am I missing?

Thanks seems to be a great little script.
Quote Quote
rck “Re: Site Map Script” #6
Admin[1999] from Korneuburg 2007-02-05 08:52

tligon I have a different issue. I just installed and when I run the script it appears to run I just have NO OUTPUT not a single thing


Hi Tracy, that's the way the script works!

It generates a sitemap.xml.gz and sends it to Google. You can check, if the sitemap.xml.gz has been created. If it has, there's no need for additional output.

Also, if the transmission is ok, there's no need to print out an message about that. That's the way Unix is -- no output, no worries.
---
200 channels and... nothing but cats.
Quote Quote
tligon “Re: Site Map Script” #7
Activator[42] 2007-02-05 12:58

Where is that file created? I dont find it even with 'find'.
Quote Quote
rck “Re: Site Map Script” #8
Admin[1999] from Korneuburg 2007-02-05 15:34

Oh. This seems to require a little bit more debugging.

See:

[code]cd /home/kiesler.at/sitemap

/usr/bin/php -f index.php kiesler.at > /home/kiesler.at/public_html/sitemap.xml
/bin/gzip -9f /home/kiesler.at/public_html/sitemap.xml
wget --spider -q [url=http://www.google.com/webmasters/sitemaps/ping?sitemap=http%3A%2F%2Fwww.kiesler.at%2Fsitemap.xml.gz[/code]]http://www.google.com/webmasters/sitemaps/ping?sitemap=http%3A%2F%2Fwww.kiesler.at%2Fsitemap.xml.gz[/code]

Please check, if

a) you've fixed "cd /home/kiesler.at/sitemap" to read the path to your sitemap script and that path exists
b) /usr/bin/php exists ("ls -lad /usr/bin/php")
c) /bin/gzip exists ("ls -lad /bin/gzip")
d) wget exists ("which wget")
---
200 channels and... nothing but cats.
Quote Quote
tligon “Re: Site Map Script” #9
Activator[42] 2007-02-05 16:17

Sorry I should be more correct in the question. I am simply running the command line manually within the tools/sitemap directory. I am not using an automated system yet so I dont think those items are the issue.
Quote Quote
rck “Re: Site Map Script” #10
Admin[1999] from Korneuburg 2007-02-05 16:59

Ok, so you wrote something like

[code]/usr/bin/php -f index.php kiesler.at[/code]

right? If that's the case and you don't get any output, that's indeed a problem... Can you confirm this?
---
200 channels and... nothing but cats.
Quote Quote
tligon “Re: Site Map Script” #11
Activator[42] 2007-02-05 17:10

[code]php -f index.php ftwtexas.com[/code]
run directly in the /www/ftwtexas.com/tools/sitemap dir

I checked the inc and that file is correct. If I run that with no ftwtexas.com following index I do get an error telling me I need to pick one of the two domains I have in the inc file.

Quote Quote
rck “Re: Site Map Script” #12
Admin[1999] from Korneuburg 2007-02-05 19:17

Another thing to check. If you look into your site, which modules do you use? How many item are stored with the modules? (e.g. 4 pagemaster pages, 2 announcements, ...)
---
200 channels and... nothing but cats.
Quote Quote
trf000 “Re: Site Map Script” #13
Moderator[392] 2007-02-13 23:06

I'm just now installing this as well. Cool that google is linking to you in their webmaster tools section Rene... kudos.

Now will this script run on IIS? And if so, what changes would have to be made?
---
Bitterness

Never be afraid to share your dreams with the world.

Because there is nothing the world loves more than the taste of really sweet dreams.
Quote Quote
rck “Re: Site Map Script” #14
Admin[1999] from Korneuburg 2007-02-14 08:08

Thanks!

Actually, this script is completely independent of your web server (in your case IIS). It is somewhat OS dependant, but not really. In case of Windows, you'd need to install a couple of Cygwin tools

a) crontab
b) gzip
c) wget
d) php command line edition

...that should be all, through I haven't tested it yet. Cygwin is a "Linux distribution compiled for Windows" that runs natively on Windows. You can find it on the Cygwin Homepage, the installation is pretty straight-forward.
---
200 channels and... nothing but cats.
Quote Quote

<< [ 1 ] >>
| Reply Reply |

Forum Menu

please log in for further options.

What's Related

Wiki

phpWebSite

Photo Albums

phpWebSite

Article Manager

phpWebSite

Link Manager

phpWebSite

Documents

phpWebSite

Bulletin Board

phpWebSite

FAQ

phpWebSite

Latest Updates

Free Image Hosting and Li...
created by mikepeterson, 1 week ago (, 86 views)
thread

how to start javascript !...
created by shopperpk, 3 weeks ago (, 143 views)
thread

Hello, new here !
created by shopperpk, 3 weeks ago (, 126 views)
thread

Re: how to run phpwebsite...
created by alexander, 2011-08-25 (2 rpls, 3440 views)
thread