Menu

Classes in phplib

2001-07-30
2001-08-05
  • Dan Troxell

    Dan Troxell - 2001-07-30

    I'm getting an odd message when trying to add new classes or class extensions into local.inc. THe message is:

    Fatal error: Cannot instantiate non-existent class: reviews

    I just upgraded to PHP4.0.6, I don't find any naming conflicts and adding new classes by a bogus name produces the same error.

    Have I reache some sort of limit in class definitions !?

    -dan

     
    • nathan hruby

      nathan hruby - 2001-07-30

      There is no class "reviews" in phplib, check your code to see if there are missing quotes or brackets.

       
      • Dan Troxell

        Dan Troxell - 2001-08-02

        Nathan, thanks. the error is coming from my scripts when trying to create a class instance.

        a la
        $reviews =  new reviews;

        It seems as if the local.inc is not allowing any new object definitions. I am also unable to add any new functions inside existing classes within local.inc!

        This all happened after the upgrade.

        -dan

         
    • Dan Troxell

      Dan Troxell - 2001-08-05

      the local.inc aberration was a result of a strange “include_file=” path something like this – “.:/usr/local/lib/php” in my PHP.INI file – evidently PHPLIB won’t traverse to the second path iteration? Anyone know anything about this?

       

Log in to post a comment.