Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    567
    Plugin Contributions
    0

    Default Invoice suddenly shows table headings as TABLE_HEADING_PRODUCTS

    I just noticed that my invoices since a couple of months no longer have the correct headings but all the variable names are shown instead, for example, TABLE_HEADING_PRODUCTS.
    The packing slip continues to work fine.
    I am using the classic green template.

    I have the problem both on my web site and my PC test site and in both English and German languages.
    I assume I must have changed something somewhere but what? I checked all the invoice.php files and none were changed/updated this year.
    Is there another file involved in creating invoices?
    The only big change to my site in the timescale was to add image zoom and CSS/JS loader.

    I only noticed because I am (slowly) updating to v155a where the invoices are correctly created on my test site.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Invoice suddenly shows table headings as TABLE_HEADING_PRODUCTS

    Those are defined in language files.

    If you're seeing them show as the uppercase keys (called "constants" in PHP) like TABLE_HEADING_PRODUCTS then likely the language file containing those specific definitions isn't getting loaded (cuz it's missing from your server).

    ie: /admin/invoice.php generates output by asking the value of TABLE_HEADING_PRODUCTS to be displayed

    and the normal admin bootup process auto-loads corresponding language files.

    So either the /admin/invoice.php file (in this example) has been changed to look for "new" constants (ie: new columns you've added, perhaps?) that you haven't also defined. Or the main language files where those constants are usually defined are missing/damaged.


    Whenever a "sudden" problem like this happens (when it wasn't happening previously), the first step is to go back and look at everything that's been changed on your server since it was working previously.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    567
    Plugin Contributions
    0

    Default Re: Invoice suddenly shows table headings as TABLE_HEADING_PRODUCTS

    Quote Originally Posted by DrByte View Post
    Those are defined in language files.

    If you're seeing them show as the uppercase keys (called "constants" in PHP) like TABLE_HEADING_PRODUCTS then likely the language file containing those specific definitions isn't getting loaded (cuz it's missing from your server).

    ie: /admin/invoice.php generates output by asking the value of TABLE_HEADING_PRODUCTS to be displayed

    and the normal admin bootup process auto-loads corresponding language files.

    So either the /admin/invoice.php file (in this example) has been changed to look for "new" constants (ie: new columns you've added, perhaps?) that you haven't also defined. Or the main language files where those constants are usually defined are missing/damaged.


    Whenever a "sudden" problem like this happens (when it wasn't happening previously), the first step is to go back and look at everything that's been changed on your server since it was working previously.
    "Or the main language files where those constants are usually defined are missing/damaged." Many thanks, I did a compare between 151 and 155a and found a language file was missing; fixed now.

    I will go and stand in the corner now!

 

 

Similar Threads

  1. v139h Product Listing - Add New Headings to table
    By Yupa in forum General Questions
    Replies: 3
    Last Post: 27 Jan 2012, 09:52 PM
  2. Product Table Headings not displaying properly
    By wudchuk in forum Basic Configuration
    Replies: 3
    Last Post: 15 Oct 2009, 02:23 PM
  3. Admin is showing SQL Table Name Headings
    By deejaiwhy in forum Basic Configuration
    Replies: 0
    Last Post: 26 Aug 2009, 01:52 PM
  4. I'm stumped: sidebox content shows but headings don't
    By wbmangy in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Feb 2009, 11:41 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