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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:44:37+00:00 2026-05-26T11:44:37+00:00

I am stuck and looking for a solution to fix the following error: Fatal

  • 0

I am stuck and looking for a solution to fix the following error:

Fatal error: Class ‘Plugin_AccessCheck’ not found in /…/application/Bootstrap.php on line 18

I’m trying to register a new plugin. My code is:

protected function _initAutoLoad()
{
    $modelLoader = new Zend_Application_Module_Autoloader(array(
                            'namespace' => '',
                            'basePath'  => APPLICATION_PATH));        

    $acl = new Application_Model_LibraryAcl();
    $auth = Zend_Auth::getInstance();

    $frontcontroller = Zend_Controller_Front::getInstance();
    $frontcontroller->registerPlugin(new Plugin_AccessCheck($acl, $auth));

    return $modelLoader;
}

(This is ZF 1.11)

  • 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-26T11:44:37+00:00Added an answer on May 26, 2026 at 11:44 am

    To achieve what you’re trying to do, you need to satisfy the following requirements (all names and paths are case sensitive)…

    1. There is a class named Plugin_AccessCheck somewhere in your project
    2. This class resides in a file located on the include_path (your apps library directory for example) at the relative path Plugin/AccessCheck.php
    3. The autoloader has been informed that it should autoload classes beginning with the Plugin prefix. For example, in your application.ini config file

      autoloadernamespaces[] = "Plugin_"
      

    There are other ways to achieve this however I’m taking the path of least resistance here.

    As an aside, if this is inside a Bootstrap _init* method, don’t fetch the Front Controller like that. Use this instead

    protected function _initPlugins()
    {
        $this->bootstrap('FrontController');
        $frontcontroller = $this->getResource('FrontController');
    
        // and the rest
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been looking around on-line for a solution to this, but I can't seem
EDIT: Solution in code can be found on bottom. I am not sure if
I have spent a lot of time looking for a solution, but could not
I was looking at http://tldp.org/LDP/abs/html/why-shell.html and was struck by: When not to use shell
Hello and thanks for looking! Background I am designing a greenfield application using .NET4
I have been looking for a solution to this problem for a while now
Probably a simple solution but I'm stuck and it's late... :) $j('#thisImage').html('<img src=image.jpg id=box
(Re-written for clarity) I have a multi-project solution that I am looking to convert
I'm looking for a quick-and-dirty solution to this, I have to set up a
I found similar questions while searching for a solution for my problem but I

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.