I had a few questions though. Are you able to edit any other templates?
I was wondering if this might be a permissions issue. Perhaps gm-templates.cgi is not readable. Have you tried running Diagnostic and Repair? You could also try chmodding gm-templates.cgi to 666. Otherwise, I think I have read where 666 won't work sometimes and it has to be something else.
Lastly, I wonder if it might be a path issue. If post your paths from the config page, we could check that they look cool.
Last Edit: Feb 19, 2007 14:36:29 GMT -5 by coldstone
if you want to reinstall, you can just make a copy of your archives and cgi-bin/blog directory.
The only files you will need are gm-authors.cgi, gm-templates.cgi, gm-banlist.cgi, gm-cplog.cgi and gm-configs.cgi. Copy these into the new install cgi-bin directory from your backup.
If you want, you could try something before going through the whole hassle of reinstalling. Just make a copy of your gm-templates.cgi, then re-upload the template file that ships with GM. If you can edit that with no problems, it would have to be something with the templates file.
You must be exactly right, because I was able to edit a fresh template file. I just edited my old template file in an HTML editor by hand and rebuilt everything and the entry pages look how they're supposed to.
But it still won't let me edit the Entry-Page related templates through the script. It's kind of a pain in the ass to have to do it manually and re-upload the templates file. Any idea what's causing it? I have the same problem with my actual entries - I can edit some of them, but some of them I get the Forbidden error.
I am guessing a bad character if its with some but not others, but I don't know how that would have gotten in there. But the bad character would have to mess only with editing, and not rebuilding.
I am kinda curious to look at the file. If you can pick one of your entries and copy the file in your archives from .cgi to .txt and post the url that would be cool. The only 'confidential' information in an entry file is the ip or any karma voters or commenters, so if you pick an entry that doesn't have those it should be cool.
Ok, I integrated that page into my test GM installation and everything worked. I was able to edit the file and everything seemed cool.
Previously you said you were running on Mac OSX? Is that on your server? Are you able to login to your machine? If so, I would recommend using TextWrangler (its free) and opening your problem files and doing a 'convert to ascii' (its a drop down item).
Otherwise, you can download your files with your ftp program and re-upload them as 'ascii' and see if that fixes the issue. I am guessing when I downloaded that file, that the bad character was removed in the process.
Lastely, its a long shot, but if you have shell access, you can do a 'ls -la' in your archives directory and verify that those entries have the same permissions as the others, but chmod modifies those permissions, so I don't think its that.