View Full Version : Scripting error suddenly
harpoonlouis
10-Dec-2009, 01:56 PM
Suddenly generating the following error on otherwise unchanged installation.
A General Script Error Occurred
Error: Invalid section ID number.Press the Browser back button and try again or contact the site owner
Generally the shopping cart page operated OK unless I back and forth adding or changing a few items then I get this error as the cart calls-
http://www.domain.com/cgi-bin/ca000001.pl
The installation was moved to a new server a short while ago by my ISP which could have been the start of the issue but I am not 100% certain of the time line.
Is this an obvious problem anyone?
Thanks
guccij
10-Dec-2009, 02:04 PM
Which site is the error occurring on?
peblaco
10-Dec-2009, 02:11 PM
Have you done a search for General Script Error Occurred Invalid section as there are several results in the V7 section about NETQUOTEVARs and missing variables that could be the problem.
harpoonlouis
10-Dec-2009, 02:28 PM
Did you want the actual domain or were you just asking if it is hapening on my domain or a domain called by the cart? It is on my domain
I didn't want to include my actual domain in case that was frowned upon.
guccij
10-Dec-2009, 02:36 PM
A url is v important - in case it's something obvious to fix. Is it the nitmix site?
harpoonlouis
10-Dec-2009, 05:19 PM
Sorry for delay replying, called away
Yes it is www.nitmix.com
I just found out from my ISP that they know there is a bug in cpanel that they have installed on the new server
"Sorry for any trouble caused, I can confirm cpanel does have a bug with ftp zones + transfers which has been fixed in 11.25 (not yet stable). Could you confirm the login so we can check to make sure it's all working ok server-side?"
If I change the server details from ftp.nitmix.com to 209.*.***.36 and test the connect it works. I have refreshed the site using the IP just in case but it still fails
Very confused now!
guccij
10-Dec-2009, 05:31 PM
I tried it earlier and didn't see any problems. You should have had a "Test" type order downloaded.
harpoonlouis
10-Dec-2009, 06:56 PM
looks like it is behaving it's self now.
Apparently the latest verison of cpanel has a bug that effects the ftp and transfer engine connections causing bad connections or failures. Looks like interaction between the cart and server were being fouled up by the bug.
I ran a test order and will run a couple more over the next 24 hours.
thanks to everyone who chipped in.
Much appreciated.
John
harpoonlouis
05-Jan-2010, 03:40 PM
I thought this problem had been resolved but it has hit my site again.
This morning a customer reported that she couldn't add anyhting to the basket, items were removed when the http://www.nitmix.com/cgi-bin/ca000001.pl called the payment pages then the whole cart when down with a 500 Internal server error.
ISP can back having spotted the following
[Tue Jan 05 01:06:02 2010] [error] [client 70.68.29.27] Attempt to free unreferenced scalar: SV 0x9b16418, Perl interpreter: 0x94af008 at ca000001.pl line 366., referer: http://www.nitmix.com/acatalog/nitmix.html
[Tue Jan 05 01:06:02 2010] [error] [client 70.68.29.27] semi-panic: attempt to dup freed string at ca000001.pl line 178., referer: http://www.nitmix.com/acatalog/nitmix.html
[Tue Jan 05 01:06:02 2010] [error] [client 70.68.29.27] Premature end of script headers: ca000001.pl, referer: http://www.nitmix.com/acatalog/nitmix.html
[Tue Jan 05 05:15:17 2010] [error] [client 88.104.241.117] Attempt to free unreferenced scalar: SV 0x885d324, Perl interpreter: 0x82d4008 at ca000001.pl line 366., referer: http://www.nitmix.com/acatalog/nitmix.html
What is the highest version of PERL that version 7.0.2 should run with? Maybe the new server is configured with too high a version ?
Anyone any clues
Thanks
John
NormanRouxel
05-Jan-2010, 06:30 PM
There is a Knowlege Base article about a bug in very recent releases of Perl that cause Actinic to report spurious errors. I'm posting via a phone so can't give you a link to it. Should be easily searched for.
harpoonlouis
05-Jan-2010, 07:17 PM
Thanks Norman found it here
http://community.actinic.com/showthread.php?t=45172
have forwarded on to ISP, sound a likely candidate, m1any `thanks for your contribution.
John
harpoonlouis
06-Jan-2010, 01:42 PM
With error reporting to the browser enabled the results look like this
Error: Error loading configuration file ../acatalog/prompt.fil. (in cleanup) Can't locate object method "splitpath" via package "File::Spec" (perhaps you forgot to load "File::Spec"?) at /opt/perl/lib/5.8.9/CGI/Carp.pm line 361. Press the Browser back button and try again or contact the site owner.
Does this explain anything differently?
harpoonlouis
18-Feb-2010, 03:27 PM
Sorry should have posted this earlier
Intermittent perl errors resolved by changing the file public_html/cgi-bin/ca000001.pl I believe the change is only in the first line or two of the file.
#!/opt/perl/bin/perl
##!/usr/bin/perl
use CGI::Carp qw/fatalsToBrowser/;
my $bFound = 0;
my $sDir;
foreach $sDir (@INC)
{
if ($sDir eq ".")
{
$bFound = 1;
last;
}
}
if (!$bFound)
{
push (@INC, ".");
}
push (@INC, "cgi-bin");
require al000001;
require ao000001;
require sm000001;
use strict;
Init();
DispatchCommands();
exit;
sub DispatchCommands
{
my (@Response, $Status, $Message, $sHTML, $sAction, $sCartID);
$::g_sCurrentPage = $::g_InputHash{"PAGE"};
$sAction = $::g_InputHash{"ACTION"};
my ($key, $value);
if ($sAction eq "REGQUERY")
{
SendRegInfo();
exit;
}
elsif ($sAction eq "COOKIEERROR")
{
$::bCookieCheckRequired = $::FALSE;
my $sMessage = ACTINIC::GetPhrase(-1, 52) . "\n";
($Status, $Message, $sHTML) = ReturnToLastPage(-1, $sMessage, ACTINIC::GetPhrase(-1, 53));
PrintPage($sHTML, $sCartID);
exit;
}
elsif ($$::g_pSetupBlob{CATALOG_SUSPENDED})
{
@Response = ReturnToLastPage(7, ACTINIC::GetPhrase(-1, 2077), "");
($Status, $Message, $sHTML) = @Response;
if ($Status != $::SUCCESS)
{
ACTINIC::ReportError($Message, ACTINIC::GetPath());
exit;
}
.
.
.
.
.
Didn't post rest of the file as forum rules don't allow but the rest is standard.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.