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

  • SEARCH
  • Home
  • 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 709855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:33:00+00:00 2026-05-14T04:33:00+00:00

Following on from my earlier question , I am still having issues with loading

  • 0

Following on from my earlier question, I am still having issues with loading the xml file into Zend_Navigation.

I am now getting the following error message:

<b>Fatal error</b>:  Uncaught exception 'Zend_Navigation_Exception' with message 'Invalid argument: Unable to determine class to instantiate' in C:\www\mysite\development\website\library\Zend\Navigation\Page.php:223

I’ve tried to make my navigation.xml file look similar to the example on the Zend Documentation, However I just can’t seem to get it to work. My XML file looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<configdata>
 <navigation>

    <default>
        <label>Home</label>
        <controller>index</controller>
        <action>index</action>
        <module>default</module>
        
        <pages>
            <tour>
                <label>Tour</label>
                <controller>tour</controller>
                <action>index</action>
                <module>default</module>
            </tour>
            
            <blog>
                <label></label>
                <uri>http://blog.mysite.com</uri>                   
            </blog>
            
            <support>
                <label>Support</label>
                <controller>support</controller>
                <action>index</action>
                <module>default</module>
            </support>
        </pages>
     </default>
     
     <users>
        <label>Home</label>
        <controller>index</controller>
        <action>index</action>
        <module>users</module>
        <role>guser</role>
        <resource>owner</resource>
        
        <pages>
            
            <jobmanger>
                <label>Job Manager</label>
                <controller>jobmanager</controller>
                <action>index</action>
                <module>users</module>
                <role>guser</role>
                <resource>owner</resource>
            </jobmanger>
            
            <myaccount>
                <label>My Account</label>
                <controller>profile</controller>
                <action>index</action>
                <role>guser</role>
                <resource>owner</resource>
                <module>users</module>
                <pages>
                    
                    <detail>
                        <label>Account Details</label>
                        <controller>profile</controller>
                        <action>detail</action>
                        <module>users</module>
                        <role>guser</role>
                        <resource>owner</resource>
                        
                        <pages>
                            <history>
                                <label>Account History</label>
                                <controller>profile</controller>
                                <action>history</action>
                                <module>users</module>
                                <role>guser</role>
                                <resource>owner</resource>
                            </history>
                            
                            <password>
                                <label>Change Password</label>
                                <controller>profile</controller>
                                <action>changepwd</action>
                                <module>users</module>
                                <role>employer</role>
                                <resource>employers</resource>
                            </password>
                        </pages>
                    </detail>

...
</navigation>
</configdata>

I am loading this xml into the bootstrap as follows:

 $configNav = new Zend_Config_Xml('../application/config/navigation.xml', 'navigation');
 $navigation = new Zend_Navigation($configNav);
 $navView->navigation($navigation);

Now I confess that I’ve totally got the wrong end of the stick with this, but rapidly running out of ideas, and it’s been a long week.

Thanks,

Grant

  • 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-14T04:33:01+00:00Added an answer on May 14, 2026 at 4:33 am

    Zend_Navigation appears to determine whether or not to use an Mvc page or Uri page by checking for the existence of either the controller, action and module keys; or a uri key. The error you’re reporting is generated if neither of these conditions are met. All of the examples in your XML document look fine, so I would guess that a some point later in the XML file you are missing one of the required keys for one of your pages. E.g. you have an action and controller but no module.

    If you aren’t able to spot which one is causing the problem, I would suggest temporarily adding a debug line to Zend_Navigation by inserting:

    var_dump($options);exit;
    

    into line 222 of Zend/Navigation/Page.php. This would print out the keys for the element that is causing the error, which should help you work out which one in your XML doc it is. Remove this line again once you’ve fixed it!

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

Sidebar

Related Questions

Following on from my earlier question around loading views from DLLs under ASP.NET MVC,
Following on from this earlier question I'm on PostgreSQL 8.4 and am having trouble
Following on from my earlier question about creating Address Books (many thanks Peter!), I
Following up from an earlier question on extracting the n'th regex match , I
Following on from an earlier question I'm trying to get multiple (widgets or in
Following on from my earlier question, I have decided to have a go at
(Split from an earlier question). Does anyone know what's going on here? The following
Following up from the question I made earlier, I made the query below but
I'm following up on my earlier question: Mono.Cecil: call base class' method from other
Following on from my earlier question: Manipulate Lucene query before performing search I've run

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.