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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:58:28+00:00 2026-06-10T01:58:28+00:00

Hello Good People !! I have a web application (my first of this type)

  • 0

Hello Good People !!

I have a web application (my first of this type) based on Zend Framework 1.11.12 ( upgraded from 1.10.8) using “modular approach” folder structure i mean by that all the modules are under application/modules. i used Doctrine 1.2.4

i also use library folder for all the third party libraries including ZF except 2: CKEditor and PGRFilemanager. pgrfile manager for uploading files to images folder from an admin panel.
here is globally my file structure.

/application
    /configs
        application.ini
        routes.ini
    /layouts
        /scripts
            /partials
                  *.all_the_partials_files.phtml
            *.all_the_layouts.phtml
    /modules
         all_the_module_folders
    Boostrap.php
/logs
/library
    /Zend
    /Doctrine
    /SwiftMailer
    /Abra //where all my classes reside
        /Model
            User.php
            Role.php
            other_doctrine_entities_class
/public
    /javascript
    /css
    /images
        .htaccess // added an htaccess file here
    /fonts
    `/ckeditor`
        a_lot_of_files_including_php_files
        other_folders
        /plugins
            other_folders
            `/pgrfilemanager`
                /php
                    auth.php
                myconfig.php
                other_folders_and_files_including_php
    index.php
    .htaccess

At the point i was developing this site ,i wasn’t using Zend_Acl so the session_start() in /public/ckeditor/plugins/pgrfilemanager/php/auth.php worked fine for some time since pgrfilemanager came with a default authentication feature. but once i started using Zend_Acl i run into issues like Class __PHP_Incomplete_Class has no unserializer Array exception when session_start() is called from the ~~/auth.php file . I initially thought it was due do the fact i wasn’t using Zend_Session but apparently i was rather due to this fact explained here (correct me if am wrong thanks)

How to use it? Thanks for reading

  • 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-10T01:58:29+00:00Added an answer on June 10, 2026 at 1:58 am

    Since i found a workaround about this issue, i thought i would share, maybe i would get better perspective.

    The Answer for the Class __PHP_Incomplete_Class has no unserializer Array is clear now as Session does how which format to unserialize to meaning php had to know the definition of the object stored in the session.

    Based on the file structure i created an auth file say myauth.php in /public/ckeditor/puglins/pgrfilemanager/userfiles i will refer to this path is pgr/userdir

    $path = realpath("../../../../library");
    set_include_path(get_include_path() . PATH_SEPARATOR . $path);
    
    require "Zend/Loader/Autoloader.php";
    
    require_once 'Doctrine/Doctrine.php';
    spl_autoload_register(array("Doctrine", "autoload"), true);
    $loader = Zend_Loader_Autoloader::getInstance();
    $loader->registerNamespace(array("Abra_"));
    /*$p seem to be empty throwing error on Zend_Config_Ini but returns the config anyway.I never figured out
    */
    $p = realpath("./../../../../application/configs/application.ini"); 
    try {
        //     $config = parse_ini_file($p, "production");
        $config = new Zend_Config_Ini($p, "production");
        $conn = Doctrine_Manager::connection($config->doctrine->dsn);
        $user = new Abra_Model_User();
        $role = new Abra_Model_Role();
        $auth = Zend_Auth::getInstance();
        if(!$auth->hasIdentity()|| !in_array($auth->getIdentity()->Role->name,  array("superadmin","administrator")) ){
            die("Not authenticated");
        }
    } catch (Exception $ex) {
    */
    $p = realpath("./../../../../application/configs/application.ini"); 
    try {
        //     $config = parse_ini_file($p, "production");
        $config = new Zend_Config_Ini($p, "production");
        $conn = Doctrine_Manager::connection($config->doctrine->dsn);
        $user = new Abra_Model_User();
        $role = new Abra_Model_Role();
        $auth = Zend_Auth::getInstance();
        if(!$auth->hasIdentity()|| !in_array($auth->getIdentity()->Role->name,  array("superadmin","administrator")) ){
            die("Not authenticated");
        }
    } catch (Exception $ex) {
    
    }
    
    }
    

    in pgr/php/folders.php and pgr/php/files.php i included the

    $path = realpath("../../../../library");
    set_include_path(get_include_path() . PATH_SEPARATOR . $path);
    

    at the top. then i included the pgr/userfiles/myauth.php in pgr/myconfig as shown below

    include_once dirname(__FILE__) . '/userfiles/myauth.php';
    

    I hope this would help someone. thanks

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

Sidebar

Related Questions

I have this string @[123:peterwateber] hello! good day! I wanna change it to <a
I have this little text <div> Hello world<br> this is a good<br> text! <br><br>
Hello good people i came accross a weird behaviour in my test.I'm using JPA
Hello good Stack Overflow people, I do have a business problem and would like
Hello good people of Stack Overflow, I am having trouble with an application I
Hello good people of stackoverflow, this is a conceptual question and could possibly belong
Hello good people of Stack Overflow, I have come with yet another question for
I have a string: hello good old world and i want to upper case
Hello I asked this question to superuser but I did not get a good
Hello android designers, 1-I have been wondering. Is it a good design approach to

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.