Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Sep 2012
    Location
    wales,UK
    Posts
    7
    Plugin Contributions
    0

    help question At my wits end with Meta_tags

    I am reconstructing my site after a brutal hack of my zencart site, obviously I have upgraded to the version1.5 for this reconstruction.
    The person before me who constructed my site (it was a favour) put everything everywhere no over ride files etc so I am learning as I go with this thought the site was pretty much fully functional until the hack.

    I have created override files like your supposed to and they are working fine as I use them as intended.

    BUT I have spent two weeks now trying to sort the site title out etc. Originally I wanted metatags but after the amount of time I have had dealing with the issues presented I just ended up thinking I'll just do the site title but if someone can help me to even get metatags to work. I would be obliged.

    my site is b a b i s e r e n . c o . u k / newsite[/URL]

    Okay I have found the meta-tag.php file in newsite/includes/languages/english.

    I have modified the parts between the ' ' to the words I need being very careful to follow how it was from the original Zencart titles, keywords I originally tried to add, @ first with capital letters at the beginning then lower case but none worked on loading.

    I have attached the template to show you what I am seeing it is blank and yes I have even tried to "load" this

    PHP Code:
     // page title
    define('TITLE''');

    // Site Tagline
    define('SITE_TAGLINE''');

    // Custom Keywords
    define('CUSTOM_KEYWORDS''');

    // Home Page Only:
      
    define('HOME_PAGE_META_DESCRIPTION''');
      
    define('HOME_PAGE_META_KEYWORDS''');

      
    // NOTE: If HOME_PAGE_TITLE is left blank (default) then TITLE and SITE_TAGLINE will be used instead.
      
    define('HOME_PAGE_TITLE'''); // usually best left blank


    // EZ-Pages meta-tags.  Follow this pattern for all ez-pages for which you desire custom metatags. Replace the # with ezpage id.
    // If you wish to use defaults for any of the 3 items for a given page, simply do not define it.
    // (ie: the Title tag is best not set, so that site-wide defaults can be used.)
    // repeat pattern as necessary
      
    define('META_TAG_DESCRIPTION_EZPAGE_#','');
      
    define('META_TAG_KEYWORDS_EZPAGE_#','');
      
    define('META_TAG_TITLE_EZPAGE_#''');

    // Per-Page meta-tags. Follow this pattern for individual pages you wish to override. This is useful mainly for additional pages.
    // replace "page_name" with the UPPERCASE name of your main_page= value, such as ABOUT_US or SHIPPINGINFO etc.
    // repeat pattern as necessary
      
    define('META_TAG_DESCRIPTION_page_name','');
      
    define('META_TAG_KEYWORDS_page_name','');
      
    define('META_TAG_TITLE_page_name''');

    // Review Page can have a lead in:
      
    define('META_TAGS_REVIEW''Reviews: ');

    // separators for meta tag definitions
    // Define Primary Section Output
      
    define('PRIMARY_SECTION'' : ');

    // Define Secondary Section Output
      
    define('SECONDARY_SECTION'' - ');

    // Define Tertiary Section Output
      
    define('TERTIARY_SECTION'', ');

    // Define divider ... usually just a space or a comma plus a space
      
    define('METATAGS_DIVIDER'' ');

    // Define which pages to tell robots/spiders not to index
    // This is generally used for account-management pages or typical SSL pages, and usually doesn't need to be touched.
      
    define('ROBOTS_PAGES_TO_SKIP','login,logoff,create_account,account,account_edit,account_history,account_history_info,account_newsletters,account_notifications,account_password,address_book,advanced_search,advanced_search_result,checkout_success,checkout_process,checkout_shipping,checkout_payment,checkout_confirmation,cookie_usage,create_account_success,contact_us,download,download_timeout,customers_authorization,down_for_maintenance,password_forgotten,time_out,unsubscribe,info_shopping_cart,popup_image,popup_image_additional,product_reviews_write,ssl_check,shopping_cart');


    // favicon setting
    // There is usually NO need to enable this unless you need to specify a path and/or a different filename
    //  define('FAVICON','favicon.ico'); 

    I use firefox as my ftp client, (which recently I was told that it did not work with my server by my hosting company how true can that be being a green horn I am stumped.)

    When adding it to /newsite/includes/languages/english/**template**

    It works on the live site but wipes out my access to the admin page... WHITE SCREEN
    I know it is associated with putting ' or (.) or spaces where they should not be BUT I have followed it to the letter.
    It has gotten to the point of tears now. I do not want my site going live with Zen cart emblazoned across it.
    I have researched this issue for a very long time now PLEASE SOMEONE HELP.

  2. #2
    Join Date
    Sep 2012
    Location
    wales,UK
    Posts
    7
    Plugin Contributions
    0

    Default Re: At my wits end with Meta_tags

    ftpclient is filezilla

  3. #3
    Join Date
    Oct 2011
    Location
    AZ
    Posts
    384
    Plugin Contributions
    0

    Default Re: At my wits end with Meta_tags

    If you've played with the file and now you have the white-screen of nothingness then the easiest quick fix is to download a fresh version of ZC, unzip it, find the file you played with and upload it to your website to overwrite the messed up one. The permissions for that file are 644 which you can set from your host's cpanel.

    I looked at the site you linked to. I don't see "zen cart" anywhere up top so you might have fixed that part. I did see "Tag Line Here" in the upper right of your screen. I viewed source and it's showing this: <div id="tagline">TagLine Here</div> If you use developers tool kit from the admin panel to search for TagLine Here you will find the file it is in and you can go in and change it to Babies For Sale or a logo of your choosing.

    As for the tab up top of the browser, yours is now showing the full URL of your store because you zeroed it out (cleaned out the space between the apostrophes). The original meta-tags file had this in that meta-tags file:
    // page title
    define('TITLE', 'Zen Cart!');

    // Site Tagline
    define('SITE_TAGLINE', 'The Art of E-commerce');

    If you want to change that (it sounds like you do) and you've tried replacing those words with ones of your own choosing, then maybe you're using some special character that throws everything off. What exactly do you want to put as the title and tagline, maybe it's got some character that is verboten and we can escape it out?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: At my wits end with Meta_tags

    Quote Originally Posted by Serenity_works View Post
    When adding it to /newsite/includes/languages/english/**template**

    It works on the live site but wipes out my access to the admin page... WHITE SCREEN
    So is your post specifically about this point that your admin page is showing up blank? Or is it broader than just that?

    FAQ on blank pages: http://www.zen-cart.com/content.php?124-blank-page
    .

    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.

  5. #5
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,826
    Plugin Contributions
    31

    Default Re: At my wits end with Meta_tags

    I have created override files like your supposed to and they are working fine as I use them as intended.
    Okay I have found the meta-tag.php file in newsite/includes/languages/english.
    I have modified the parts between...
    I assume you mean you have copied the file and are modifying the override copy:
    newsite/includes/languages/YOUR_TEMPLATE/english.php
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  6. #6
    Join Date
    Sep 2012
    Location
    wales,UK
    Posts
    7
    Plugin Contributions
    0

    Default Re: At my wits end with Meta_tags

    To Joejoejoe Right now my admin page is a white out I have left it like that so someone can help.
    My tagline I am waiting for a friend to redesign my logo so that is not a problem.
    The metatag way you have shown I have been doing.
    All that is typed in there Is 'Babi Seren' <-- title
    and 'for your little stars needs' <---- Site tag line
    Even when they are zeroed out it does not work. Just a white screen

  7. #7
    Join Date
    Sep 2012
    Location
    wales,UK
    Posts
    7
    Plugin Contributions
    0

    Default Re: At my wits end with Meta_tags

    @ DR Byte specifically the blank screen ONLY when I modify this file does it do this.
    I have read through the blank screen FAQ's and numerous others even tangent links to this topic nothing seems to help.
    I have numerous backups of the site so I remove and copy a fresh one to modify even used the old one from my other site nothing.
    The site as you can see will work in this setup I just cannot get to the admin to start the adding of products while I wait for my art work to come back.

  8. #8
    Join Date
    Sep 2012
    Location
    wales,UK
    Posts
    7
    Plugin Contributions
    0

    Default Re: At my wits end with Meta_tags

    @Torvista Yes I copy the files to modify and reupload to the override file not remove them, obviously the override system would not work if I just moved the file (or at least I assume this).
    Oh forgot @ Joejoe joe I have tried the file permissions to allow full access for modification etc etc etc absolute ZIP, I thought that might be causing issues Nope.

    As you can see those who replied I am really on a headscratcher
    Are there any other files attached to this one oh Zen cart masters, which might affect how it works? I may have modified one and unknowingly caused myself problems which have not showed until now on modifying this one.
    I hope you can help

  9. #9
    Join Date
    Sep 2012
    Location
    wales,UK
    Posts
    7
    Plugin Contributions
    0

    Default Re: At my wits end with Meta_tags

    DR byte I just checked my debug folders (forgot to look in there tbh) and got an error I do not understand
    [01-Oct-2012 04:08:41] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/***/public_html/newsite/includes/languages/english/****/meta_tags.php:1) in ****/newsite/includes/init_includes/init_templates.php on line 78
    [13-Sep-2012 13:04:00] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/***/public_html/newsite/includes/languages/english/meta_tags.php:1) in newsite /****/includes/init_includes/init_templates.php on line 28
    [13-Sep-2012 13:04:00] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/***/public_html/newsite/includes/languages/english/meta_tags.php:1) in /newsite /***/includes/functions/general.php on line 21

    The 13 september is quite a repetitive issue, replaced by the 1 oct one when modifying the file and using the override files, I have not touched these other folders (init or general). I get its trying to tell me that these files already have the info BUT what do I do now how come they have the same info? Completely confused now, and do not know what to do!
    Last edited by Serenity_works; 1 Oct 2012 at 10:57 AM.

  10. #10
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: At my wits end with Meta_tags

    headers already sent by (output started at /home/***/public_html/newsite/includes/languages/english/****/meta_tags.php:1)

    This means that your meta_tags.php has sent something (possibly just one blank space) before the proper HTML head section was built. Look closely at that file and make sure there is nothing before the <?php opening tag (since it says line 1).

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. At my wits end with br clearBoth
    By casey in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 16 Jul 2009, 04:18 PM
  2. At my wits end
    By TUSChris in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 Nov 2008, 08:24 PM
  3. PROBLEMS INSTALLING-at my wits end!!!
    By Emma_24 in forum Installing on a Linux/Unix Server
    Replies: 10
    Last Post: 10 Jul 2008, 02:41 PM
  4. At my WiTS end with trying to configure "local" Sales Tax
    By TrishG in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 4
    Last Post: 6 Jul 2008, 12:38 AM

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