Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2010
    Posts
    55
    Plugin Contributions
    0

    Default get_template_part error

    Hi

    I got the below error when browse the home page URL

    get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^style/', '.css'); while(list ($key, $value) = each($directory_array)) { echo ''."\n"; } ?>

    Thanks

  2. #2
    Join Date
    Feb 2010
    Posts
    55
    Plugin Contributions
    0

    Default Re: get_template_part error

    Anyone know the fix for the above issue?



  3. #3
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: get_template_part error

    That's not an error. It's a partial snippet of code. If you're seeing that on your website, then you've broken one or more of your template files, or maybe one of the other files you've been editing.

    The fastest fix will be to undo whatever you did just before you made that appear.
    .
    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.

  4. #4
    Join Date
    Feb 2010
    Posts
    55
    Plugin Contributions
    0

    Default Re: get_template_part error

    DrByte

    Thanks for the replay.

    The message still exist.

    I am using WAMP Server with Apache 2.22.14 , PHP Version 5.2.11 and MYSQL 5.1.36.

    I used a backup copy of the htdocs folder, which is working fine in other Windows system with apache 2.2, php 5.2.12 and mysql 5.5

    Thanks

  5. #5
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: get_template_part error

    Your html_header.php file is damaged.
    .
    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.

  6. #6
    Join Date
    Feb 2010
    Posts
    55
    Plugin Contributions
    0

    Default Re: get_template_part error

    I found the issue and it is fixed.

    Reason :
    In PHP.INI short_open_tag = Off is
    changed to short_open_tag = On


    Thanks

  7. #7
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: get_template_part error

    Okay, so that confirms that YOUR custom edits were not properly using real <?php tags, and you were instead lazily using just <? tags.
    NOTE: Future versions of PHP are going to NO LONGER all you to EVER use short-tags. It is STRONGLY recommended that you start using proper full tags instead.
    .
    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.

  8. #8
    Join Date
    Feb 2010
    Posts
    55
    Plugin Contributions
    0

    Default Re: get_template_part error

    Thanks for your information.

 

 

Similar Threads

  1. Replies: 2
    Last Post: 15 Feb 2012, 09:08 PM
  2. v139f Shopping Cart error: HTTP Error 500 (Internal Server Error)
    By Tulameen in forum General Questions
    Replies: 0
    Last Post: 15 Jan 2012, 01:48 AM
  3. UPS XML Error: cURL: Error [77]: error setting certificate verify locations
    By ultraloveninja in forum Addon Shipping Modules
    Replies: 3
    Last Post: 30 Nov 2009, 03:55 AM
  4. Replies: 4
    Last Post: 30 Aug 2009, 09:26 PM
  5. Need help: Fatal Error: Call to a member function get_template_part() on a non-object
    By LarryDavidson in forum Upgrading from 1.3.x to 1.3.9
    Replies: 0
    Last Post: 21 Aug 2009, 02:49 PM

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