Welcome Visitor, Please Login or Register Now |
|
Friday, April 26, 2024 06:26 AM |
|
ehammer |
Registered Member |
Posts: 15 |
Joined: 04-26-24 06:26 AM |
|
|
|
|
|
|
|
|
|
VisualEditor.cgi |
Edit Delete Quote |
First Post Posted on: 06-01-08 05:04 PM |
|
|
|
Hi All,
I keep getting the following error when trying to use the visual HTML editor as a seller - however its does show on the admin side of the software but always brings up a white screen with nothing to edit. Anyone had the same problem ?. The error that keeps on coming up is :-
Software error: Missing right curly or square bracket at VisualEditor.cgi line 99, at end of line syntax error at VisualEditor.cgi line 99, at EOF Execution of VisualEditor.cgi aborted due to compilation errors.
Any help would be apperciated.
Ben |
|
|
|
|
|
Anonymous |
Registered Member |
Posts: |
Joined: 04-26-24 06:26 AM |
|
|
|
|
PM |
|
|
|
|
Re: VisualEditor.cgi |
Edit Delete Quote |
Reply #: 1 Posted on: 06-01-08 05:10 PM |
|
|
|
|
|
|
ehammer |
Registered Member |
Posts: 15 |
Joined: 04-26-24 06:26 AM |
|
|
|
|
|
|
|
|
|
Re: VisualEditor.cgi |
Edit Delete Quote |
Reply #: 2 Posted on: 06-01-08 07:00 PM |
|
|
|
HI !,
Thanks for the advice, but I have checked the file over and there is a } at the end of the file (see below). The question regarding the edit, I think its the ONLY file I have not edited ops: . Anyway the .cgi file code is below for your viewing, can you let me know if its different to yours ! - ta in advance.
Ben
#!/usr/bin/perl #!C:\perl\bin\perl.exe =Copyright Infomation ========================================================== Program Name : Mewsoft NetAuction Program Version : 6.00 Program Author : Elsheshtawy, A. A. Home Page : http://www.mewsoft.com Copyrights © 2001-2004 Mewsoft Corporation. All rights reserved. ========================================================== =cut #========================================================== $| = 1; #print "Content-type: text/html
"; use CGI::Carp qw(fatalsToBrowser); #========================================================== BEGIN { undef %Param; undef %Global; undef @User_Fields; undef @Links_Fields; undef @Category_Fields; undef %Cookies; undef %License_Keys; } #========================================================== BEGIN { unshift @INC, "."; $0 = $^X unless ($^X =~ m%(^|[/\\])(perl)|(perl.exe)$%i); $Cwd = "."; if ($0 =~ m%^(.*)[/\\]%){$Cwd=$1; unshift @INC, $Cwd;}; if (!open (PATH, "$Cwd/data/startup.ini")){ if (!open (PATH, "./data/startup.ini")){ die "can not open path file $Cwd/data/startup.ini or ./data/startup.ini: $!. Please make sure the directory data and all its subdirectories and files are writables."; } } @Config = <PATH>; close (PATH); foreach $Temp(@Config) { $Temp =~ s/
?
$//; $Temp =~ s/^\s+//; if (!$Temp || $Temp =~ /^\#/) {next;} ($K, $V) = split('=', $Temp); $Global{$K} = $V; } if (! $Global{CGI_Dir}) { $0 = $^X unless ($^X =~ m%(^|[/\\])(perl)|(perl.exe)$%i); if ($0 =~ m%^(.*)[/\\]%){$Global{CGI_Dir}=$1}; if (!-d $Global{CGI_Dir}) { $Global{CGI_Dir} = ""; $Temp = $ENV{SCRIPT_FILENAME}; @Temp = split (/[\/\\]/, $Temp); pop @Temp; $Temp = join ('/', @Temp); if (-d $Temp) {$Global{CGI_Dir}=$Temp;} } $Global{CGI_Dir} ||= "."; } $Global{CGI_Dir} =~ s/\\/\//g; if (!$Global{Visual_Editor_Prog}) { $0 = $^X unless ($^X =~ m%(^|[/\\])(perl)|(perl.exe)$%i); $0 =~ m%^(.*)[/\\](.*)%; $Global{Visual_Editor_Prog} = $2; $Global{Visual_Editor_Prog} ||= undef; } if (!$Global{CGI_URL}) { $http = "http://"; $Domain = ""; $Script_URL = ""; if ($ENV{HTTP_REFERER}) {if ($ENV{HTTP_REFERER} =~ m|^https://|i) {$http = "https://";}} if ($ENV{HTTP_HOST}) {$Domain = $http . $ENV{HTTP_HOST};} if ($ENV{SCRIPT_NAME}) {$Script_URL = $Domain . $ENV{SCRIPT_NAME};} @Temp = split (/[\/\\]/, $Script_URL); pop @Temp; $Global{CGI_URL} = join ('/', @Temp); } unshift @INC, $Global{CGI_Dir}; } use configuration; use startup; #========================================================== &Program_Start; $Script_URL = "$Global{CGI_URL}/$Global{Visual_Editor_Prog}"; $Script_URL = &Get_Script_URL; #========================================================== &Visual_Editor(); exit 0; #========================================================== sub Visual_Editor{ my($Template);
#&Read_Language_File($Global{Language_Sell_File}) sub Visual_Editor{ my($Template);
#&Read_Language_File($Global{Language_Sell_File}); $Template = &Translate_File($Global{Visual_Editor_Template});
&Display($Template, 1); } #========================================================== |
|
|
|
|
|
|
mewsoft |
Administrator Team Member |
Posts: 5381 |
Joined: 04-26-24 06:26 AM |
Location: knxoville, TN, USA |
|
|
|
|
|
|
|
|
|
Anonymous |
Registered Member |
Posts: |
Joined: 04-26-24 06:26 AM |
|
|
|
|
PM |
|
|
|
|
Re: VisualEditor.cgi |
Edit Delete Quote |
Reply #: 4 Posted on: 06-01-08 07:11 PM |
|
|
|
|
|
ehammer |
Registered Member |
Posts: 15 |
Joined: 04-26-24 06:26 AM |
|
|
|
|
|
|
|
|
|
Re: VisualEditor.cgi |
Edit Delete Quote |
Reply #: 5 Posted on: 06-01-08 07:13 PM |
|
|
|
Hi Mewsoft,
I am pleased to say that my ftp proggy is setup to transfer it in Ascii, but it is set with the permission 755 !.
Ben |
|
|
|
|
|
Anonymous |
Registered Member |
Posts: |
Joined: 04-26-24 06:26 AM |
|
|
|
|
PM |
|
|
|
|
Re: VisualEditor.cgi |
Edit Delete Quote |
Reply #: 6 Posted on: 06-01-08 07:19 PM |
|
|
|
|
|
|
ehammer |
Registered Member |
Posts: 15 |
Joined: 04-26-24 06:26 AM |
|
|
|
|
|
|
|
|
|
Re: VisualEditor.cgi |
Edit Delete Quote |
Reply #: 7 Posted on: 06-01-08 07:21 PM |
|
|
|
HI Wanna,
I tried that , and the bottom code of that files now looks like :-
#========================================================== &Program_Start; $Script_URL = "$Global{CGI_URL}/$Global{Visual_Editor_Prog}"; $Script_URL = &Get_Script_URL; #========================================================== &Visual_Editor(); exit 0; #========================================================== sub Visual_Editor{ my($Template);
#&Read_Language_File($Global{Language_Sell_File}); $Template = &Translate_File($Global{Visual_Editor_Template});
&Display($Template, 1); } #==========================================================
The editor displays without any problem but you cant select a colour or txt type more than once as the option just fades out, and prevents you from using it all then.
Thanks for the help so far though, and more ideas ?
Ben |
|
|
|
|
|
|
Anonymous |
Registered Member |
Posts: |
Joined: 04-26-24 06:26 AM |
|
|
|
|
PM |
|
|
|
|
Re: VisualEditor.cgi |
Edit Delete Quote |
Reply #: 8 Posted on: 06-01-08 07:24 PM |
|
|
|
|
|
ehammer |
Registered Member |
Posts: 15 |
Joined: 04-26-24 06:26 AM |
|
|
|
|
|
|
|
|
|
Re: VisualEditor.cgi |
Edit Delete Quote |
Reply #: 9 Posted on: 06-01-08 07:28 PM |
|
|
|
Wanna,
THANKS !!!!!!!!! yep you are right, all sorted now, and THANKS again for your valued help !, perhaps you should work for Mewsoft as Tech Support !.
Cheers again
Ben |
|
|
|
|
|
Anonymous |
Registered Member |
Posts: |
Joined: 04-26-24 06:26 AM |
|
|
|
|
PM |
|
|
|
|
Re: VisualEditor.cgi |
Edit Delete Quote |
Reply #: 10 Posted on: 06-01-08 07:29 PM |
|
|
|
|
|
|
|
Mewsoft and Mewsoft Logos are registered trademarks.
® Corporation. All Rights Reserved.
Copyright -
Privacy -
Terms of Use
| Page Load: 0.3680 Seconds |
|