Closed (fixed)
Project:
Google Sitemap
Version:
5.x-1.1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
17 Mar 2007 at 10:57 UTC
Updated:
5 Apr 2007 at 19:51 UTC
Jump to comment: Most recent file
I used gsitemap perfectly until today (03.17.2007) - I updated for the new version of gsitemap.
I overwrite all the files on sites/all/modules, went to mysite.org/update.php.
updated this module and everything seems to be OK.
but when I created a new post I got this error above the post:
http://i22.photobucket.com/albums/b304/shahard333/error-1.jpg?t=1174128341
can someone help my to solve this problems? thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | gsitemap.module.txt | 23.73 KB | bwynants |
| #11 | patch_7.patch | 7.64 KB | bwynants |
| #8 | gsitemap_2.patch | 1.34 KB | mgifford |
| #2 | patch_6.patch | 5.31 KB | bwynants |
Comments
Comment #1
brianV commentedI can confirm, I am having the same problem. I am moving this to the Bug list since this is a bug introduced in the latest release.
I set the priority as critical since the module is useless in this state.
Comment #2
bwynants commentedThis fixes it for me.
removed sprintf's and DISTINCT that gets added by automatically by drupal
Comment #3
shahard333 commentedThanks bwynants for the patch,
but I don't know how to patch :|... do you have any guide out there?
Comment #4
bwynants commentedhttp://drupal.org/node/60108
Comment #5
shahard333 commentedThank for the fast repaly :)
I'm on shared hosting and I can't install all those auto patching software and to type all those command.
How can I do it manually?
Comment #6
bwynants commentedsimple question but there are no simple answers.
here's how I do it om my mac, can't give you an answer for a Windoze computer...
I grab a copy of the module, extract it
I grab the patch file and drop it in that same directory
I open a terminal window and CD to the place where the module is.
I type patch < nae_of_the_patch
that's it!
Comment #7
Boletus commentedIs this the same error?
Comment #8
mgiffordThis is the error I'm getting (before and after applying the patch), that comes when I create new content:
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 query: INSERT INTO gsitemap (nid, last_changed, priority_override) VALUES (33, 1174243933, ) in /home/dm_50/includes/database.mysql.inc on line 172.
Seems that the problem was fixed with $node->priority_override = 0; seems the NULL wasn't good enough.
Comment #9
mgiffordI should have added that this is the same error that the original poster reported. Also, since it's an sql error, worth saying that I'm running mysql-5.0.27-1.fc5.
Mike
Comment #10
shahard333 commentedYes, changing from $node->priority_override = NULL; to $node->priority_override = 0; seems to work.
Now we only need see if it's sending data to the sitemap.
Thank for the solution.
Comment #11
bwynants commentedagain a patch to be applied against CVS version fixes 2 issue's, the error from comment 7 (http://drupal.org/node/128636#comment-215630)
and issue http://drupal.org/node/123952
Comment #12
bwynants commentedfull module for those that can not patch, move the .txt after download
Comment #13
darren ohFixed in CVS commits 61134 and 61135. Thank to those who found the errors.
Comment #14
shahard333 commentedThanks for all the patch and the files. the new module working great now.
Comment #15
hectorplus commentedI didn't even know i was getting the same error. I found it in the log.
One thing i noticed is that my links that were submitted berore to google site maps have disappeared. The webmasters google page, in the "Links submitted" says, 1 only. Before it was over 180.
What do i do? Resave all my nodes to let Google know about it again? Anyone with the same problem?
Thanks.
Comment #16
Patrick Nelson commentedThe same error still occurs (as of latest version today) in the 4.7.x version. To be exact:
If I need to create a new issue specifically for the 4.7 version, let me know.
Regards
Patrick
Comment #17
bwynants commentedthats is a different issue (related to http://drupal.org/node/123952 i think)
Comment #18
Patrick Nelson commentedThanks bwynants,
However that post refers back to this one for a patch. But, as previously stated, the problem is with 4.7.x and the patches on this page are only for 5.x (AFAIK).
Any ideas, anyone?
Comment #19
SamAMac commentedFixed in 4.7-dev by 61668.
Comment #20
(not verified) commented