Menu

Cannot re-assign $this in User.class.php

Help
2005-08-23
2013-03-22
  • Goran Tornqvist

    Goran Tornqvist - 2005-08-23

    I get this error after upgrading to the latest version from CVS.

    Fatal error: Cannot re-assign $this in /home/user/domains/domain/public_html/projects/class/User.class.php on line 365

    Any idea what it is?

     
    • Goran Tornqvist

      Goran Tornqvist - 2005-08-23

      PS: running PHP5

       
      • Philip X

        Philip X - 2005-08-23

        It's PHP5 :)

        I'll try to provide a fix tonight.

        thanks for bringing it to my attention.

         
        • Goran Tornqvist

          Goran Tornqvist - 2005-08-23

          No problemo...
          And thanks for a quick response :)

           
    • Goran Tornqvist

      Goran Tornqvist - 2005-08-30

      A late answer is better then nothing.
      As you can see I'm in no big hurry solving this :)

      Thanks...I got the login page now.
      But when I login I get:
      Fatal error: Call to undefined function ldap_connect() in /home/user/domains/domain.com/public_html/projects/class/adLDAP.class.php on line 103

      Fatal error: Call to undefined function ldap_close() in /home/user/domains/domain.com/public_html/projects/class/adLDAP.class.php on line 110

      I downloaded the latest adLDAP.class.php from CVS just in case I got an old version of it...but no luck

       
      • Philip X

        Philip X - 2005-08-30

        If you're planning to use LDAP for authentication you need to make sure the ldap extension is enabled in php.ini:
        extension=php_ldap.dll

        (web server restart might be required).
        ph.

        PS. I'm not really sure how well this would work on Linux; after all Active Directory is a microsoft thing.
        The adLDAP project, whose class I use, is here:
        http://adldap.sourceforge.net/

         
    • Goran Tornqvist

      Goran Tornqvist - 2005-09-01

      Ok,
      Im not really interested in using LDAP...
      Is there a way to NOT use it in projectbench? or is that the only authentication that works?
      As you can see Im not to familiar with all the configuration options in PB...:)

       
      • Goran Tornqvist

        Goran Tornqvist - 2005-09-04

        Here we go :)
        Changed to:
        $CFG->auth_class = 'DBUser';
        And then it worked...don't know why it was set to ldap...
        Anyway...it's seems to be working now :)

         
    • Krish Mandal

      Krish Mandal - 2005-10-21

      I'm getting a similar error, but in a different module.

      Fatal error: Cannot re-assign $this in c:\wamp\www\projectbench\class\Note.class.php on line 55

      I'm using WAMP on a P3, XP box with PHP5.

      Any help would be greatly appreciated as we are trying to get many fires put out and controlled with the use of this program. I cannot even evaluate until I get this to run.

      Installed fine, but getting error right after I went through the installation process.

       
      • Philip X

        Philip X - 2005-10-21

        Supposedly this issue is fixed in 5.1.
        Can you please try 5.1 and confirm it?

        For reference:
        PHP Bugs: #34358: Fatal error: Cannot re-assign $this
        http://bugs.php.net/bug.php?id=34358

         
    • Krish Mandal

      Krish Mandal - 2005-10-21

      Sorry, mis-spoke initially.
      I'm actually using
      Apache 1.3.33 (Win32)
      PHP 5.1.0 RC1

      Any other ideas?

      Will ProjBench work with PHP4 (latest ver.)? If so, I'll re-install the WAMP to have PHP4 version and try again.

      Thanks.

       
      • Philip X

        Philip X - 2005-10-21

        Yes, it'll run. That's what I'm using on all my machines. Make sure you pay a visit to the Patches section (or get the latest version from CVS).

        As far as PHP5 goes, I really appologize. Haven't gotten around to thoroughly test it.

        Thanks.
        philip

         
    • Krish Mandal

      Krish Mandal - 2005-10-21

      Thanks for your quick responses. I've reinstalled WAMP with PHP4 addon and now using PHP4. I'll let you know what happens with ProjBench install.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.