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.
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.
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:
# All config files are readable/writeable and are CHMODed correctly # The local CGI path is correctly configured and all essential files are there # The entries/archives path is readable/writeable and is CHMODed correctly # The archive index file is readable/writeable and is CHMODed correctly # All entry files are working correctly # The entry list was successfully rebuilt # The main index file is readable/writeable and is CHMODed correctly
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.
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.
...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.
Last Edit: Jul 11, 2007 9:20:56 GMT -5 by cenobyte
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.
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.
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.
Last Edit: Jul 13, 2007 17:19:42 GMT -5 by coldstone
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.
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.
Last Edit: Jul 14, 2007 18:23:51 GMT -5 by cenobyte