|
Post by andreapou on Mar 27, 2008 13:05:53 GMT -5
I have tried everything I can find in the forums and need some guidance. - I have Greymatter 1.3 installed fine.
- I would like to upgrade to 1.8.1 and install Pete's Greymatter RSS 2.0 mod.
- I am on a Windows server running Perl v5.8.7 built for MSWin32-x86-multi-thread.
- I asked my hosting company what the path should be and they said to keep it set to "#!/usr/bin/perl" ... I don't need to do C:\ or D:\
- I don't have the options for CHMOD. My hosting company provides a generic "File Permissions" thing. I can choose R W X D and I have a check box for "all files and subfolders".
- I have the cgi files in a sub-directory called "blog"
- I have the main files in a folder off the root called "blog"
I backed up "archives" and the cgi-bin > "blog" folders. I uploaded "libs", "lang", and all the new files. I changed them through file permissions to RWX. When I go to the blog/gm.cgi file, I get the following message: Software error:
Can't locate Gm_Constants.pm in @inc (@inc contains: libs c:/Perl/lib c:/Perl/site/lib .) at D:\inetpub\electricquilt\cgi-bin\blog\gm.cgi line 49.BEGIN failed--compilation aborted at D:\inetpub\electricquilt\cgi-bin\blog\gm.cgi line 49.
For help, please send mail to this site's webmaster, giving this error message and the time and date of the error. What am I missing? Thanks. -Andrea p.s. If I try changing the first line of gm.cgi to have a -wt at the end and change line 51 to be: require ".gm-library.cgi"; I get the message: "CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers."
|
|
|
Post by coldstone on Mar 27, 2008 17:44:16 GMT -5
Its a perl path issue. So, just to verify though, you have your gm.cgi file under blog, and then you have blog/libs?
Perl is looking for the files in the libs directory, but isn't finding it. However, I can see that 'libs' is the first item in your INC (Perl Include) path.
|
|
|
Post by andreapou on Mar 28, 2008 8:05:12 GMT -5
I do have gm.cgi and the libs folder in the blog folder. All the files are there in the blog folder.
Do lines 462, 487, or 509 need to be modified at all due to this subfolder?
In GM 1.3 there was that handy line: Win32::SetCwd("$cwd/cgi-bin/blog");
I haven't found anything like that in 1.8.1 or 1.7.4.
Thanks in advance.
-Andrea
|
|
|
Post by coldstone on Apr 1, 2008 9:38:18 GMT -5
Hmm, that Win32 command is new to me. I didn't see it in 1.3.1. You could try adding that to the top gm.cgi.
What would you change at lines 462, 487, or 509? The error you were originally getting is from line 49. Its looking for Gm_Constants and its not finding it in the 'libs' directory.
Greymatter can't currently run with -wt (warnings and taint) so if that is still modified for that, it will continue to fail. You could try changing line 49 from just 'libs' to be the fully qualified path (such as "D:\inetpub\electricquilt\cgi-bin\blog\libs").
|
|
|
Post by andreapou on Apr 2, 2008 10:52:02 GMT -5
Dear ColdStone, Thanks for your help so far. I have a new error message that seems to be coming up in at least the Greymatter format. I hope that's progress. Here's what I did: In gm_comments.cgi, gm_karma.cgi, gm_library.cgi, gm_upload.cgi, and gm.cgi, I changed the line about libs to be: use lib 'D:\inetpub\electricquilt\cgi-bin\blog\libs';I followed this post, and in \cgi-bin\blog\libs, I changed GM_Storage.pm around line 80 to read: my @exists = qw( D:\inetpub\electricquilt\cgi-bin\blog\libs\gm-counter.cgi D:\inetpub\electricquilt\cgi-bin\blog\libs\gm-karma.cgi D:\inetpub\electricquilt\cgi-bin\blog\libs\gm-comments.cgi D:\inetpub\electricquilt\cgi-bin\blog\libs\gm-upload.cgi D:\inetpub\electricquilt\cgi-bin\blog\libs\gm-entrylist.cgi D:\inetpub\electricquilt\cgi-bin\blog\libs\gm-cplog.cgi D:\inetpub\electricquilt\cgi-bin\blog\libs\gm-authors.cgi D:\inetpub\electricquilt\cgi-bin\blog\libs\gm-templates.cgi D:\inetpub\electricquilt\cgi-bin\blog\libs\gm-banlist.cgi D:\inetpub\electricquilt\cgi-bin\blog\libs\gm-config.cgi gm.cgi);There is no -wt in the first line of gm.cgi. When I look at my old 1.3.1 stuff, there were 4 lines in front of the first shebang #!/usr/bin/perl. Adding these 3 lines, gives me a counter error message. So I took it back out: use Win32; $cwd = Win32::GetCwd(); Win32::SetCwd("$cwd/cgi-bin/blog");I didn't know what this line was BEGIN{($_=$0)=~s![\\/][^\\/]+$!!;push@INC,$_}, so I didn't add it in front of those 3 when testing. Adding just the line Win32::SetCwd("$cwd/cgi-bin/blog"); after the first line ( #!/usr/bin/perl) in comments, karma, upload, and gm doesn't help. So, I took it back out. So where am I?The only thing that I've changed from the 1.8.1 upgrade are the above paths mentioned for libs going to D:\inetpub\electricquilt\cgi-bin\blog\libs and the paths in GM_Storage. The exact error message is: Error NoticeThe file "gm-config.cgi" doesn't seem to exist. Please check that your files are in the correct location and that GreyMatter is configured correctly. Any suggestions? Thanks. -Andrea
|
|
|
Post by coldstone on Apr 3, 2008 18:08:29 GMT -5
I think we are making progress, its just unfortunate we are having to give a fully qualified path for the URLS.
Luckily, we are almost done with the changes. So, you will want to go through Storage.pm and update any reference to gm-config.cgi, gm-templates.cgi, and gm-entrylist.cgi with the full path. Basically, look through Storage for '.cgi' and you will see the places you have to fix.
If you just modify the places where 'open' is called, you will break Greymatter because those subroutines are reused for files in the cgi directory and the archive directory.
Hope this helps.
|
|
|
Post by stewiedv on Apr 11, 2008 14:31:23 GMT -5
I am in the same boat (windows server w perl, upgrading from 1.3.1 to 1.8.1). Following the steps above, except removing the "\lib" from the suggested full windows paths, and adding the path to "my @writable =" in GM_Storage.pm as well, I get a login sgreen without errors. However, now it says that my password is invalid, even though I have verified it in the gm_authors.cgi. Any suggestions?
|
|
|
Post by coldstone on Apr 11, 2008 15:11:53 GMT -5
Yes. Greymatter changed how it authenticates users, there is a note at the top of the page about it (or <a href="http://greymatterforum.proboards82.com/index.cgi?board=gmsecurity&action=display&thread=1185137993&page=1">here</a>).
Basically, if you have already upgraded, then you will want to replace you password with: woCCASD0Wk0IA
You can then login with the password 'wonderland' and immediately change your password back to what you originally had. Let me know if there are problems.
|
|
|
Post by stewiedv on Apr 12, 2008 13:51:47 GMT -5
Thanks for the info on auth. I did as you suggested and everything seemed to work fine after that (upgrade function, etc).
Now the only problem is with new posts since the upgrade... Any word with an apostrophe, or other such marks, now post with odd ascii characters instead of the correct ones. So, for example, "How's" shows up as "How’s" and "..." shows as "…"
|
|
|
Post by coldstone on Apr 14, 2008 22:53:10 GMT -5
Noticed you started another thread for this (which is the right thing todo). I will respond there.
|
|