Results 1 to 10 of 10
  1. #1
    Join Date
    Sep 2010
    Location
    SYDNEY
    Posts
    2
    Plugin Contributions
    0

    application error Blank Pages After Change meta_tags.php File

    I have just installed zencart new fresh - v1.3.9f (Dreamhost One-Click-Install) and the only major mod I have made ( apart from configuration settings) is installing my custom template, which works fine, here and elsewhere.

    Though when I edit the meta_tags.php file, all I edit is the top three things - Title, Tagline, Keywords- ( Zencart!, The Art of E-commerce etc...) I upload it and get blank pages - i.e nothing.

    if I revert to the original file, and re-upload, it works fine...

    any ideas what is wrong?

    I am not new to zen-cart, but new to this forum. most times I find what I need already here so no need to post yet.

    cheers

    CHRIS

  2. #2
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Blank Pages After Change meta_tags.php File

    I would guess you have a ' in some of your words, like "can't".

    Can't use apostrophes.

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Blank Pages After Change meta_tags.php File

    Check the error log file(s) in /cache to see what the error is. Post it here if it isn't clear.

    Also. if you have any special characters, like an apostrophe, in the text you put in those defines, you'll need to 'escape' them by placing a backslash in front of the character:

    Steve\'s Store

  4. #4
    Join Date
    Sep 2010
    Location
    SYDNEY
    Posts
    2
    Plugin Contributions
    0

    Default Re: Blank Pages After Change meta_tags.php File

    Cool, I had the word "Women's" in there,

    All fixed!

    THANX! !

    CHRIS

  5. #5
    Join Date
    Jul 2009
    Posts
    10
    Plugin Contributions
    0

    Default Re: Blank Pages After Change meta_tags.php File

    Is this a bug in Zen-Cart or is an apostrophe an illegal character in a meta-tag?

    I looked at W3's documentation and don't see anything about allowed/disallowed characters in the tag.

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

    Default Re: Blank Pages After Change meta_tags.php File

    The apostrophe has to be escaped meaning:
    Code:
    define('CONSTANT_HERE', 'Fred\'s Place');
    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!]
    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!

  7. #7
    Join Date
    Jul 2009
    Posts
    10
    Plugin Contributions
    0

    Default Re: Blank Pages After Change meta_tags.php File

    Thanks Linda for the very quick and informative response - that worked!

  8. #8
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Blank Pages After Change meta_tags.php File

    Quote Originally Posted by anesupport View Post
    Is this a bug in Zen-Cart or is an apostrophe an illegal character in a meta-tag?

    I looked at W3's documentation and don't see anything about allowed/disallowed characters in the tag.
    It's not an illegal character in the meta tags, but it's a special character in php, so it needs to be "escaped" as mentioned earlier which tells the php that the apostrophe is just a punctuation mark.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  9. #9
    Join Date
    Jul 2009
    Posts
    10
    Plugin Contributions
    0

    Default Re: Blank Pages After Change meta_tags.php File

    Thank you too Mary Ellen. Understood.

  10. #10
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Blank Pages After Change meta_tags.php File

    I didn't see Linda's post before I wrote my explanation.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

 

 

Similar Threads

  1. Help, blank pages after change of page_2.php
    By madli in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 16 Jun 2009, 03:42 PM
  2. i can't find my meta_tags.php file
    By Marty McFly in forum General Questions
    Replies: 7
    Last Post: 30 Aug 2006, 09:01 PM
  3. meta_tags.php file
    By Christoff The One in forum General Questions
    Replies: 7
    Last Post: 12 Jun 2006, 03:23 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