Welcome Visitor, Please Login or Register Now Friday, April 26, 2024 06:26 AM 
Forums Index > Mewsoft Products > Auctionawy > VisualEditor.cgi
New Topic   New Reply
Search for:
Author Message
ehammer ehammer's personal page
Registered Member
Posts: 15 Display member's posts
Joined: 04-26-24 06:26 AM
Member Offline
View Member's Profile Send private message
 
Back to top
VisualEditor.cgi Edit Delete Reply with quote Quote
First Post Posted on: 06-01-08 05:04 PM next post first post
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 Anonymous's personal page
Registered Member
Posts: Display member's posts
Joined: 04-26-24 06:26 AM
Member Offline
View Member's Profile PM
 
Back to top
Re: VisualEditor.cgi Edit Delete Reply with quote Quote
Reply #: 1 Posted on: 06-01-08 05:10 PM next post previous post
edited
ehammer ehammer's personal page
Registered Member
Posts: 15 Display member's posts
Joined: 04-26-24 06:26 AM
Member Offline
View Member's Profile Send private message
 
Back to top
Re: VisualEditor.cgi Edit Delete Reply with quote Quote
Reply #: 2 Posted on: 06-01-08 07:00 PM next post previous post
HI !,

Thanks for the advice, but I have checked the file over and there is a } at the end of the file (see below). big grin The question regarding the edit, I think its the ONLY file I have not edited embarrasmentops: . 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 mewsoft's personal page
Administrator Team Member
Posts: 5381 Display member's posts
Joined: 04-26-24 06:26 AM
Location: knxoville, TN, USA
Member Offline
View Member's Profile Visit member's website Mewsoft Corporation Send private message ICQ Messenger: ICQ AIM Messenger: AIM YIM Messenger: Yahoo MSN Messenger: MSN
 
Back to top
Re: VisualEditor.cgi Edit Delete Reply with quote Quote
Reply #: 3 Posted on: 06-01-08 07:09 PM next post previous post
You may need to transfer it in ASCII mode only

Mewsoft Support
www.mewsoft.com

Anonymous Anonymous's personal page
Registered Member
Posts: Display member's posts
Joined: 04-26-24 06:26 AM
Member Offline
View Member's Profile PM
 
Back to top
Re: VisualEditor.cgi Edit Delete Reply with quote Quote
Reply #: 4 Posted on: 06-01-08 07:11 PM next post previous post
edited
ehammer ehammer's personal page
Registered Member
Posts: 15 Display member's posts
Joined: 04-26-24 06:26 AM
Member Offline
View Member's Profile Send private message
 
Back to top
Re: VisualEditor.cgi Edit Delete Reply with quote Quote
Reply #: 5 Posted on: 06-01-08 07:13 PM next post previous post
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 Anonymous's personal page
Registered Member
Posts: Display member's posts
Joined: 04-26-24 06:26 AM
Member Offline
View Member's Profile PM
 
Back to top
Re: VisualEditor.cgi Edit Delete Reply with quote Quote
Reply #: 6 Posted on: 06-01-08 07:19 PM next post previous post
edited
ehammer ehammer's personal page
Registered Member
Posts: 15 Display member's posts
Joined: 04-26-24 06:26 AM
Member Offline
View Member's Profile Send private message
 
Back to top
Re: VisualEditor.cgi Edit Delete Reply with quote Quote
Reply #: 7 Posted on: 06-01-08 07:21 PM next post previous post
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 Anonymous's personal page
Registered Member
Posts: Display member's posts
Joined: 04-26-24 06:26 AM
Member Offline
View Member's Profile PM
 
Back to top
Re: VisualEditor.cgi Edit Delete Reply with quote Quote
Reply #: 8 Posted on: 06-01-08 07:24 PM next post previous post
edited
ehammer ehammer's personal page
Registered Member
Posts: 15 Display member's posts
Joined: 04-26-24 06:26 AM
Member Offline
View Member's Profile Send private message
 
Back to top
Re: VisualEditor.cgi Edit Delete Reply with quote Quote
Reply #: 9 Posted on: 06-01-08 07:28 PM next post previous post
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 Anonymous's personal page
Registered Member
Posts: Display member's posts
Joined: 04-26-24 06:26 AM
Member Offline
View Member's Profile PM
 
Back to top
Re: VisualEditor.cgi Edit Delete Reply with quote Quote
Reply #: 10 Posted on: 06-01-08 07:29 PM last post previous post
edited
Page 1 of 1
Go to page:

New Topic   New Reply Mark Unread
Jump to:  
Delete   Move     Lock   +Favorits   +Notify   Print