Grey Matter Forums
« More windows path problems »

Welcome Guest. Please Login or Register.
May 21, 2013, 9:37am



Greymatter: Free Personal Blogging Software

About Greymatter (including System Requirements)

Greymatter on FreshMeat

Download current version from:

News: Greymatter 1.8.2 is released! Read the announcement.

Got a minute? We want to know what's your preferred site navigation?

Please read the security announcement regarding author passwords.

Next Greymatter release will be 1.8.3


Grey Matter Forums :: Support :: Trouble Shooting :: More windows path problems
« Page 2 of 2 Jump to page   Go    [Search This Thread] [Share Topic] [Print]
 AuthorTopic: More windows path problems (Read 2,066 times)
coldstone
Global Moderator
*****
member is offline

[avatar]


[homepage]

Joined: Aug 2006
Posts: 816
Karma: 18
 Re: More windows path problems
« Reply #15 on Apr 27, 2008, 5:49pm »

We are close. The perl syntax is to 'use lib' even if the file(s) aren't called 'lib' or 'libs'. So you actually want:
Code:
use lib 'E:\Inetpub\vcpro\v\cgibin\gm\lang';

And yes, you will want to modify all 5 cgi files that you had previously added the 'libs' line to. I think(hope) this might be the final change we have to make.
Link to Post - Back to Top  IP: Logged
stewiedv
New Member
*
member is offline





Joined: Apr 2008
Gender: Male
Posts: 18
Karma: 0
 Re: More windows path problems
« Reply #16 on Apr 28, 2008, 7:25pm »

Sorry, my bad. I corrected the lines on all 5 and get a new error:

Software error:
error loading lang (en_US): Can't locate lang/en_US.pm in @INC (@INC contains: E:\Inetpub\vcpro\v\cgibin\gm\lang E:\Inetpub\vcpro\v\cgibin\gm\libs C:/Perl/site/lib C:/Perl/lib .) at (eval 2) line 3.

Gm_Utils::gmWarn() at line 247 in E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm (Gm_Storage)
Gm_Storage::loadLanguage() at line 61 in E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Core.pm (Gm_Core)
(eval)() at line 28 in E:\Inetpub\vcpro\v\cgibin\gm\gm-comments.cgi (main)
main::BEGIN() at line 0 in E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Core.pm (main)
(eval)() at line 0 in E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Core.pm (main).
Error originated at at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Utils.pm line 420.
Compilation failed in require at E:\Inetpub\vcpro\v\cgibin\gm\gm-comments.cgi line 28.
BEGIN failed--compilation aborted at E:\Inetpub\vcpro\v\cgibin\gm\gm-comments.cgi line 28.

For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.
Link to Post - Back to Top  IP: Logged
coldstone
Global Moderator
*****
member is offline

[avatar]


[homepage]

Joined: Aug 2006
Posts: 816
Karma: 18
 Re: More windows path problems
« Reply #17 on Apr 28, 2008, 9:56pm »

That is bizarre. The code would complain if the en_US module was missing, so, it can find it with the qualified path. I can see that the full path to the lang directory is in your INC path.

I searched on the web, and the only suggestion I could find is that you make sure lan/en_US.pm is uploaded as ascii. The only thing I can think of, which may work, is that '.' doesn't seem to be 'E:\Inetpub\vcpro\v\cgibin\gm'. So I wonder if you add a use libs line with:
Code:
use lib 'E:\Inetpub\vcpro\v\cgibin\gm';

Before any of the other use lib calls might work. You only have to change gm.cgi for now, to see if it worked. I am begining to suspect that somehow, your Perl doesn't think its running in your cgibin directory, and so wants everything fully qualified.
Link to Post - Back to Top  IP: Logged
stewiedv
New Member
*
member is offline





Joined: Apr 2008
Gender: Male
Posts: 18
Karma: 0
 Re: More windows path problems
« Reply #18 on Apr 28, 2008, 11:02pm »

Sorry, I dont understand it either... this is the only problem I"m having w any perl/cgi progs.

I added the line on top of the other two lib lines in all 5 files, as well as re-ftp'd all of the files to the server via ascii. After that, get a new message (looks like syntax here):

Software error:
Can't locate E:Inetpubvcprovibingmgm-library.cgi in @INC (@INC contains: E:\Inetpub\vcpro\v\cgibin\gm\lang E:\Inetpub\vcpro\v\cgibin\gm\libs E:\Inetpub\vcpro\v\cgibin\gm C:/Perl/site/lib C:/Perl/lib .) at E:\Inetpub\vcpro\v\cgibin\gm\gm-comments.cgi line 32.

For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.


Now, gm.cgi also has a different path line at the top of the file that is a bit different as well... not sure if it matters here or not:

chdir "E:\\Inetpub\\vcpro\\v\\cgibin\\gm";
Link to Post - Back to Top  IP: Logged
coldstone
Global Moderator
*****
member is offline

[avatar]


[homepage]

Joined: Aug 2006
Posts: 816
Karma: 18
 Re: More windows path problems
« Reply #19 on Apr 29, 2008, 11:14pm »

Did you add the chdir bit? I would have thought that would fix all the other issues. I believe it should make your script run in the correct directory.

So, you will have to change gm.cgi, gm-comments.cgi, gm-karma.cgi, and gm-upload.cgi. There is a line:
Code:
require "gm-library.cgi";

Which looks like you have changed to be the full path. However, the double quotes means that its interpreting the \'s as special characters. So, you can change the double quotes to single:
Code:
require 'gm-library.cgi';

Or do the double slash (the first slash 'escapes' the second slash, so that it comes out to be just one slash), as per your chdir command.

BTW, which 5 files are you changing? Since the other files include gm-library, you may not have to alter gm.cgi, gm-comments.cgi, gm-karma.cgi, or gm-upload.cgi. However, I would wait until everything is working before changing anything like that.
Link to Post - Back to Top  IP: Logged
stewiedv
New Member
*
member is offline





Joined: Apr 2008
Gender: Male
Posts: 18
Karma: 0
 Re: More windows path problems
« Reply #20 on Apr 30, 2008, 11:26am »

The chdir part was in the 1.3.1 files originally... I may have added it as part of the upgrade process, though I don't remember for sure... its only in the gm.cgi file though.

Either pulling out the full path from the require "gm-library.cgi"; line, or changing it to the single quotes, gives the same new error:


Error Notice
The file "gm-counter.cgi" doesn't seem to exist. Please check that your files are in the correct location and that GreyMatter is configured correctly.


Couldn't find a gm-counter.cgi line to add the path though. As for the 5 files, yes, I was making all of these path changes to the same lines in all 5, when applicable (gm-library.cgi, gm.cgi, gm-comments.cgi, gm-karma.cgi, & gm-upload.cgi).

Link to Post - Back to Top  IP: Logged
coldstone
Global Moderator
*****
member is offline

[avatar]


[homepage]

Joined: Aug 2006
Posts: 816
Karma: 18
 Re: More windows path problems
« Reply #21 on May 1, 2008, 4:08pm »

The gm-counter.cgi file will be in the Gm_Storage.pm file. Its basically hiding where the data for everything comes from by having it in that file. If you look for gm-counter.cgi you should see several places in Gm_Storage to change.
Link to Post - Back to Top  IP: Logged
stewiedv
New Member
*
member is offline





Joined: Apr 2008
Gender: Male
Posts: 18
Karma: 0
 Re: More windows path problems
« Reply #22 on May 1, 2008, 7:16pm »

Ok, got it working!! I added the path to for gm-counter.cgi in gm-storage.pm, and then got new path error messages for both gm-authors.cgi and gm-entrylist.cgi. So, I added full path to all of those entries (as well as for gm-cplog.cgi - it didnt get an error but it was the only cgi file left without a full path in the file). Also, the first entry for every cgi file had the same double/single quotes issue as well. Once all of that was entered/corrected, comments worked!! :) I haven't run into any other problems as of yet, but will let you know if I do.

Thanks for all of you help!
« Last Edit: May 1, 2008, 7:19pm by stewiedv »Link to Post - Back to Top  IP: Logged
coldstone
Global Moderator
*****
member is offline

[avatar]


[homepage]

Joined: Aug 2006
Posts: 816
Karma: 18
 Re: More windows path problems
« Reply #23 on May 1, 2008, 11:19pm »

No problem, I am just glad to see it finally working out :)
Link to Post - Back to Top  IP: Logged
« Page 2 of 2 Jump to page   Go    [Search This Thread] [Share Topic] [Print]

Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!
Terms of Service | Privacy Policy | Notice | FTC Disclosure | Report Abuse | Mobile