Thread: SitemapXML v.2

Page 158 of 222 FirstFirst ... 58108148156157158159160168208 ... LastLast
Results 1,571 to 1,580 of 2215
  1. #1571
    Join Date
    Sep 2008
    Location
    WA
    Posts
    555
    Plugin Contributions
    0

    Default Re: SitemapXML v.2

    I would download the previous version and do a quick file compare using win merge or beyond compare. Hopefully it will pop right out.

  2. #1572
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: SitemapXML v.2

    Quote Originally Posted by lruskauff View Post
    I would download the previous version and do a quick file compare using win merge or beyond compare. Hopefully it will pop right out.
    The latest update is only updated for the author's own commercial product. There is no reason to use this version unless you are using this commercial product. IMHO ist should not even have been added to the code. He did not document it in the readme, and never ever made a comment in this thread.

  3. #1573
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    Plugin Contributions
    13

    Default Re: SitemapXML v.2

    Quote Originally Posted by kwright View Post
    So, I looked more closely at the error from FF. It seems that there is a white space before the opening declaration.

    <?xml version="1.0" encoding="UTF-8"?>
    ^

    If I save the page source and remove the space, then reopen it in FF, no error! The problem is I can't seem to find were in the sitemap code this space is being introduced? The root sitemap.xml doesn't have this issue...

    I looked at the function _SitemapXMLHeader() in the sitemapxml.php class where the first lines are:

    PHP Code:
      function _SitemapXMLHeader() {
        $header = '';
        $header .= '<?xml version="1.0" encoding="UTF-8"?'.'>' . "\n";
    No white space here, but some how when the $header is returned and sent back to the browser, there is a space???

    What do you think?
    This is not a SitemapXML problem. Check language and all extra files. I wrote a script that is looking for extra spaces in PHP files. It helps to detect bad files. You can download it https://goo.gl/88MtW2/ Unzip, upload to cart root directory and start it - http://your_domain/found_extra_space.php

  4. #1574
    Join Date
    Nov 2004
    Posts
    364
    Plugin Contributions
    0

    help question Re: SitemapXML v.2

    Quote Originally Posted by a_berezin View Post
    This is not a SitemapXML problem. Check language and all extra files. I wrote a script that is looking for extra spaces in PHP files. It helps to detect bad files. You can download it https://goo.gl/88MtW2/ Unzip, upload to cart root directory and start it - http://your_domain/found_extra_space.php
    Thanks a_berezin,

    Ran your script and found the following files had space at the end:

    template_default/sitemapxml/html_header.php
    template_default/common/html_header.php

    However, both files have this comment at the bottom, followed by 2 new lines:

    <?php // NOTE: Blank line following is intended: ?>



    Just for a test, I removed the extra line form both files. Made no difference.

    Again, here is the output from the inline=yes parameter: Notice the space before the opening tag.
    HTML Code:
     <?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet type="text/xsl" href="/includes/templates/template_default/css/gss.xsl"?>
    <sitemapindex xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd"
            xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    <!-- generator="Zen-Cart SitemapXML" 3.2.13 20.08.2015 11:14:48 -->
    <!-- sitemap.xml created at 2015-09-18 08:12:38 -->
     <sitemap>
      .
      .
      .
    </sitemapindex>
    Here's the content of the root sitemap.xml for comparison:
    HTML Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet type="text/xsl" href="/includes/templates/template_default/css/gss.xsl"?>
    <sitemapindex xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd"
            xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    <!-- generator="Zen-Cart SitemapXML" 3.2.13 20.08.2015 11:14:48 -->
    <!-- sitemap.xml created at 2015-09-18 08:12:38 -->
     <sitemap>
      .
      .
      .
    </sitemapindex>
    What file(s) has the fix for the inline=yes that was mentioned in the plugin history?

    Thank you!
    Experience is what you get when you don’t get what you want…

  5. #1575
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    Plugin Contributions
    13

    Default Re: SitemapXML v.2

    Hi,
    Quote Originally Posted by kwright View Post
    Ran your script and found the following files had space at the end:

    template_default/sitemapxml/html_header.php
    template_default/common/html_header.php
    So the problem is more complicated than I had hoped.
    Quote Originally Posted by kwright View Post
    What file(s) has the fix for the inline=yes that was mentioned in the plugin history?
    This is a joke? Of course I do not remember that corrected a few years ago.

    Have you checked the error logs? There is nothing?

  6. #1576
    Join Date
    Nov 2004
    Posts
    364
    Plugin Contributions
    0

    Default Re: SitemapXML v.2

    Quote Originally Posted by a_berezin View Post
    Hi,

    So the problem is more complicated than I had hoped.

    This is a joke? Of course I do not remember that corrected a few years ago.

    Have you checked the error logs? There is nothing?
    There are no errors. My guess this is because the file is created successfully, it just fails in the browser & Google sitemap test because it is malformed due to the xml file starting off with a space...
    Experience is what you get when you don’t get what you want…

  7. #1577
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    Plugin Contributions
    13

    Default Re: SitemapXML v.2

    Quote Originally Posted by kwright View Post
    There are no errors. My guess this is because the file is created successfully, it just fails in the browser & Google sitemap test because it is malformed due to the xml file starting off with a space...
    You do not hear me. It is not sitemapxml problem, the problem somewhere else. It is necessary to search.
    You can check a clean install 1.5.4 with sitemapxml - http://test15.zen-cart.zz/index.php?...yes&token=xxxx

    Check the source code of your default page http://your_domain/ - have any white space at the beginning?
    Try to disable gzip compression.

  8. #1578
    Join Date
    Nov 2004
    Posts
    364
    Plugin Contributions
    0

    Default Re: SitemapXML v.2

    Quote Originally Posted by a_berezin View Post
    You do not hear me. It is not sitemapxml problem, the problem somewhere else. It is necessary to search.
    You can check a clean install 1.5.4 with sitemapxml - http://test15.zen-cart.zz/index.php?...yes&token=xxxx

    Check the source code of your default page http://your_domain/ - have any white space at the beginning?
    Try to disable gzip compression.
    Finally got around to troubleshooting this. Turns out, when I added an extra ob_end_clean() to this statement within the sitemapxml.php class, it fixed my issue.

    PHP Code:
    if ($this->inline) {
          if (
    $this->submitFlag) {
            
    ob_end_clean();
            
    ob_end_clean();
            
    $this->_outputSitemapIndex();
          } else {
            
    ob_end_flush();
          }
        } 
    Seems as if there was an extra white space getting into the buffer. Maybe on_start() was getting call twice before hitting the first ob_end_clean()?

    Anyhow, inline is now working for me!
    Experience is what you get when you don’t get what you want…

  9. #1579
    Join Date
    Jul 2015
    Posts
    7
    Plugin Contributions
    0

    Default Re: SitemapXML v.2

    Thank you very much for making this plugin.

    I am running ZC v1.5.4 and I just installed this plugin for the first time. I think I did everything correctly, however, the site map on the root is completely blank. There are site maps found for Categories, EZ pages, Products, Manufactures, and the main page. All of these are full of URLs. But the one found at example.com/sitemap.xml is completely blank. Can you please point me in the right direction?

  10. #1580
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    Plugin Contributions
    13

    Default Re: SitemapXML v.2

    Hi,
    Quote Originally Posted by JoeToys View Post
    Thank you very much for making this plugin.

    I am running ZC v1.5.4 and I just installed this plugin for the first time. I think I did everything correctly, however, the site map on the root is completely blank. There are site maps found for Categories, EZ pages, Products, Manufactures, and the main page. All of these are full of URLs. But the one found at example.com/sitemap.xml is completely blank. Can you please point me in the right direction?
    1. Check file permissions /sitemap.xml
    2. Check error log files in /logs/ directory

 

 

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR