Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,472
    Plugin Contributions
    88

    Default [Not a bug] Developer Tool Kit can't find files with "local" configure.php

    Running 1.5.0 release, on localhost using a "local" version of the configure.php files present in /includes/local and /MYADMIN/includes/local. The file /MYADMIN/includes/local/configure.php is a copy of the file that was created during the 1.5.0 install.

    When I used the Developers Tool Kit, searching in all files for the string logger in both Catalog and Admin files, php-only, not case sensitive ... no files were returned. That was odd to me, because the file /MYADMIN/includes/classes/logger.php contains that string!

    The problem occurs because of the enhanced version of the configure.php file that "auto-detects" the name of the ZC admin directory and uses that information to create the file-system path name:

    Code:
    define('DIR_FS_ADMIN', realpath(dirname(__FILE__) . '../'));
    When that code is present in /MYADMIN/includes/local, the base file-system path becomes /MYADMIN/includes instead of /MYADMIN ... resulting in none of the admin-specific files ever being included in the search.

    I was able to work around the problem by changing the definition to:

    Code:
    define('DIR_FS_ADMIN', 'c:/xampp/htdocs/xxxx/myadmin');
    At a minimum, it would be good if the next version of the admin's configure.php (and dist-configure.php?) included a comment for those using the "local" override regarding this issue.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Developer Tool Kit can't find files with "local" configure.php

    Could you check that on the final release of v1.5 and see if you are still having this issue?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,472
    Plugin Contributions
    88

    Default Re: Developer Tool Kit can't find files with "local" configure.php

    I am running the final release ... but the configure.php file that's in my admin's /includes/local directory was created with a previous 1.5.0 beta version. When I changed the DIR_FS_ADMIN to use the construct in the 1.5.0 final release

    Code:
    define('DIR_FS_ADMIN', realpath(dirname(__FILE__) . '/../') . '/');
    ... it's all better.

    Sorry for the false report ...

 

 

Similar Threads

  1. admin/configure.php file & can not find "upgrade" option
    By ddavies in forum Upgrading from 1.3.x to 1.3.9
    Replies: 16
    Last Post: 28 Nov 2010, 05:29 AM
  2. Developer's Tool Kit doesn't search in CSS files?
    By lat9 in forum General Questions
    Replies: 3
    Last Post: 9 Oct 2009, 09:07 PM
  3. Trying to get rid of "lbs" from php files - developers tool kit not finding it.
    By mtimber in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 26 Oct 2008, 10:13 PM
  4. Replies: 1
    Last Post: 7 Mar 2008, 06:32 PM
  5. Can't find "Dear" in Developers Tool Kit
    By PeterBKK in forum General Questions
    Replies: 5
    Last Post: 14 Aug 2006, 12:50 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR