Hello,
To be honest, I think that we'll need a bit more information to properly
diagnose the problem, but I'll take a shot at it anyway.
First, I am guessing that you use Zend_Auth_Adapter_DbTable as your
authentication adapter. Is this correct? It seems apparent that there is
a problem with the use of the authentication adapter.
Ralph made a bunch of improvements and fixes to this adapter that were
included as part of ZF 1.5.0 PR. Perhaps these changes have propagated
to your application?
You mention a lack of a constructor... for which class? Your User class?
Zend_Auth has a private constructor because it implements the Singleton
pattern, but it's always been this way.
Best regards,
Darby
ashish.sharma wrote:
> Hello ALL, I am developing an application from quite sometime using ZF.
> The application is having modules like Zend_Auth, Zend_Acl etc. The
> application was working fine on my local system + online, where the PHP
> version was 5.2.0. We have updated our online system to PHP 5.2.5 and
> now the application is not working there. I am not able to login to the
> application even, as the login code is not working. 1st it was not
> executing the code (even a normal echo 'hello world') after loading any
> Model / Class using the code .. Zend_Loader::loadClass('User'); $objUser
> = new User(); echo 'hello world'; On debugging, I found that this is due
> to the unavailability of class constructor so i have created a
> __construct in my User class. This fixed the 1st problem and i was able
> to view the echo 'hello world' message. But that was not an end of my
> problems. The 2nd problem came in Zend_Auth code, here is the code ..
> echo 'aaaaaaaaaaa
>
> '; // Loading Zend_Auth class and calling authentication method $auth =
> Zend_Auth::getInstance(); print_r($auth); $result =
> $auth->authenticate($authAdapter); die('--- bbbbbbbbb'); In the above
> code, I am able to view 'aaaaaaaa' message and the print_r($auth) BUT
> NOT able to view the 'bbbbbb' message as it is not executing anything
> after $result = $auth->authenticate($authAdapter); I completely have No
> idea, why this happened?, what is the reason behind this? Why the 1st
> problem occur because of unavailability of class constructor. Can anyone
> guide me in this? Thanks
> ------------------------------------------------------------------------
> View this message in context: URGENT : Help Required !
> <http://www.nabble.com/URGENT-%3A-Help-Required-%21-tp15155672s16154p15155672.html>
> Sent from the Zend Framework mailing list archive
> <http://www.nabble.com/Zend-Framework-f15440.html> at Nabble.com.