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 6370433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:55:48+00:00 2026-05-25T00:55:48+00:00

http://site2.example.com/ Error=> Notice: Trying to get property of non-object in /var/www/site/application/layouts/scripts/layout.phtml on line 19

  • 0

http://site2.example.com/
Error=>

Notice: Trying to get property of non-object in /var/www/site/application/layouts/scripts/layout.phtml on line 19 Call Stack: 0.0003 335220 
1. {main}() /var/www/site/public/index.php:0 0.0710 4242640
2. Zend_Application->run() /var/www/site/public/index.php:26 0.0710 4242640
3. Zend_Application_Bootstrap_Bootstrap->run() /var/www/site/library/Zend/Application.php:366 0.0711 4242712
4. Zend_Controller_Front->dispatch() /var/www/site/library/Zend/Application/Bootstrap/Bootstrap.php:97 0.1046 5601136
5. Zend_Controller_Plugin_Broker->postDispatch() /var/www/site/library/Zend/Controller/Front.php:965 0.1046 5601136
6. Zend_Layout_Controller_Plugin_Layout->postDispatch() /var/www/site/library/Zend/Controller/Plugin/Broker.php:331 0.1048 5601500
7. Zend_Layout->render() /var/www/site/library/Zend/Layout/Controller/Plugin/Layout.php:143 0.1056 5605568
8. Zend_View_Abstract->render() /var/www/site/library/Zend/Layout.php:796 0.1057 5646952
9. Zend_View->_run() /var/www/site/library/Zend/View/Abstract.php:880 0.1060 5662656
10. include('/var/www/site/application/layouts/scripts/layout.phtml') /var/www/site/library/Zend/View.php:108

This is the code =>

<head>
<?php echo $this->headScript()->appendFile($this->baseUrl() . '/js/jwplayer.js'); ?>
<?php echo $this->headScript()->appendFile($this->baseUrl() . '/js/swfobject.js'); ?>
<?php echo $this->headLink()->prependStylesheet($this->baseUrl().'/css/topmenu.css'); ?>
</head>

<?php
    $flXml=new Zend_Config_Xml(APPLICATION_PATH.'/configs/navigation.xml','nav');
    $container = new Zend_Navigation($flXml);
    Zend_Registry::set('Zend_Navigation', $container);
?>

<div id="nav-menu">
    <?php
        $obj_menuacl=new Model_MenuAcl();

        $_auth=Zend_Auth::getInstance();

        echo $this->navigation()->menu()->setAcl($obj_menuacl)->setRole($_auth->getStorage()->read()->uid);
        echo $this->loggedInAs();
        echo '<br><br>';
        echo 'You are in: ' . $this->navigation()->breadcrumbs()->setLinkLast(false)->setMinDepth(0)->render();
    ?>
</div>
<div class="mainbody"><?php echo $this->layout()->content; ?></div>
<br />

What should i do ?

Where is the error ?

This is the line number 19 =>

echo $this->navigation()->menu()->setAcl($obj_menuacl)->setRole($_auth->getStorage()->read()->uid);

If i try to print it=> echo $_auth->getStorage(); <=it results that error message.

  • 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-05-25T00:55:48+00:00Added an answer on May 25, 2026 at 12:55 am

    If I had to guess, I’d say it was this

    $_auth->getStorage()->read()->uid
    

    as this is the only attempt to get a class property on that line (everything else is a method).

    It seems that whatever is returned by Zend_Auth_Storage_Interface::read() is not an object. As this is something you set in your own code, I cannot offer any further advice other than to debug the return value of read().

    Update

    I’d attempt to fix it like this but without knowing more about your application, I’m only guessing.

    $_auth = Zend_Auth::getInstance();
    
    $uid = $_auth->hasIdentity() ? $_auth->getIdentity()->uid : null;
    
    echo $this->navigation()->menu()->setAcl($obj_menuacl)->setRole($uid);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For example to get the favicon of a site I can use http://www.google.com/s2/favicons?domain= and
I am making a GET from C#. var result = webClient.DownloadString( Microsoft.JScript.GlobalObject.encodeURI( http://www.example.com?value=contacts[contact][0][name]=test man
When I try to visit my Django site at http://www.satoshi.example.com/mysite I get a 503
I have a site that sits in a directory on a domain: http://www.example.com/site/ I
I want to have my site urls look like http://example.com/place/info?var=info&morevars=ifneeded Place and info are
I have a PHP5/Zend Framework 1.8.1 web site which is located at: http://www.example.com/foo The
We have a site I'll call example.com. Most of the time you see http://www.example.com
Despite being in the /public directory, if I visit http://site.example.com/favicon.ico I get the 404
We have a site that is public facing, let's say it's http://www.example.com . When
I have just installed CentOS, Apache and PHP. When I visit my site http://example.com/myapp/

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.