Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2012
    Posts
    412
    Plugin Contributions
    0

    Default Table name defines not found

    I have a few extra database tables for some custom code. In order to move as much custom code as possible from out-of-the-box Zen Cart files, I moved the defines for the custom table names out of the core file (includes/database_tables.php) and into a separate file in includes/extra_datafiles/my_defines.php. Now admin queries fail because the custom table names are not defined. Why? How can I keep these defines out of core code? Do I need to duplicate the my_defines.php file in admin/includes/extra_datafiles/? Still trying to integrate my code into zc v1.5.6a. PHP v 7.1.x.

  2. #2
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: Table name defines not found

    You can create a new file in YOUR_ADMIN/includes/extra_datafiles/my_defines.php, and put the next line in it
    PHP Code:
    <?php
    include DIR_FS_CATALOG '/extra_datafiles/my_defines.php ;

 

 

Similar Threads

  1. Admin Login, changed dir name = error page not found
    By AshleyNG2 in forum Installing on a Windows Server
    Replies: 1
    Last Post: 15 Dec 2010, 10:25 PM
  2. Template name not found.
    By Tradition in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 24 Aug 2007, 09:04 PM
  3. If table not found create it?
    By IllusionGuy in forum General Questions
    Replies: 0
    Last Post: 10 Jul 2007, 03:06 PM

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