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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:56:24+00:00 2026-05-27T10:56:24+00:00

I created a site a while ago using zend and smarty. The site is

  • 0

I created a site a while ago using zend and smarty. The site is hosted on a virtual machine with centOS. Now I want to create a similar site so I creeated another virtual host, ftp user etc etc on the same machine.

I modified the ini file that contained the paths:
paths.base = /var/www/html/new_path
paths.data = /var/www/html/new_path/data
paths.templates = /var/www/html/new_path/templates
paths.cache = /var/www/html/new_path/data/tmp/cache
paths.public = /var/www/html/new_path/public_html

The porblem is that somehow when I try to access zend/loader.php (I try to load a database object) it is used the loader from the old path (/var/www/html/oldpath/include/zend/loader.php) so naturally I cant access any new objects I create for the new site
(
Warning: include_once(DatabaseObject/New.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/html/old_path/include/Zend/Loader.php on line 146

Warning: include_once() [function.include]: Failed opening ‘DatabaseObject/New.php’ for inclusion (include_path=’.:/var/www/html/old_path/include:/usr/share/pear/’) in /var/www/html/old_path/include/Zend/Loader.php on line 146

Fatal error: Class ‘DatabaseObject_Chat’ not found in /var/www/html/new_path/include/Controllers/ChatController.php on line 8
).

There are no other paths defined anywhere.
Caching is disabled.
It occurs on different computers, browsers, etc so is not a local problem (residual value of some-type).

For any details just ask… I’m stuck.

  • 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-27T10:56:25+00:00Added an answer on May 27, 2026 at 10:56 am

    Zend_Loader looks into include directories defined in your public/index.php. The include path must be set properly to contain both the old directories and the new ones. Note the respective order specified by your include path.

    The code in public/index.php should look similar to the following, assuming the use of ZF1:

    <?php
    ...
    set_include_path(implode(PATH_SEPARATOR, array(
        realpath(APPLICATION_PATH . '/../../project_name/path_for_inclusion'),
        get_include_path(),
    ))); 
    ...
    

    The include path can be also adjusted in your .htaccess:

    php_value include_path "/var/www/path:/var/www/second_path:/var/www/third"
    

    or you can achieve the effect in general without ZF-specific code:

    set_include_path(get_include_path() . PATH_SEPARATOR . $path_to_add);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a facebook page for my site that was created a while ago.
I created a little app a while ago. I created admin.py and used admin.site.register(MenuEntry)
I created a site using wordpress. I installed the 'starkers' theme and modified it.
I have created a site where people can create a profile. But I am
I've been using a system with imagettftext for a while now to add nog
I have been digging around on this site and googling for a while now
I have been programming in Python for a while now, and have created some
I have created simple application in windows sharepoint services. Now I want to deploy
While using Rails ActionMailer with Multipart Emails I created both: approve_trade_email.html.erb AND approve_trade_email.text.erb I
I created a pretty basic Django project using django-admin and I'm now running into

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.