CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
PerlScript Error error '80004005'

 



phipe
New User

May 29, 2013, 8:52 AM

Post #1 of 8 (731 views)
PerlScript Error error '80004005' Can't Post

Hi Guys,

I really tried my best to solve my problem myself but it seems that I will still need some help. Long story in short - This is an old web based solution written in Perl. I installed the original copy and then decided to add make some design changes on the HTML part of the login ASP. In the Perl part itself I just changed the $Response->Redirect with another page in the same folder on the server. And then my troubles began. Every time I try to submit my login details I am getting :

PerlScript Error error '80004005'
(in cleanup) Can't call method "EOF" on an undefined value
/poplineV1/login.asp, line 36

On some PC`s this is fixed when I clear cache and cookies, but on others this makes not difference and I`m still getting the error.

Makes no sense to me as the same program in a different dir of the server is working perfectly. The only change I`ve done is a single redirect. All else is in the HTML part. I am attaching the ASP file causing the troubles. Any suggestions ?

Thank you in advance!


(This post was edited by phipe on May 29, 2013, 8:56 AM)
Attachments: login.asp (3.27 KB)


FishMonger
Veteran / Moderator

May 29, 2013, 10:39 AM

Post #2 of 8 (719 views)
Re: [phipe] PerlScript Error error '80004005' [In reply to] Can't Post

First, you may not be aware of it but PerlScript is not the same as Perl. PerlScript is Microsoft's stripped down implementation of Perl.

The error message is telling you that $rst is undefined, which could/would occur if this line failed.

Code
$rst = $db->execute("select fldUserID,fldMRInterviewAdmin from tblUsers where fldUserName = '".$puser."' and fldPassword = '".$ppass."';");

You should add some error handling to that line.


phipe
New User

May 30, 2013, 1:01 AM

Post #3 of 8 (713 views)
Re: [FishMonger] PerlScript Error error '80004005' [In reply to] Can't Post

Hello ! Thank you for the fast reply ! I will try to investigate why this line fails. Do you have any suggestions though why it happens on some machines, and on other - not and why this is fixed by removing the cookies. Doesn`t make sense to me :(


FishMonger
Veteran / Moderator

May 30, 2013, 6:41 AM

Post #4 of 8 (699 views)
Re: [phipe] PerlScript Error error '80004005' [In reply to] Can't Post

If the problem is "fixed" by deleting the cookies, then the issue is most likely related to the session data.

I don't work with asp/PerlScript so I can't run any tests, but the easiest adjustment needed to the script would be to change this:

Code
if (!$rst->EOF) {


to this:

Code
if (defined $rst && !$rst->EOF) {



phipe
New User

Jun 6, 2013, 5:21 AM

Post #5 of 8 (667 views)
Re: [FishMonger] PerlScript Error error '80004005' [In reply to] Can't Post

Hello,

I tried this but all if does now is keeping me in loop and staying on the login.asp page (the current one) instead of going to the "mainmenu.asp"

I think it is executing line 57:

sub refuse()
{
$Response->Redirect("login.asp");
$Response->End();
exit(0);

}

Any suggestions ?


FishMonger
Veteran / Moderator

Jun 6, 2013, 6:33 AM

Post #6 of 8 (661 views)
Re: [phipe] PerlScript Error error '80004005' [In reply to] Can't Post

Why do you think it's executing that sub? There is no call to that sub in the script you posted.


phipe
New User

Jun 6, 2013, 7:00 AM

Post #7 of 8 (657 views)
Re: [FishMonger] PerlScript Error error '80004005' [In reply to] Can't Post

Hello. Thanks for the reply. It looks like it is reloading the same login.asp page again and again when I click the "login button". For some reason it works on Chrome but not IE...
So that is why I thought it is executing this one. I couldn`t see any other reason why it doesnt give an error or redirect as specified above - to mainmenu.asp


FishMonger
Veteran / Moderator

Jun 6, 2013, 7:48 AM

Post #8 of 8 (654 views)
Re: [phipe] PerlScript Error error '80004005' [In reply to] Can't Post


Quote
For some reason it works on Chrome but not IE


That tells me that you have a browser configuration issue.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives