Welcome, Guest. Please login or register.
March 20, 2010, 07:18:37 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
110550 Posts in 15964 Topics by 9311 Members
Latest Member: stevenris10
* Home Help Search Login Register
+  WebsiteBaker Community Forum
|-+  English
| |-+  Modules (Moderators: Argos, BerndJM)
| | |-+  [module] Google sitemap.xml Generator
Pages: 1 2 [3] 4 5 ... 7 Go Down Print
Author Topic: [module] Google sitemap.xml Generator  (Read 44828 times)
SaschaN

Offline Offline

Posts: 62


« Reply #50 on: March 13, 2006, 09:51:55 PM »

I hope, that's it.
I could find online the access log on my server.

Quote
[Mon Mar 13 21:50:50 2006] [error] [client 84.177.198.80] Premature end of script headers: /kunden/113868_63697/webseiten/pages/google-sitemap.php
Logged
viulian

Offline Offline

Posts: 53


« Reply #51 on: March 13, 2006, 10:07:12 PM »

Thanks Smiley

It appears to be an error - the module has outputed a message (probably an error) before sending the headers to the browser.
I will post here a version of the module having debugging enabled, and if you would like, please send me back the logs (I will explain where to get them).

Probably there's something particular about your setup which I was not aware when coding the module, and I need to find out what is so I can update the code to properly handle this situation.

Iulian
Logged
SaschaN

Offline Offline

Posts: 62


« Reply #52 on: March 13, 2006, 10:24:28 PM »

Thanks Smiley

It appears to be an error - the module has outputed a message (probably an error) before sending the headers to the browser.
I will post here a version of the module having debugging enabled, and if you would like, please send me back the logs (I will explain where to get them).

Probably there's something particular about your setup which I was not aware when coding the module, and I need to find out what is so I can update the code to properly handle this situation.

Iulian

When you can post this?
Logged
viulian

Offline Offline

Posts: 53


« Reply #53 on: March 13, 2006, 10:39:14 PM »

In maximum 12 hours - almost midnight for me right now Smiley
Logged
SaschaN

Offline Offline

Posts: 62


« Reply #54 on: March 13, 2006, 10:46:16 PM »

In maximum 12 hours - almost midnight for me right now Smiley

Good night Wink
Logged
viulian

Offline Offline

Posts: 53


« Reply #55 on: March 14, 2006, 12:32:39 AM »

Well, I've been thinking - I have the debug code update.

Please replace the view.php file from modules/gsitemap/view.php with the one I have attached to this post (you need to unzip first).
Once you run the module, it should create a file called logsitemap.txt in the directory to which the WB_PATH points (that is in the /wb directory, if you have the default install).

Also make sure that you give the module the rights to write to that file (I mean create the file by hand and give it the permissions 777 before running the module - the same way you do for sitemap.xml ones).

Then attach the logfile to a post here, and I will investigate it. I haven't added a long debug, just here and there at the key points to see what might go wrong. If the file is not populated, then something is wrong with the module files you have uploaded. (view.php includes info.php for example; is that file in place - I mean in modules/gsitemap/info.php ?)

Anyway, things should start to clear up after this test and I might have to give you a version more verbose than the attached one, but please first tell me how things are going with this.

Thanks!
Logged
SaschaN

Offline Offline

Posts: 62


« Reply #56 on: March 14, 2006, 03:50:30 PM »

Quote from: logsitemap.txt
Opened log file.

That is all the file shows ...
I reinstalled the sitemap-module and that same things happen.
Logged
viulian

Offline Offline

Posts: 53


« Reply #57 on: March 14, 2006, 04:25:50 PM »

Below is a sample code found in the beginning of the view.php I attached.

Code:
$log = fopen(WB_PATH . "/" . "logsitemap.txt", "w");
fwrite($log, "Opened log file.\n");

include('info.php');

fwrite($log, "info.php - included.\n");

As you can see, it fails to pass the include('info.php'); line. Can you please double check if you have the info.php along with the view.php file (I mean in the same directory ?). If so.. something must have gone wrong with the info.php file itself or with the include part.
Logged
SaschaN

Offline Offline

Posts: 62


« Reply #58 on: March 14, 2006, 05:20:42 PM »

Below is a sample code found in the beginning of the view.php I attached.

Code:
$log = fopen(WB_PATH . "/" . "logsitemap.txt", "w");
fwrite($log, "Opened log file.\n");

include('info.php');

fwrite($log, "info.php - included.\n");

As you can see, it fails to pass the include('info.php'); line. Can you please double check if you have the info.php along with the view.php file (I mean in the same directory ?). If so.. something must have gone wrong with the info.php file itself or with the include part.

No, the info.php is ok. I load die gsitemap.zip file from the websitebaker forum page and installed it new. Same problem.
Logged
viulian

Offline Offline

Posts: 53


« Reply #59 on: March 15, 2006, 10:10:42 AM »

Hi!

Sorry for the delayed response - I needed time to think more about this.

Can you please use the view.php embedded in the zip I've attached, and tell me what are the contents of logsitemap.txt file ?

Thanks!
Logged
SaschaN

Offline Offline

Posts: 62


« Reply #60 on: March 15, 2006, 04:28:22 PM »

Quote from: logsitemap.txt
Opened log file.
safe_mode=
safe_mode_gid=
safe_mode_include_d ir=
open_basedir=
disable_functions=
Array
(
   
  • => 2305
  • [1] => 2310387
        [2] => 33248
        [3] => 1
        [4] => 971194
        [5] => 99
        [6] => -1
        [7] => 83
        [8] => 1131118143
        [9] => 1131118143
        [10] => 1142398213
        [11] => -1
        [12] => -1
        [dev] => 2305
       
[ino] => 2310387
    [mode] => 33248
    [nlink] => 1
    [uid] => 971194
    [gid] => 99
    [rdev] => -1
    [size] => 83
    [atime] => 1131118143
    [mtime] => 1131118143
    [ctime] => 1142398213
    [blksize] => -1
    [blocks] => -1
)

Logged
viulian

Offline Offline

Posts: 53


« Reply #61 on: March 15, 2006, 05:14:21 PM »

 grin Finally, some light.

The array is the stat for the info.php file...

What intrigues me is:

Code:
[size] => 83

because the size should be 1856 bytes..

Can you please investigate the issue ?

Thanks
« Last Edit: March 15, 2006, 05:17:20 PM by viulian » Logged
SaschaN

Offline Offline

Posts: 62


« Reply #62 on: March 15, 2006, 07:10:03 PM »

grin Finally, some light.

The array is the stat for the info.php file...

What intrigues me is:

Code:
[size] => 83

because the size should be 1856 bytes..

Can you please investigate the issue ?

Thanks

Look here, the file has the right size:
Logged
viulian

Offline Offline

Posts: 53


« Reply #63 on: March 15, 2006, 09:13:34 PM »

Well  sad I cannot figure out then. On one hand php tells us that the file is small, there is this consistency that is php reports something strange along with the module that does not work, but apparently everything should work..

I am coding now a view.php file which will try to read the contents of info.php and put it all in the log file, to see at least what php finds when looking for info.php. Now I don't know how php is searching for the include files - maybe there's another info.php in the include path and it tries to include that before including the one in the module directory...
Can you please search the file system for an info.php file that is small (83 bytes) ?

Meanwhile I will code the logging part I was telling about...
« Last Edit: March 15, 2006, 09:15:42 PM by viulian » Logged
SaschaN

Offline Offline

Posts: 62


« Reply #64 on: March 16, 2006, 04:34:04 PM »

There is no info.php with this size ...
Logged
viulian

Offline Offline

Posts: 53


« Reply #65 on: March 16, 2006, 05:20:37 PM »

I've attached a new view.php file.

Can you please run this one too ? It should put the contents of the info.php in the log file.

Thanks
Logged
SaschaN

Offline Offline

Posts: 62


« Reply #66 on: March 16, 2006, 06:19:14 PM »

HI!
It works! Smiley

There was an info.php in the pages directory.
When I deleted the file and use the "normal" view.php, it works very well.

If you need help with a CSS-Design, please contact me.
I hope, I can help you Wink.
Thanks a lot Smiley.
Logged
viulian

Offline Offline

Posts: 53


« Reply #67 on: March 16, 2006, 10:10:57 PM »

 cheesy

Finally! I am glad everything's ok smiley it was getting frustrating.

Good luck on your projects Smiley I will remember your offer when I'll need help.

Thank you,
Iulian
Logged
SaschaN

Offline Offline

Posts: 62


« Reply #68 on: March 16, 2006, 10:40:26 PM »

I don't know why there was an info.php in this directory Smiley.
Sorry for that Wink.
Logged
1accessori.it

Offline Offline

Posts: 18


WWW
« Reply #69 on: May 17, 2006, 12:45:28 PM »

Sorry for my english ..
why this error?
Code:
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/comez/public_html/modules/gsitemap/view.php on line 158

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/comez/public_html/modules/gsitemap/view.php on line 158
Done in 0 seconds.

Link is: http://www.comez.eu/sitemap.xml
Link is: /webmasters/sitemaps/ping?sitemap=http%3A%2F%2Fwww.comez.eu%2Fsitemap.xml
Submitting sitemap to Google...
Done.
Answer from Google is: HTTP/1.0 200 OK Content-Type: text/html; charset=UTF-8 Cache-control: private Content-Length: 1309 Date: Wed, 17 May 2006 10:43:09 GMT Server: GFE/1.3 Connection: Keep-Alive
Sitemap Notification Received

Your Sitemap has been successfully added to our list of Sitemaps to crawl. If this is the first time you are notifying Google about this Sitemap, please add it via http://www.google.com/webmasters/sitemaps so you can track its status. Please note that we do not add all submitted URLs to our index, and we cannot make any predictions or guarantees about when or if they will appear. Done.
Logged

viulian

Offline Offline

Posts: 53


« Reply #70 on: May 17, 2006, 01:23:19 PM »

Well, that's a warning - is harmless.

It is due to the fact that I use:

$fp = fsockopen( $host, 80, &$errno, &$errstr, 120);

and pass the arguments of $errno and $errstr as refferences which was an OK way of passing arguments but is deprecated in newer versions of PHP. I will update this glitch in the next release, you can ignore it so far (is just the warning, the call is made anyway).
Logged
1accessori.it

Offline Offline

Posts: 18


WWW
« Reply #71 on: May 17, 2006, 02:38:48 PM »

Ok, thank you for this module and for the information.
Logged

Amosnet

Offline Offline

Posts: 7


« Reply #72 on: June 30, 2006, 12:31:30 PM »

Dear Moduleauthor, please write in the install notes, that user maybe have to create a empty sitemap.xml selfe with 777 so that that module work.  Create this file in your root directory!

Thanks for your help buddy

That extension does not work.

It spit out that cryptic dingdong i do not understand, what php want to say me...

Quote
No public news posts found.

Warning: fopen(/mnt/sda/home/u0000345024/public_html/fahrrad/sitemap.xml): failed to open stream: Permission denied in /mnt/sda/home/u0000345024/public_html/fahrrad/modules/gsitemap/view.php on line 186

Warning: fwrite(): supplied argument is not a valid stream resource in /mnt/sda/home/u0000345024/public_html/fahrrad/modules/gsitemap/view.php on line 187

Warning: fclose(): supplied argument is not a valid stream resource in /mnt/sda/home/u0000345024/public_html/fahrrad/modules/gsitemap/view.php on line 188
Done in 0 seconds.

Link is: http://blublub.de/fahrrad/sitemap.xml
Link is: /webmasters/sitemaps/ping?sitemap=http%3A%2F%2Fblublub.de%2Ffahrrad%2Fsitemap.xml
Submitting sitemap to Google...
Done.
Answer from Google is: HTTP/1.0 200 OK Content-Type: text/html; charset=UTF-8 Cache-control: private Content-Length: 1305 Date: Sun, 12 Mar 2006 02:13:39 GMT Server: GFE/1.3 Connection: Keep-Alive

And i never want that the programm contacts google. I am currently build my webseite, and it is not good, when a human googlesitececker see a webseite without any content.

The sitemap.xml is not in the directry... i cant find it with my ftp programm.


OK I have solved the problem...  by reading page 2 of that subforum.

Dear Moduleauthor, please write in the install notes, that user maybe have to create a empty sitemap.xml selfe with 777 so that that module work.
Logged
harrybasler

Offline Offline

Posts: 1


« Reply #73 on: October 20, 2006, 04:10:51 PM »

hi,
i'm getting the following error on executing my google-sitemap.php:

Code:
Fatal error: Maximum execution time of 30 seconds exceeded in /walberberg.de/www2/modules/gsitemap/view.php on line 125
Logged
toxication

Offline Offline

Posts: 1


« Reply #74 on: November 14, 2006, 08:10:50 PM »

Hey all,

I have several sites and several URLs running on 1 server, all based on wb 2.5.2
on all the sites the gsitemap module works great, except for 1 where the script somehow, since a short while dies with an error on line 119 in view.php:

Quote
Code:
Call to a member function on a non-object in line wb/modules/gsitemap/view.php 119

The structure does of this site doesn't differ from the others.

Any suggestions here would be great, cause I really do not see where this error can come from and I see a drop in my pageviews since this error.

thanks!

Martijn
Logged
Pages: 1 2 [3] 4 5 ... 7 Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!