Menu

Fatal error: Cannot instantiate non-existent

Help
supercoqui
2004-09-01
2004-09-07
  • supercoqui

    supercoqui - 2004-09-01

    I receive this message when using your code.  I followed the instructions but ... nothing.  This is the complete error message:

    Fatal error: Cannot instantiate non-existent class: httpauthplus in /home/missione/public_html/english/test_restricted01.php on line 20

    the folder it refers to is where the php document (that requests_once your file) is.

    This file is located at the same location of HttpAuthPlus_class.php  They are both at the same level.

    Line 20 is where I wrote ..... $login = new HttpAuthPlus;

    I have tried many things, but nothing works, got any idea?

    I am using MySQL

     
    • Sean Walcek

      Sean Walcek - 2004-09-01

      First thing I would check is your file that includes the HttpAuthPlus_class.php file. Make sure the path passed to your require_once() call is correct and readable, and that you are not supressing warnings from require_once().

      If that does not work, please send a full sample of your srcipt that uses HttpAuthPlus (minus any sensitive data) and...
      What version of php are you using?
      What platform are your running on?

       
    • supercoqui

      supercoqui - 2004-09-06

      Hello,

      The server that has got my web page is www.ipowerweb.com has got
      -PHP 4.3.4
      -MySQL 4.0.16
      -OS is:FreeBSD 4.8-RELEASE
      -What Web Server Software : Apache 1.3
      and I think it runs on a UNIX system

      Question: how do I send you an attatchment with my php files? and where to?

       
      • Sean Walcek

        Sean Walcek - 2004-09-07

        Attachments are not needed. You can just copy and paste the segment of your code that has the require_once() call to the HttpAuthPlus class file. I can take a look, but there is not much I can do on my end to help you with this. You may want to contact your system administrator and verify the path used to require_once() the HttpAuthPlus class file. I suspect the path to the class file is incorrect and/or not readable. The problem you are describing would only happen if php was not able to include/require the class file itself.

         

Log in to post a comment.