1
macmend
sitemap module xml_google.php works on one site and not another
  • 2008/9/5 21:44

  • macmend

  • Quite a regular

  • Posts: 285

  • Since: 2004/2/27


it in the title

www.bagsofbooks.net seems to wokr fine with sitemap module and the xml_google.php and google accepts it.

The XOOPS root here is also the root of public_html

in www.macmend.com/machelp

the sitemap is in a directory in public_html and google doesn't like xml_google.php

can anyone enlighten me?
Free Mac Support

Ordinary Wisdom

apache server with php sshexec turned on
xoops version 2.0.18.1 & 2.3.1
php version 5.2.5
mysql version 5.0.45

2
macmend
Re: sitemap module xml_google.php works on one site and not another
  • 2008/11/27 19:16

  • macmend

  • Quite a regular

  • Posts: 285

  • Since: 2004/2/27


Bounce

I still have this problem across 3 sites now
Free Mac Support

Ordinary Wisdom

apache server with php sshexec turned on
xoops version 2.0.18.1 & 2.3.1
php version 5.2.5
mysql version 5.0.45

3
tank1955
Re: sitemap module xml_google.php works on one site and not another
  • 2008/11/27 21:34

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


It would appear that www.macmend.com/machelp/modules/sitemap/xml_google.php can not be found or it has to do with the dirname(__FILE__) command possibly returning www.macmend.com instead of www.macmend.com/machelp/

4
macmend
Re: sitemap module xml_google.php works on one site and not another
  • 2008/11/28 8:57

  • macmend

  • Quite a regular

  • Posts: 285

  • Since: 2004/2/27


Free Mac Support

Ordinary Wisdom

apache server with php sshexec turned on
xoops version 2.0.18.1 & 2.3.1
php version 5.2.5
mysql version 5.0.45

5
tank1955
Re: sitemap module xml_google.php works on one site and not another
  • 2008/11/28 14:03

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


If I go to http://bagsofbooks.net/xml_google.php this is what I get:

<?xml version="1.0" encoding="UTF-8" ?> 
- <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
- <url>
  <loc>http://bagsofbooks.net/</loc> 
  <lastmod>2008-11-28T13:50:41Z</lastmod> 
  <priority>1.0</priority> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/yogurt/</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/yogurt ... ers.php</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/yogurt/index.php</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/yogurt ... ook.php</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/yogurt/album.php</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/yogurt ... ubo.php</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/yogurt ... nds.php</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/yogurt/tribes.php</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/yogurt ... igs.php</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/news/</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/news/i ... topic=4</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/news/i ... topic=2</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/news/i ... topic=3</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/news/i ... topic=1</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/news/archive.php</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/news/t ... ory.php</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/mediawiki/</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/Xigg/</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/Xigg/i ... php/tag</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/wfdownloads/</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/wfdown ... ist=hit</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/wfdown ... st=rate</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/contact_plus/</loc> 
  </url>
  </urlset>


However, the other site you indicated shows the "Don't call this file directly" error."

If your XOOPS installation resides in the root directory of your domain then everything works fine. But it appears that if the installation is nested inside of another subdirectory then the error occurs. This has also been reported by others who are using the Sitemap v1.30b with CVD hacks I have provided. I am working to try to come up with a solution.


6
macmend
Re: sitemap module xml_google.php works on one site and not another
  • 2008/11/28 14:32

  • macmend

  • Quite a regular

  • Posts: 285

  • Since: 2004/2/27


thanks again for responding, google claims an error in bags of books.

I remember before when your module first came out and I was using it on an earlier version of macmend.com I hacked it and left a record on the XOOPS site and xoops-tips but cannot find the entry...it got round this google problem....maybe i imagined it.
Free Mac Support

Ordinary Wisdom

apache server with php sshexec turned on
xoops version 2.0.18.1 & 2.3.1
php version 5.2.5
mysql version 5.0.45

Login

Who's Online

65 user(s) are online (32 user(s) are browsing Support Forums)


Members: 0


Guests: 65


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits