Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8730155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:57:41+00:00 2026-06-13T08:57:41+00:00

This is the most frustrating ever. It is nearly impossible to find errors when

  • 0

This is the most frustrating ever. It is nearly impossible to find errors when all you get is a white screen!!!

This code is used on other projects and it works fine there so syntactically, it is correct. But SOMETHING must be wrong in the configuration…

Here is the code:

protected function _process($values)
{
    // Get our authentication adapter and check credentials
    $adapter = $this->_getAuthAdapter();
    $adapter->setIdentity($values['username']);
    $adapter->setCredential($values['password']);

    $auth = Zend_Auth::getInstance();
    $result = $auth->authenticate($adapter);

    if ($result->isValid()) {
        $user = $adapter->getResultRowObject();
        $auth->getStorage()->write($user);
        return true;
    }
    return false;
}

protected function _getAuthAdapter()
{
    $dbAdapter = Zend_Db_Table::getDefaultAdapter();
    $authAdapter = new Zend_Auth_Adapter_DbTable($dbAdapter);
    $authAdapter->setTableName('Users')
                ->setIdentityColumn('username')
                ->setCredentialColumn('password')
                ->setCredentialTreatment('md5(?)');
    return $authAdapter;
}

This is in my auth controller and gets called after I set up the adapter, etc. If I put a die(“foo”); right before the $result line, I see it. If I put it right after the $result line, I get a WSOD and the system stops. I know there is not enough here for anyone to debug my code but I was hoping someone else had had this problem and could give me a hint as to what to try to fix this??? I have double checked the database, the column names, etc. I need to know what kinds of things may make the line:

$result = $auth->authenticate($adapter);

result in a white screen of death??? Any ideas? I have all error display turned on in application.ini.

I am running Zend 1.11.12 on this server. Does that make a difference? The server where it is working is running is running 1.12.0-9

Thanks for any ideas you might have.

EDIT::: I added code for my _getAuthAdapter.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T08:57:43+00:00Added an answer on June 13, 2026 at 8:57 am

    Enable the error reporting for your app. Set all error reporting to 1 in your configs/application.ini file –

       phpSettings.display_startup_errors = 1
       phpSettings.display_errors = 1
       resources.frontController.params.displayExceptions = 1
    

    Also, instead of returning true or false, try to print a message, or redirect to a different page to know.

    Try a var_dump on the $adapter to see the resulting object.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I think this has to be THE most frustrating thing I've ever done in
I am trying to use SpinLock, but even this most basic code in a
This is actually a non-critical question, but I get this warning most of the
Oh, the frustration! I have literally had the most frustrating morning ever. I've spent
This has got to be one of the most frustrating issues with asp.net. I
I find that one of the most frustrating aspects to software development is finding
This is probably the most frustrating part for newbies learning about zend. Where do
This is frustrating me!!! It will be called most of the time but then
This is more for practice than anything, really. I am having the most frustrating
I am having this most annoying issue when I try to rebuild my solution

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.