|
Post by stewiedv on Apr 16, 2008 17:11:15 GMT -5
upgraded from 1.3.1 to 1.8.1 on windows server. Had the line 49 errors and other path problems during install, but were corrected by adding full path entries as per other support thread. Now, after install, getting error when adding comments to an entry:
Error Notice The 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.
Which file do I need to add a path to for this one? Thx
|
|
|
Post by coldstone on Apr 18, 2008 17:09:16 GMT -5
That should be Gm_Storage. I am guessing the config subroutines haven't been updated to use the full path.
|
|
|
Post by stewiedv on Apr 18, 2008 19:12:47 GMT -5
I tried to add the full path to the two config lines:
my $lines = _loadFileArray( fn=>"gm-config.cgi", %params );
my $worked = _storeFileArray( fn=>'gm-config.cgi', lines=>$lines, %params );
However, it didn't work... the code took out the "\" between path folders and still got the error...
|
|
|
Post by coldstone on Apr 21, 2008 14:16:04 GMT -5
Can you post the error message? Also, can you post what your changes were? The path shouldn't be altered after the call to loadFileArray.
|
|
|
Post by stewiedv on Apr 21, 2008 15:54:00 GMT -5
the message:
Error Notice The 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.
All I did, as a test, was add the full path to the "gm-config.cgi" parts of the code. It then listed the jumbled path code in the same type of error message as above (i.e., the The file "cinetpubetcgm-config.cgi" doesn't seem to exist.)
|
|
|
Post by coldstone on Apr 22, 2008 11:51:31 GMT -5
Can you post the code you tried and then the error message? Without knowing what you did I can't recreate it and try to fix  Since the '/' shouldn't be removed, I am guessing you had a bug in the code you altered, but if you post it, I might be able to help. This is weird since I thought you said you had added full paths to other bits in Storage and it worked.
|
|
|
Post by stewiedv on Apr 22, 2008 14:09:14 GMT -5
no problem. To get the install to work with the line 49 problem during the upgrade, I added the full path to the gm_storage.pm, lines 80-83, as follows: my @exists = qw(E:\Inetpub\vcpro\v\cgibin\gm\gm-counter.cgi E:\Inetpub\vcpro\v\cgibin\gm\gm-karma.cgi E:\Inetpub\vcpro\v\cgibin\gm\gm-comments.cgi E:\Inetpub\vcpro\v\cgibin\gm\gm-upload.cgi E:\Inetpub\vcpro\v\cgibin\gm\gm-entrylist.cgi E:\Inetpub\vcpro\v\cgibin\gm\gm-cplog.cgi E:\Inetpub\vcpro\v\cgibin\gm\gm-authors.cgi E:\Inetpub\vcpro\v\cgibin\gm\gm-templates.cgi E:\Inetpub\vcpro\v\cgibin\gm\gm-banlist.cgi E:\Inetpub\vcpro\v\cgibin\gm\gm-config.cgi E:\Inetpub\vcpro\v\cgibin\gm\gm.cgi); my @writable = qw(E:\Inetpub\vcpro\v\cgibin\gm\gm-counter.cgi E:\Inetpub\vcpro\v\cgibin\gm\gm-entrylist.cgi E:\Inetpub\vcpro\v\cgibin\gm\gm-cplog.cgi E:\Inetpub\vcpro\v\cgibin\gm\gm-authors.cgi E:\Inetpub\vcpro\v\cgibin\gm\gm-templates.cgi E:\Inetpub\vcpro\v\cgibin\gm\gm-banlist.cgi E:\Inetpub\vcpro\v\cgibin\gm\gm-config.cgi); As coded above, I get the general error when trying to add a comment: Error Notice The 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. Based on the previous posts, I tried adding the full path to the other 2 entries for gm-config.cgi in gm-storage.pm, and added the path to those two lines: ## TODO USE CONFIGS SO THAT WE HAVE THE FULLY QUALIFIED PATH HERE ... IS THIS POSSIBLE HERE? my $lines = _loadFileArray( fn=>"E:\Inetpub\vcpro\v\cgibin\gm\gm-config.cgi", %params );
## TODO USE CONFIGS SO THAT WE HAVE THE FULLY QUALIFIED PATH HERE ... my $worked = _storeFileArray( fn=>'E:\Inetpub\vcpro\v\cgibin\gm\gm-config.cgi', lines=>$lines, %params ); With this change, the error is the same, but with a jumbled path: Error Notice The file "E:Inetpubvcprovibingmgm-config.cgi" doesn't seem to exist. Please check that your files are in the correct location and that GreyMatter is configured correctly. So, still have the same comment problem. Have reloaded all the files, run diagnostics and repair (no errors) and rebuilt everything, without solving the problem or showing any other issues.
|
|
|
Post by coldstone on Apr 23, 2008 17:45:46 GMT -5
Thanks for the details, this is helpful. I think the issue is with the first config modification. For some reason I don't know, I used double quotes ", instead of single quotes '. Which means that with windows filepath, the directory slashes are actually being treated as escaped characters.
So, that means you should use this instead:
my $lines = _loadFileArray( fn=>'E:\Inetpub\vcpro\v\cgibin\gm\gm-config.cgi', %params );
My apologies for that, I believe that should get us past this hurdle. Hopefully everything will work out from now on.
|
|
|
Post by stewiedv on Apr 23, 2008 18:31:48 GMT -5
ok, I changed the lines as you suggested and it no longer asked for gm-config.cgi, but then had the same error, now for the gm-templates.cgi file. So, I added the full path to all of the gm-templates.cgi entries in gm-storage.pm (and found/corrected another double quote error on one of those too). So, after adding all of those paths, I get a new error on comments: Software error: Can't find module (en_US) Gm_Utils::gmWarn() at line 250 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 24 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 24. BEGIN failed--compilation aborted at E:\Inetpub\vcpro\v\cgibin\gm\gm-comments.cgi line 24.
For help, please send mail to this site's webmaster, giving this error message and the time and date of the error. I have no idea where to go from here.
|
|
|
Post by coldstone on Apr 23, 2008 22:26:50 GMT -5
Thanks for your patience on this, we are close. In Gm_Storage, find line 240ish. It will have:
if( -e "lang/$lang.pm" ){
Change that to be the fully qualified path. However, be careful with the slashes. I would do something like this (the . character is glueing the two strings together):
if( -e 'E:\Inetpub\vcpro\v\cgibin\gm\'."lang/$lang.pm" ){
I really wish I knew why your setup is requiring the full path. Adding the full path works for now, but upgrades will be painfull, but I think this issue must be solvable. Have you used any other software like Greymatter (Wordpress, Coronto, etc.)? Did it have similar problems?
|
|
|
Post by stewiedv on Apr 24, 2008 3:24:11 GMT -5
Thx. I replaced the line you listed, and new error as follows: Software error: syntax error at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 250, near "&$errHandler( "Can't find " syntax error at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 388, near "} else" Global symbol "$errHandler" requires explicit package name at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 389. Unmatched right curly bracket at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 391, at end of line Global symbol "$errHandler" requires explicit package name at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 393. Global symbol "%gmentry" requires explicit package name at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 464. Unmatched right curly bracket at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 465, at end of line Can't use global @_ in "my" at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 522, near "= @_" syntax error at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 635, near "}" Can't use global @_ in "my" at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 660, near "= @_" E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm has too many errors. Compilation failed in require at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Web.pm line 49. BEGIN failed--compilation aborted at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Web.pm line 49. Compilation failed in require at E:\Inetpub\vcpro\v\cgibin\gm\gm-comments.cgi line 23. BEGIN failed--compilation aborted at E:\Inetpub\vcpro\v\cgibin\gm\gm-comments.cgi line 23.
For help, please send mail to this site's webmaster, giving this error message and the time and date of the error. As for other programs, I have not used the ones you listed, but have used several other cgi/pl/php scripts on this server without problem... had no problems with gm until the upgrade from 1.3.1. *new note - I had to remove that last line of code you gave me above... caused the login page to error out as well (worked fine after I pulled that code): Software error: [Thu Apr 24 09:17:06 2008] gm.cgi: syntax error at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 250, near "&$errHandler( "Can't find " [Thu Apr 24 09:17:06 2008] gm.cgi: syntax error at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 388, near "} else" [Thu Apr 24 09:17:06 2008] gm.cgi: Global symbol "$errHandler" requires explicit package name at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 389. [Thu Apr 24 09:17:06 2008] gm.cgi: Unmatched right curly bracket at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 391, at end of line [Thu Apr 24 09:17:06 2008] gm.cgi: Global symbol "$errHandler" requires explicit package name at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 393. [Thu Apr 24 09:17:06 2008] gm.cgi: Global symbol "%gmentry" requires explicit package name at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 464. [Thu Apr 24 09:17:06 2008] gm.cgi: Unmatched right curly bracket at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 465, at end of line [Thu Apr 24 09:17:06 2008] gm.cgi: Can't use global @_ in "my" at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 522, near "= @_" [Thu Apr 24 09:17:06 2008] gm.cgi: syntax error at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 635, near "}" [Thu Apr 24 09:17:06 2008] gm.cgi: Can't use global @_ in "my" at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 660, near "= @_" [Thu Apr 24 09:17:06 2008] gm.cgi: E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm has too many errors. [Thu Apr 24 09:17:06 2008] gm.cgi: Compilation failed in require at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Web.pm line 49. [Thu Apr 24 09:17:06 2008] gm.cgi: BEGIN failed--compilation aborted at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Web.pm line 49. [Thu Apr 24 09:17:06 2008] gm.cgi: Co[Thu Apr 24 09:17:06 2008] gm.cgi: [Thu Apr 24 09:17:06 2008] gm.cgi: syntax error at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 250, near "&$errHandler( "Can't find " [Thu Apr 24 09:17:06 2008] gm.cgi: [Thu Apr 24 09:17:06 2008] gm.cgi: syntax error at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 388, near "} else" [Thu Apr 24 09:17:06 2008] gm.cgi: [Thu Apr 24 09:17:06 2008] gm.cgi: Global symbol "$errHandler" requires explicit package name at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 389. [Thu Apr 24 09:17:06 2008] gm.cgi: [Thu Apr 24 09:17:06 2008] gm.cgi: Unmatched right curly bracket at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 391, at end of line [Thu Apr 24 09:17:06 2008] gm.cgi: [Thu Apr 24 09:17:06 2008] gm.cgi: Global symbol "$errHandler" requires explicit package name at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 393. [Thu Apr 24 09:17:06 2008] gm.cgi: [Thu Apr 24 09:17:06 2008] gm.cgi: Global symbol "%gmentry" requires explicit package name at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 464. [Thu Apr 24 09:17:06 2008] gm.cgi: [Thu Apr 24 09:17:06 2008] gm.cgi: Unmatched right curly bracket at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 465, at end of line [Thu Apr 24 09:17:06 2008] gm.cgi: [Thu Apr 24 09:17:06 2008] gm.cgi: Can't use global @_ in "my" at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 522, near "= @_" [Thu Apr 24 09:17:06 2008] gm.cgi: [Thu Apr 24 09:17:06 2008] gm.cgi: syntax error at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 635, near "}" [Thu Apr 24 09:17:06 2008] gm.cgi: [Thu Apr 24 09:17:06 2008] gm.cgi: Can't use global @_ in "my" at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm line 660, near "= @_" [Thu Apr 24 09:17:06 2008] gm.cgi: [Thu Apr 24 09:17:06 2008] gm.cgi: E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Storage.pm has too many errors. [Thu Apr 24 09:17:06 2008] gm.cgi: [Thu Apr 24 09:17:06 2008] gm.cgi: Compilation failed in require at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Web.pm line 49. [Thu Apr 24 09:17:06 2008] gm.cgi: [Thu Apr 24 09:17:06 2008] gm.cgi: BEGIN failed--compilation aborted at E:\Inetpub\vcpro\v\cgibin\gm\libs/Gm_Web.pm line 49. [Thu Apr 24 09:17:06 2008] gm.cgi: [Thu Apr 24 09:17:06 2008] gm.cgi: Compilation failed in require at E:\Inetpub\vcpro\v\cgibin\gm/gm-library.cgi line 21. [Thu Apr 24 09:17:06 2008] gm.cgi: [Thu Apr 24 09:17:06 2008] gm.cgi: BEGIN failed--compilation aborted at E:\Inetpub\vcpro\v\cgibin\gm/gm-library.cgi line 21. [Thu Apr 24 09:17:06 2008] gm.cgi: Compilation failed in require at E:\Inetpub\vcpro\v\cgibin\gm\gm.cgi line 52. mpilation failed in require at E:\Inetpub\vcpro\v\cgibin\gm/gm-library.cgi line 21. [Thu Apr 24 09:17:06 2008] gm.cgi: BEGIN failed--compilation aborted at E:\Inetpub\vcpro\v\cgibin\gm/gm-library.cgi line 21. Compilation failed in require at E:\Inetpub\vcpro\v\cgibin\gm\gm.cgi line 52.
For help, please send mail to this site's webmaster, giving this error message and the time and date of the error Thx
|
|
|
Post by coldstone on Apr 24, 2008 23:13:14 GMT -5
Yeah, its seems it introduced a syntax error in the perl code. I am not sure why its complaining, but you can try t his instead:
if( -e "E:\\Inetpub\\vcpro\\v\\cgibin\\gm\\lang\\$lang.pm" ){
So Greymatter 1.3.1 ran without any problems? If so I will have to see what changed from 1.3.1 that could have impacted this.
|
|
|
Post by stewiedv on Apr 25, 2008 3:20:08 GMT -5
Yes, gm 1.3.1 ran fine on the server, multiple instances in fact... and never had to do anything outside of the standard setup for that version. I added the corrected line of code and got 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\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 24 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 24. BEGIN failed--compilation aborted at E:\Inetpub\vcpro\v\cgibin\gm\gm-comments.cgi line 24.
For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.
|
|
|
Post by coldstone on Apr 25, 2008 9:30:20 GMT -5
This is progress. When you added the line to add the 'libs' directory, you will have to make another and add the 'lang' directory, as well. Basically copy the 'libs' line and change 'libs' to 'lang'.
|
|
|
Post by stewiedv on Apr 25, 2008 9:57:24 GMT -5
ok, I'm assuming you meant the libs line in all 5 of the cgi files? Based on this, I added the following line to all 5, right below its lib counterpart: use lang 'E:\Inetpub\vcpro\v\cgibin\gm\lang'; However, that caused the entire program to error out: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers.
|
|