Page 1 of 1

Fatal error: Cannot instantiate non-existent class: auth in.

Posted: Sun Apr 20, 2003 1:19 pm
by Beddy1
Hello .....reeeeealy new at this. so please accept my apologies in advance...Trying to set up a pword protected page for a friend of mine that works for a school of handicapped kids...We want to upload the currently mailed out newsletters..but we need the security of a pworded site...just in case...
I've used vSignup program and it works very well...except for one ,minor deatail???When I add the code to a web page to make it protected I get this
Fatal error: Cannot instantiate non-existent class: auth in /home/makeitwo/public_html/vSignup/check.php on line 25

...I've tried virtually everythign I can think of....I know very little about PHP but I CAN follow directions and read..I've got the entire thing working fine..sign ups, the MySQL data base...log in pages. the email response , everything is working fine....
I'm assuming this error is saying it can't find the auth class..but everything else workls great...I have uploaded all the fiiles into the public_html/vSignup/ folder of my site...
to see what erorrs I'm getting or to wiew the code. go here..
http://www.makeitwork4me.com/index.php
the bottom link that just syas 'test' is the supposed password protected page that give me the error...
any help you can give would be deeply appreciated...this woman has had a boat load of stuff thrown at ehr in a short amount of time..2 brand new Mac server networks in less than 4 months..T1 issues...tranferring her school's web site to another server..then the idea of the online newletter..Peggy is an awesome woman, Masters degree in music education, member of the BBB, Black belt in karate, by no means a dummy, but all this PC/Mac/web stuff wiht very little or no training...perhaps the most capable woman I've ever met but with a heart that'll knocw you down!!:))
again any help wouyld be greatly appreciated... or if you know fo a betetr set of fiels/program that would do this for us....by all means, scream!!:)))

thanks again,
Bruce

Posted: Sun Apr 20, 2003 1:34 pm
by twigletmac
Have you included() the file that contains the auth class into the script you are trying to run it from?

Mac

Posted: Sun Apr 20, 2003 2:34 pm
by Beddy1
Hi Mac..I've followed the readme's to this severl times..had it working once , but have no clue why I'm getting this error now.. here's the script that goes at the top of the protected pages.

Code: Select all

<?

		if (!class_exists (auth))

		&#123;

			include ("http://host27.ipowerweb.com/~makeitwo/vSignup/auth.php");

		&#125;

			include ("http://host27.ipowerweb.com/~makeitwo/vSignup/authconfig.php");

			include ("http://host27.ipowerweb.com/~makeitwo/vSignup/check.php");	

	?>
	<html>
<head>
the directory for the files is vScript ...I've uploaded that directory to my public_html directory on the ipower server...I even tried using the public_html folder added to the location for the files?
I was thinking maybe I need to change the 'if exists' part..but if someone doesn't sign in it should just give the error message about not signed in? instead of all the gobblegook. this is an updated version fo the orignal script this guy wrote..but the top page code is the same in both versions...and with the same results..so I'm thinking it must be something on my side....

btw, thank you for taking the time out of your holiday to look at this.
Bruce

Posted: Sun Apr 20, 2003 3:04 pm
by twigletmac
You could change:

Code: Select all

if (!class_exists (auth)) 

      { 

         include ("http://host27.ipowerweb.com/~makeitwo/vSignup/auth.php"); 

      }
to

Code: Select all

include_once 'http://host27.ipowerweb.com/~makeitwo/vSignup/auth.php';
which should include the file if it hasn't been already - hopefully making the class available. I'm not sure why the current code isn't working but this is something else you could try.

Mac