|
Post by cenobyte on Jul 10, 2007 1:36:04 GMT -5
Wow. I'm really having problems with this.
I copied over my old templates (with a heavy heart) with the gm-templates.cgi file, so at least there is some formatting on my site at the moment. But after I did that, and modified some of the templates (nothing major yet, just some text changes), I received the following error message when I tried to rebuild some of the files (I'm having to rebuild stuff one 'section' at a time from the "Rebuild Files" section, because of the error message I posted about earlier):
Invalid id parameter pass to getEntry
It happens when I try to rebuild Main Entry Pages, Archive Entry Pages, and All Entry Pages.
Because I forgot to include this information previously, I'm running Windows XP; I believe my ISP is using Perl 5.8 (but I could be mistaken on that one; I know it's at least 5); I just upgraded from GM 1.3 to 1.7.3, and I've just forgotten the other information that you need.
Cheers, j
|
|
|
Post by coldstone on Jul 10, 2007 13:48:09 GMT -5
Did you do a straight copy of the templates file? The format changed from 1.3.1 to 1.6.1. You have to copy and paste from/to the admin screens.
Try running Diagnostic and Repair. It sounds like there is some bad data in your entry files. We can post a special gm-library file that will give more information about where the bad data is occuring if needed.
|
|
|
Post by cenobyte on Jul 10, 2007 15:04:25 GMT -5
I ended up having to replace the old templates file with the new one, as the old one wasn't working at all with 1.7.3 (and now that you mention the changes, that makes sense)...which is to say, I replaced gm-templates.cgi from 1.3.1 to gm-templates.cgi 1.7.3; I didn't cut and paste any templates from the admin section. Hm. That would have made much more sense. No big deal; the site probably could use a facelift anyway.
As for the more consternatious of the two issues. I have run D&R, and it says everything is configured properly and that all my files are working properly:
I don't even know where to begin looking for bad data in my entry files; I read somewhere that this new GM version really tightens up stuff like weird characters in comments and such, but with almost 2000 entry pages, I don't know what to look for, how to find it, or where to start...
Thanks for the reply - it's really annoying because I can't post anything, can't reply to anything, can't rebuild my files (which I suspect is the underlying cause of the above), and all the while D&R tells me everything's cool.
|
|
|
Post by coldstone on Jul 10, 2007 23:00:21 GMT -5
I understand your frustration. You have hit on an area I would like to make Gm stronger, which is self diagnosis of problems. As far as pinpointing the location of the problem file, I believe this should help. - Download the file gmdownload.awardspace.com/gm-library-trace.zap by right clicking and choosing save-as
- rename the .zap file to .zip and uncompress
- Backup your existing gm-library.cgi, then rename gm-library-trace.txt to gm-library.cgi
- Create an empty file called trace.trc and chmod it to 666 (in the same directory as your gm-library file)
- Try running 'Rebuild All', text should show up in the trace.trc file
- Post a link to the trace.trc file
Write back if you are having any issues with getting the trace to work.
|
|
|
Post by cenobyte on Jul 11, 2007 9:15:29 GMT -5
Okay, when I tried to rebuild all, I got this message: And trace.trc had this text: And here's the link to a copy of trace.trc: www.cenobyte.ca/trace.trc...and apparently I've been lying to you. When I checked the index.htm file, it appears that I actually have been using 1.7.1, which makes me *even more confused* as to the 'porblems' I've been having with the upgrade.
|
|
|
Post by coldstone on Jul 11, 2007 17:45:00 GMT -5
Ok, I'll post a more in depth trace file for you soon.
I am confused to. Which index.html file are you referring too? I checked your gm.cgi, and it is 1.7.3, or do you mean your previous gm version?
|
|
|
Post by cenobyte on Jul 11, 2007 18:00:22 GMT -5
Sorry. I had been claiming that I upgraded from GM 1.3.1 to 1.7.3, but apparently, according to the cached index.htm file at www.cenobyte.ca/words/, I was running 1.7.1. I don't know if that makes a difference, but just for clarity; I upgraded from 1.7.1 to 1.7.3 (and not from 1.3 to 1.7.3). Thanks for looking in to this.
|
|
|
Post by coldstone on Jul 11, 2007 22:27:02 GMT -5
No problem. I appreciate the opportunity to research this issue and thank you for your patience. I know its frustrating when things aren't working.
I updated the trace file above (http://gmdownload.awardspace.com/gm-library-trace.zap), so if you could give it a go and post back the fresh trace.trc file, that would be great. Btw, you are correct, I don't think a link directly into your cgi-bin will work.
|
|
|
Post by cenobyte on Jul 12, 2007 9:15:04 GMT -5
Okay, I got the same error message as before - that _padDigits one. Here are the trace file contents and the link to a copy of the file: www.cenobyte.ca/trace.trc
|
|
|
Post by coldstone on Jul 12, 2007 22:00:36 GMT -5
Yeah, basically that _padDigits doesn't like what we are giving it. Before I put you through another round of uploading the file and doing the trace, I have a strong suspicion of what the problem is.
Can you post your gm-counter.cgi? I think there is some bad data in there, specifically there is a line: "stayattopentry=" and it should have a number after the equals sign. This number should be the 'keep this entry on top' entry number, or "stayattopentry=0" if no entry is being kept on top.
|
|
|
Post by cenobyte on Jul 13, 2007 9:44:23 GMT -5
|
|
|
Post by Carlos Phelps on Jul 13, 2007 10:00:01 GMT -5
Coldstone could this be the problem
commenttotal=-19
Shouldn't this been 0 or greater?
|
|
|
Post by coldstone on Jul 13, 2007 17:18:42 GMT -5
Thats not going to help, but see where it says "stayattopentry=archivetotal=0" (it should be "stayattopentry=0") ? That is the killer.
If you delete everything in your gm-counter.cgi, then do a "Diagnostic and Repair", it will fix that file. You should then be able to post, etc.
However, it doesn't fix everything. So if you post your gm-counter.cgi from before you upgraded, I can quickly tell you what it should be. Or if you want, the format of the old counter file was:
Line #, variable 1 = entrytotal 2 = archivetotal 3 = stayattopentry 4 = karmapos 5 = karmaneg 6 = commenttotal 7 = opentotal 8 = closedtotal
Write back if this fixes it.
|
|
|
Post by cenobyte on Jul 13, 2007 18:03:38 GMT -5
Okay, just to clarify, I should first delete everything in gm-counter.cgi, then run D&R, then replace whatever's in gm-counter.cgi with the information you posted?
Here is everything that *was* in my old gm-counter.cgi file, which I think must be a very old file, since I *know* I have a bunch more posts than this. Which leads me to believe that my backup didn't go altogether well.
"old gm-counter file":
|
|
|
Post by cenobyte on Jul 14, 2007 9:58:48 GMT -5
No dice. I deleted all the information in gm-counter.cgi, then ran D&R, which again gave me and my files a clean bill of health. This is what the file reads now: When I try to post an entry or comment, I still get: And, oddly enough, this is the URL associated with the error code: When I try to rebuild files, it works fine to rebuild the main index and the log archives, but when it tries to rebuild the archive master index, it tells me again that there is an "Invalid id parameter pass to getEntry". However, that being said, my new test posts *are* showing up on www.cenobyte.ca/words/, but the formatting is all bejiggered (which is just a template issue; nothing to worry about). When I try to change the templates, everything seems to be fine until I try to rebuild the files, at which point I get these Invalid ID paramater messages again. One more thing - I don't know if this is strangeness or just the way it's supposed to work...when I 'rebuild main entry pages', I am told it is "rebuilding pages 1366-1375" - why only 9 pages? I have my 'days to keep entry on main page' set to 14, so I don't know where the 9 came from. Could be nothing.
|
|