|
Post by petefinnigan on Oct 24, 2007 7:37:37 GMT -5
Hi Guys,
I got an error on 1.7.4 as follows:
Software error: An internal Greymatter error has occurred in _padDigits, possibly due to invalid data (new), run Diagnostic and Repair and check gm-entrylist and gm-counter.
This was done by adding an entry, then pressing preview and thenm pressing re-edit the entry, the re-edit triggers the error.
A work around for the moment is to press the browser back button twice and get back to the edit entry screen and after any necessary chnages to press post entry rather than preview.
This is recreatable in my test blog so its unlikely to be due to the data in the post.
cheers
Pete
|
|
|
Post by coldstone on Oct 24, 2007 17:33:08 GMT -5
gahh, yes. Its not picking up that you are editing a new entry, instead its trying to edit an existing one.
Thanks for catching this, hopefully I'll have a fix shortly.
|
|
|
Post by coldstone on Oct 24, 2007 21:56:55 GMT -5
Ok, here is a fix. This defect will only affect 1.7.4.
Add this new block of code to line 2327 in gm.cgi (should be a blank line):
elsif( $IN{'entryid'} eq 'new' ){ newEntry(); }
What do people think? Is this worth making a 1.7.4.1 release to fix?
|
|
|
Post by petefinnigan on Oct 25, 2007 5:14:37 GMT -5
Hi Coldstone,
Thanks for your fast response. I have applied the fixes to all my blogs.
thanks again
Cheers
Pete
|
|
|
Post by marlinnut on Nov 13, 2007 23:51:19 GMT -5
What do people think? Is this worth making a 1.7.4.1 release to fix? No, but it sounds like there'll be a 1.7.4.1 release for the simple formatting stuff, so you might want to roll this in ... ;D
|
|
|
Post by coldstone on Nov 14, 2007 15:00:59 GMT -5
Good point.
|
|
|
Post by marlinnut on Nov 16, 2007 14:16:24 GMT -5
Ok, here is a fix. This defect will only affect 1.7.4. Add this new block of code to line 2327 in gm.cgi (should be a blank line): elsif( $IN{'entryid'} eq 'new' ){ newEntry(); }
Now that I've actually gotten around to making the fix, it doesn't appear to work for me - I still get the same error. Assuming I put it in the correct spot, it looks like it becomes part of sub newentry, and goes between blocks of code that's commented out?
|
|
|
Post by coldstone on Nov 16, 2007 21:38:28 GMT -5
Hmm, either you aren't in 1.7.4 or you went to the wrong line. It should actually be near the top of the editEntry subroutine, following the first if statement in that sub.
|
|
|
Post by marlinnut on Nov 18, 2007 10:27:42 GMT -5
Interesting ... editing the file in BBEdit, it shows that spot as line 2469. That said, when placed there, the code works just fine. Thanks for the patience ... 
|
|
|
Post by coldstone on Nov 22, 2007 0:52:44 GMT -5
That is kind of weird, as I use TextWrangler (the free bbedit). Maybe its not counting comments?
Don't worry about it, glad its working.
|
|