Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Nov 2011
    Posts
    11
    Plugin Contributions
    0

    Default PHP definition text (HEADING_TITLE, ENTRY_NAME, etc.) started showing up everywhere!

    Hi guys,

    I spent the past 2 hours trying to figure out what went wrong with my site. The PHP definition text (like HEADING_TITLE, ENTRY_NAME, etc.) started showing up everywhere.

    I've looked and looked for the last files I changed, and couldn't see what went wrong. It's not just on one or two lines, or one or two pages; the bug's everywhere!

    http://jhlstyle.com/index.php?main_page=products_new
    http://jhlstyle.com/index.php?main_page=contact_us

    The only thing I did tonight was to install Vertical Multilevel Slideout Category Menu and customized the CSS file heavily. I don't think that would have any effect on the PHP codes, would it?

    Any help would be greatly appreciated. I've been on this since midnight (it's 5 AM now..) and can't think anymore. I was so close to wrapping up the project (the slideout menu was the final task).. and this happened.

    Thanks so much!

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    4,048
    Plugin Contributions
    1

    Default Re: PHP definition text (HEADING_TITLE, ENTRY_NAME, etc.) started showing up everywhe

    Quote Originally Posted by lastmiracle View Post
    Hi guys,

    I spent the past 2 hours trying to figure out what went wrong with my site. The PHP definition text (like HEADING_TITLE, ENTRY_NAME, etc.) started showing up everywhere.
    This is indicative of missing or corrupt /languages/ files.

    Cheers
    Rod

  3. #3
    Join Date
    Nov 2011
    Posts
    11
    Plugin Contributions
    0

    Default Re: PHP definition text (HEADING_TITLE, ENTRY_NAME, etc.) started showing up everywhe

    Quote Originally Posted by RodG View Post
    This is indicative of missing or corrupt /languages/ files.

    Cheers
    Rod
    Thanks Rod.. I've just checked all the files in \includes\languages\english\ and the latest "modified date" on those files on the server was weeks ago on Feb 27, on my FTP client.. Would corrupted file show any time stamp?

    I'm not sure what exactly happened tonight.. the only files I changed were the template files for the sidebox. But it does make sense that the /languages/ files are affected to cause this problem.

    I don't see anything regarding this sidebox add on in the MYDEBUG logs, except for this from another add on:
    Code:
    [11-Mar-2012 02:14:59] PHP Warning:  Missing argument 1 for template_func::get_template_dir(), called in /home/content/17/8199617/html/includes/templates/template_default/sideboxes/tpl_advanced_categories.php on line 12 and defined in /home/content/17/8199617/html/includes/classes/template_func.php on line 42
    [11-Mar-2012 02:14:59] PHP Warning:  Missing argument 2 for template_func::get_template_dir(), called in /home/content/17/8199617/html/includes/templates/template_default/sideboxes/tpl_advanced_categories.php on line 12 and defined in /home/content/17/8199617/html/includes/classes/template_func.php on line 42
    [11-Mar-2012 02:14:59] PHP Warning:  Missing argument 3 for template_func::get_template_dir(), called in /home/content/17/8199617/html/includes/templates/template_default/sideboxes/tpl_advanced_categories.php on line 12 and defined in /home/content/17/8199617/html/includes/classes/template_func.php on line 42
    [11-Mar-2012 02:14:59] PHP Warning:  Missing argument 4 for template_func::get_template_dir(), called in /home/content/17/8199617/html/includes/templates/template_default/sideboxes/tpl_advanced_categories.php on line 12 and defined in /home/content/17/8199617/html/includes/classes/template_func.php on line 42
    [11-Mar-2012 02:14:59] PHP Warning:  Missing argument 1 for template_func::get_template_dir(), called in /home/content/17/8199617/html/includes/templates/template_default/sideboxes/tpl_advanced_categories.php on line 13 and defined in /home/content/17/8199617/html/includes/classes/template_func.php on line 42
    [11-Mar-2012 02:14:59] PHP Warning:  Missing argument 2 for template_func::get_template_dir(), called in /home/content/17/8199617/html/includes/templates/template_default/sideboxes/tpl_advanced_categories.php on line 13 and defined in /home/content/17/8199617/html/includes/classes/template_func.php on line 42
    [11-Mar-2012 02:14:59] PHP Warning:  Missing argument 3 for template_func::get_template_dir(), called in /home/content/17/8199617/html/includes/templates/template_default/sideboxes/tpl_advanced_categories.php on line 13 and defined in /home/content/17/8199617/html/includes/classes/template_func.php on line 42
    [11-Mar-2012 02:14:59] PHP Warning:  Missing argument 4 for template_func::get_template_dir(), called in /home/content/17/8199617/html/includes/templates/template_default/sideboxes/tpl_advanced_categories.php on line 13 and defined in /home/content/17/8199617/html/includes/classes/template_func.php on line 42
    [11-Mar-2012 02:14:59] PHP Fatal error:  Call to undefined function zen_get_categories_ul_li() in /home/content/17/8199617/html/includes/templates/template_default/sideboxes/tpl_advanced_categories.php on line 17
    It's another add on, and I've removed all the files from that add on since. Don't know how it would still be causing troubles, if it were the cause.

  4. #4
    Join Date
    Nov 2011
    Posts
    11
    Plugin Contributions
    0

    Default Re: PHP definition text (HEADING_TITLE, ENTRY_NAME, etc.) started showing up everywhe

    I've run a text-comparison for all the files in languages/ and they were all identical with my original backup dated a few months ago, except for 3 files that I changed last month: define_contact_us.php, contact_us.php, and shopping_cart.php.

    I checked their codes and they seem fine, and how would they affect the rest of the site anyway??


  5. #5
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    18,137
    Plugin Contributions
    2

    Default Re: PHP definition text (HEADING_TITLE, ENTRY_NAME, etc.) started showing up everywhe

    Could be a permissions thing on the appropriate folder on the site that isn't working, or a file or files could have been corrupted, which wouldn't affect the Date Changed value.

    I would use the Developers Tool Kit to search for those define names in the working site and check the files it returns in the non-working site.

  6. #6
    Join Date
    Nov 2011
    Posts
    11
    Plugin Contributions
    0

    Default Re: PHP definition text (HEADING_TITLE, ENTRY_NAME, etc.) started showing up everywhe

    Quote Originally Posted by stevesh View Post
    Could be a permissions thing on the appropriate folder on the site that isn't working, or a file or files could have been corrupted, which wouldn't affect the Date Changed value.

    I would use the Developers Tool Kit to search for those define names in the working site and check the files it returns in the non-working site.
    Thanks for your suggestions. I used the Developers Tool Kit to look for the define names, and they all have proper codes (no missing syntax, etc.).

    I've combed through and compared all the files under /includes/ with my backup, and double checked the ones that are different due to recent changes, and they looked fine. I even re-uploaded them to see if I can overwrite any corruption; but still didn't work. I also checked the new files / folders attributes and they are the same as the working files / folders.

    It seems that the problem isn't in many files, but in just one common file that may have set everything off. The reason I'm thinking this is that the define names show up everywhere, from contact page, advanced search results, product details, to shopping cart, etc.

    I just need to identify that one file, but I tried all the above methods but still couldn't do anything. It's so frustrating! What else am I not seeing?

    Thanks so much for your help.

 

 

Similar Threads

  1. HEADING_TITLE - still showing on front page
    By mr.moore in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 26 May 2009, 01:02 AM
  2. Replies: 12
    Last Post: 10 May 2008, 09:26 PM
  3. HEADING_TITLE showing instead of heading
    By kezan98 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 21 Jan 2008, 06:40 PM
  4. creating a new text definition
    By otakushark in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Dec 2007, 09:26 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
  •