Results 1 to 10 of 2344

Hybrid View

  1. #1
    Join Date
    Jul 2007
    Posts
    154
    Plugin Contributions
    0

    Default CSS Dropdown menu validation errors

    I've been using the CSS menu for some time now w/ ZenCart v. 1.3.7. I added selected few ezpages under different headings and it worked fine. Recently I experienced quite slow product pages loading in Firefox, (IE is fine). When trying to analize the problem with Web Developer validation tool showed me about 136 errors/warnings and most of them seems to be related to my added EZ pages links under the CSS menu headings. Analized page is;
    http://www.all4coffee.com/index.php?...products_id=66

    Here is a sample of the val;idation report page from Web Developer:

    Validation Output: 139 Errors
    for page
    http://www.all4coffee.com/index.php?...products_id=66

    Characters highlited in RED were shown as missing and the tool suggested to add them. The problem is that I have no idea where the code is generated...

    1. Warning Line 106, Column 48: cannot generate system identifier for general entity "i d".
    <li><a href="index.php?main_page=page& i d=12&chapter=0">Sign Up Bonus</a></li>
    2. Error Line 106, Column 48: general entity "id" not defined and no default entity.
    <li><a href="index.php?main_page=page& i d=12&chapter=0">Sign Up Bonus</a></li>
    3. Warning Line 106, Column 50: reference not terminated by REFC delimiter.
    <li><a href="index.php?main_page=page&id = 12&chapter=0">Sign Up Bonus</a></li>
    4. Warning Line 106, Column 50: reference to external entity in attribute value.
    <li><a href="index.php?main_page=page&id=12&chapter = 0">Sign Up Bonus</a></li>
    5. Error Line 106, Column 50: reference to entity "id" for which no system identifier could be generated.
    <li><a href="index.php?main_page=page&id=12 & chapter=0">Sign Up Bonus</a></li>
    6. Info Line 106, Column 47: entity was defined here.
    …<li><a href="index.php?main_page=page&id=12 & chapter=0">Sign Up Bonus</a></li>
    7. Warning Line 106, Column 54: cannot generate system identifier for general entity "chapter". (c)
    <li><a href="index.php?main_page=page & id=12&chapter=0">Sign Up Bonus</a></li>
    8. Error Line 106, Column 54: general entity "chapter" not defined and no default entity.
    <li><a href="index.php?main_page=page&id=12 & chapter=0">Sign Up Bonus</a></li>
    then the reports goes on like so regarding other EZ pages links added to the CSS menu.

    I looked at my tpl_drop_menu.php which lists my edits to the CSS menu. Here is a relevant to the Web Developer's repost section of this file w/higlighted in red EZ Page link added:

    <li class="submenu"><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>
    <ul class="level2">
    <?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
    <!--<li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', 'SSL'); ?>"><?php echo HEADER_TITLE_NEWSLETTERS; ?></a></li>-->
    <?php } else { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CREATE_ACCOUNT; ?></a></li>
    <li><a href="index.php?main_page=page&id=12&chapter=0"><?php echo HEADER_TITLE_SIGNUP_BONUS; ?></a></li>
    <?php } ?>
    </ul>
    </li>
    Any guidance or help would be appreciated...
    Last edited by all4coffee; 2 Jan 2009 at 05:27 AM.

  2. #2
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: CSS Dropdown menu validation errors

    Quote Originally Posted by all4coffee View Post
    I've been using the CSS menu for some time now w/ ZenCart v. 1.3.7. I added selected few ezpages under different headings and it worked fine. Recently I experienced quite slow product pages loading in Firefox, (IE is fine). When trying to analize the problem with Web Developer validation tool showed me about 136 errors/warnings and most of them seems to be related to my added EZ pages links under the CSS menu headings. Analized page is;
    http://www.all4coffee.com/index.php?...products_id=66

    Here is a sample of the val;idation report page from Web Developer:

    Validation Output: 139 Errors
    for page
    http://www.all4coffee.com/index.php?...products_id=66

    Characters highlited in RED were shown as missing and the tool suggested to add them. The problem is that I have no idea where the code is generated...



    then the reports goes on like so regarding other EZ pages links added to the CSS menu.

    I looked at my tpl_drop_menu.php which lists my edits to the CSS menu. Here is a relevant to the Web Developer's repost section of this file w/higlighted in red EZ Page link added:



    Any guidance or help would be appreciated...
    When you turn off the menu, does the site load quickly again? I don't think those errors would slow your site down.

    AND for what its worth, I have ezpages using this menu, and there are no HTML errors:
    http://www.zencart137.jadetrue.com/

    And when I validate your site, the only kind of errors I see are from your odd coyright section, where the HTML looks like this:
    <div id="siteinfoLegal" class="legalCopyright">Copyright &copy; 2009 <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a>. <a href="https://www40.ssldomain.com/all4coffee/index.php?main_page=page&id=18&chapter=0">P</a><a href="https://www40.ssldomain.com/all4coffee/index.php?main_page=page&id=19&chapter=0">o</a><a href="https://www40.ssldomain.com/all4coffee/index.php?main_page=page&id=20&chapter=0">w</a><a href="https://www40.ssldomain.com/all4coffee/index.php?main_page=page&id=21&chapter=0">e</a><a href="https://www40.ssldomain.com/all4coffee/index.php?main_page=page&id=22&chapter=0">r</a><a href="https://www40.ssldomain.com/all4coffee/index.php?main_page=page&id=23&chapter=0">e</a><a href="https://www40.ssldomain.com/all4coffee/index.php?main_page=page&id=24&chapter=0">d</a> <a href="https://www40.ssldomain.com/all4coffee/index.php?main_page=page&id=25&chapter=0">b</a><a href="https://www40.ssldomain.com/all4coffee/index.php?main_page=page&id=26&chapter=0">y</a> <a href="https://www40.ssldomain.com/all4coffee/index.php?main_page=page&id=27&chapter=0">Z</a><a href="https://www40.ssldomain.com/all4coffee/index.php?main_page=page&id=28&chapter=0">e</a>n Cart</a> & <a href="http://www.crystaltech.com" target="_blank"> CrystalTech</a><div class="ic">Free Zen Cart Template by <a href="http://zencart.ichoze.net">iChoze.net :: Free Zen Cart Templates &amp; Professional Zen Cart Customizations</a></div></div>

    You have a different link for almost every letter? And in all of those you forgot to change the & symbols to &amp;

    That's the main errors I see.

  3. #3
    Join Date
    Jul 2007
    Posts
    154
    Plugin Contributions
    0

    Default Re: CSS Dropdown menu validation errors

    Quote Originally Posted by jettrue View Post
    When you turn off the menu, does the site load quickly again? I don't think those errors would slow your site down.

    AND for what its worth, I have ezpages using this menu, and there are no HTML errors:
    http://www.zencart137.jadetrue.com/

    And when I validate your site, the only kind of errors I see are from your odd coyright section, And in all of those you forgot to change the & symbols to &amp;

    That's the main errors I see.
    Jettrue, thanks for responding. You were absolutely right - the errors had nothing to do with the CSS menus (AND they were not the reason for my product pages loading slow) I fixed most of the errors but the real problem was java script file calling non existant (and not needed) scripts for HoverBox 2.1.

  4. #4
    Join Date
    Nov 2008
    Location
    New York
    Posts
    9
    Plugin Contributions
    0

    Default Re: CSS Dropdown menu for your header- With Categories!

    Hi!

    I'm sorry if this topic is in repeat, I'm having a hard time finding my answers!

    I'm interested in adding additional links to my Information drop menu.
    Customizing any of the link references in tpl_drop_menu, once uploaded, removes the drop down menu completely from my site.
    I've tried to do the following:
    ~~remove Discount Coupons
    ~~ add topics Designer & Tutorial
    ~~(rather than use the given page_2, page_3, I've created custom pages: /tutorials.php /designer.php

    When the sidebox is activated (I'd prefer to have it off) the "designer" option is available, however I receive a 404 of the page not being found. I assume this correlates to the link issue above.

    www.candycornclothing.com/shop

    Thank you much!
    Jen

  5. #5
    Join Date
    Nov 2004
    Location
    West Mids, England
    Posts
    203
    Plugin Contributions
    1

    Default Re: CSS Dropdown menu for your header- With Categories!

    Hi

    Not sure if this is the reason, but the code for your menu is in the footer of the shop, not the header. Any reason for this?

    Craig

  6. #6
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: CSS Dropdown menu for your header- With Categories!

    Quote Originally Posted by CES View Post
    Hi

    Not sure if this is the reason, but the code for your menu is in the footer of the shop, not the header. Any reason for this?

    Craig
    Who are you asking? Me? I designed Apple Zen that way, so that people with REALLY big menus have the actual content of their site show first for the spiders.

  7. #7
    Join Date
    Nov 2004
    Location
    West Mids, England
    Posts
    203
    Plugin Contributions
    1

    Default Re: CSS Dropdown menu for your header- With Categories!

    Quote Originally Posted by jettrue View Post
    Who are you asking? Me?
    Well not really.

    Quote Originally Posted by jettrue View Post
    I designed Apple Zen that way, so that people with REALLY big menus have the actual content of their site show first for the spiders.
    Thanks for explaining it though. I was just comparing to my site and the instructions to put the dropdown it in the header file.

    If you want me to keep my nose out in future, just say. ;-)

    Thanks for a great mod once again.

    Craig

  8. #8
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: CSS Dropdown menu for your header- With Categories!

    Quote Originally Posted by desamothrace View Post
    Hi!

    I'm sorry if this topic is in repeat, I'm having a hard time finding my answers!

    I'm interested in adding additional links to my Information drop menu.
    Customizing any of the link references in tpl_drop_menu, once uploaded, removes the drop down menu completely from my site.
    I've tried to do the following:
    ~~remove Discount Coupons
    ~~ add topics Designer & Tutorial
    ~~(rather than use the given page_2, page_3, I've created custom pages: /tutorials.php /designer.php

    When the sidebox is activated (I'd prefer to have it off) the "designer" option is available, however I receive a 404 of the page not being found. I assume this correlates to the link issue above.

    www.candycornclothing.com/shop

    Thank you much!
    Jen
    My guess is that it has nothing to do with the drop down menu, but an error in how you've created the pages or edited the coding.

    If you type in the address of the new pages you've created, do they work? I.E.:
    http://www.candycornclothing.com/sho..._page=designer
    http://www.candycornclothing.com/sho...page=tutorials

    There's an "About Us" mod in the download section that shows you all the files you have to create to make new pages work.

    Also, can you give me an example of what you've tried adding to tpl_drop_menu.php?

  9. #9
    Join Date
    Nov 2008
    Location
    New York
    Posts
    9
    Plugin Contributions
    0

    Default Re: CSS Dropdown menu for your header- With Categories!

    Quote Originally Posted by jettrue View Post
    My guess is that it has nothing to do with the drop down menu, but an error in how you've created the pages or edited the coding.

    If you type in the address of the new pages you've created, do they work?
    Thank you, you were correct. My links were not active. Corrected

    Quote Originally Posted by jettrue View Post
    There's an "About Us" mod in the download section that shows you all the files you have to create to make new pages work.
    Thank you, I have downloaded it and made following corrections to make my links active.

    Quote Originally Posted by jettrue View Post
    Also, can you give me an example of what you've tried adding to tpl_drop_menu.php?
    Sure! I haven't done any further adjustments than this, all that I've done is mimicked the code for the about us page:

    <li><a href="<?php echo zen_href_link(FILENAME_DESIGNER); ?>"><?php echo HEADER_TITLE_DESIGNER; ?></a></li>
    <?php if (DEFINE_SITE_MAP_STATUS <= 1) { ?>

    I'm not skilled enough to know whether there is additional coding required or not.


    Thank you again! I need to buy you a coffee-- or tea.


    Jen

  10. #10
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: CSS Dropdown menu for your header- With Categories!

    Quote Originally Posted by desamothrace View Post
    Thank you, you were correct. My links were not active. Corrected


    Thank you, I have downloaded it and made following corrections to make my links active.



    Sure! I haven't done any further adjustments than this, all that I've done is mimicked the code for the about us page:

    <li><a href="<?php echo zen_href_link(FILENAME_DESIGNER); ?>"><?php echo HEADER_TITLE_DESIGNER; ?></a></li>
    <?php if (DEFINE_SITE_MAP_STATUS <= 1) { ?>

    I'm not skilled enough to know whether there is additional coding required or not.


    Thank you again! I need to buy you a coffee-- or tea.


    Jen
    Hi there.

    Coffee please

    If you add the code "FILENAME_DESIGNER" or "HEADER_TITLE_DESIGNER", those are called defines, and you have to define them in a languages file somewhere.

    But instead of that, I'll give you a hint (the kind that makes you smack yourself on the head). Just enter the link instead:
    Code:
    <li><a href="index.php?main_page=designer">Designer</a></li>
    (don't use the <?php if (DEFINE_SITE_MAP_STATUS <= 1) { ?> code, that is for the next link)

 

 

Similar Threads

  1. Categories dropdown menu/css
    By KenshiroU in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Apr 2013, 01:04 PM
  2. HIde categories mod with css dropdown menu
    By adowty in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Feb 2012, 01:05 AM
  3. How to use ezpages/categories as dropdown menu in the header?
    By mdivk in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 21 Dec 2011, 06:32 PM
  4. whats wrong with this css for my dropdown menu?
    By 1kell in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 28 May 2010, 02:47 AM
  5. Header Dropdown Menu (CSS) Without the Dropdown???
    By hcd888 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 May 2009, 01:20 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