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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T03:19:50+00:00 2026-05-19T03:19:50+00:00

Hi All I have a project working in PHP which is divided in an

  • 0

Hi All
I have a project working in PHP which is divided in an admin section and client section.

Client ecd is working perfectly fine. But I Cannot access my admin section and it displays the error saying

Fatal error: Class ‘ClsBase’ not found in E:\wamp\www\dfms\admin\index.php on line 30

UPDATE

line 28 is $base_obj = new ClsBase();

UPDATE1

LINE 14:include_once(ADMIN_CLASS_DIR .”ClsAdminUser.php”);

But I have defined all the constants in my adminconfig.php And I am using the Constant to give the path to this file and also this file present in the required folder

Could you please help me What could be the problem?

  • 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-19T03:19:51+00:00Added an answer on May 19, 2026 at 3:19 am

    Without seeing code, it’s hard to tell. There are two possible problems.

    1. ADMIN_CLASS_DIR is not set, so PHP will issue a notice and default to ADMIN_CLASS_DIR. Your code would look like:

       include_once(ADMIN_CLASS_DIR . 'ClsAdminUser.php');
      

      To fix it, just define the directory:

       if (!defined('ADMIN_CLASS_DIR')) {
           define('ADMIN_CLASS_DIR', 'path/to/dir');
       }
      
    2. You’re trying to use it inside of a string literal:

      include_once('ADMIN_CLASS_DIR/ClsAdminUser.php');
      

      Constants in PHP don’t work like that. They are only resolved outside of a string. So you could do either:

      include_once(ADMIN_CLASS_DIR . '/ClsAdminUser.php');
      

      Or you could do this if you needed to define the constant as a string:

      include_once(constant('ADMIN_CLASS_USER') . '/ClsAdminUser.php');
      

    To tell if the constant is defined, use the defined function. It’ll return true if the constant is defined.

    If you want better help than that, post some code!

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

Sidebar

Related Questions

I have this code, which is working fine in FireFox, chrome and IE8 but
One long term project I have is working through all the exercises of SICP.
I'm working on a Spring MVC project, and I have unit tests for all
I am currently working on a PHP project which includes extensive database usage. The
In my project I have put all my css classes in the style sheets.
I'm sure you have all been there, you take on a project where there
I have a C project where all code is organized in *.c / *.h
We have a requirement in project to store all the revisions(Change History) for the
I have a handful of projects that all use one project for the data
I have a windows setup project that installs a service. All works well except

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.