New Zenner
- Join Date:
- Sep 2011
- Posts:
- 77
- Plugin Contributions:
- 0
SitemapXML v.2
Solved it myself . To list more than 5000 products make sure you have sitemapxml_cats2man.php selected !
Views: 613,208
New Zenner
Solved it myself . To list more than 5000 products make sure you have sitemapxml_cats2man.php selected !
Zen Follower
Zen Cart v1.5.4
Sitemap XML v3.9.6
Simple Seo Urls
My sitemap used to produce seo friendly urls but it has started producing every entry in the format
https://www.tidytoys.co.uk/index.php?main_page=product_info&products_id=2180
https://www.tidytoys.co.uk/sitemap/sitemapproducts.xml
Ive recently paid someone to do some work on my website, so not sure if its me, them or the fact Ive messed with the settings that is causing this problem.
Can you help.
Totally Zenned
Are you using CEON SEO URL's?
toyseller:
Zen Cart v1.5.4
Sitemap XML v3.9.6
Simple Seo UrlsMy sitemap used to produce seo friendly urls but it has started producing every entry in the format
https://www.tidytoys.co.uk/index.php?main_page=product_info&products_id=2180https://www.tidytoys.co.uk/sitemap/sitemapproducts.xml
Ive recently paid someone to do some work on my website, so not sure if its me, them or the fact Ive messed with the settings that is causing this problem.
Can you help.
Totally Zenned
toyseller:
Zen Cart v1.5.4
Sitemap XML v3.9.6
Simple Seo UrlsMy sitemap used to produce seo friendly urls but it has started producing every entry in the format
https://www.tidytoys.co.uk/index.php?main_page=product_info&products_id=2180https://www.tidytoys.co.uk/sitemap/sitemapproducts.xml
Ive recently paid someone to do some work on my website, so not sure if its me, them or the fact Ive messed with the settings that is causing this problem.
Can you help.
Oh just seen Simple SEO URL's
The CEON module is better and works with sitemap.xml
Zen Follower
Has worked ok for ages with the sitemap containing the seo friendly urls but only just started doing this.
I noticed after I had the work done on my website that my robots.txt file had been cleared out too.
So not sure what has changed to cause the sitemap not to contain the seo friendly urls that my website is using.
Administrator
toyseller:
Has worked ok for ages with the sitemap containing the seo friendly urls but only just started doing this.
I noticed after I had the work done on my website that my robots.txt file had been cleared out too.
So not sure what has changed to cause the sitemap not to contain the seo friendly urls that my website is using.
Your site's canonical links, e.g.
<link rel="canonical" href="https://www.tidytoys.co.uk/index.php?main_page=product_info&products_id=877" />
are not following the SEO URLs' rules either. I believe that the Ultimate SEO URLs (https://www.zen-cart.com/downloads.php?do=file&id=132) generates SSU-compatible URLs, creates a correct canonical link and works under zc156/zc157.
If you 'go that way', I'll suggest uninstalling the SSU module (noting any configuration settings and backing up the database first) and then installing USU.
Oops! I just noticed that your site's running zc154, which isn't supported by USU.
Zen Follower
Thank you but I dont have the knowledge to do all this work.
As the sitemap was ok until fairly recently I was just hoping it would be a setting Id got wrong or soething like this.
Simple SEO urls has always worked for me.
Totally Zenned
As @lat9 pointed out your site's canonical links are not following the SEO URLs' rules. In fact there is no evidence that Simple SEO urls is working at all on your site, so it's no wonder that the sitemap urls are incorrect.
I didn't check your site when you first posted so you may have made a change since then, but it MAY be something as simple as turning back on the Simple SEO in admin - I assume there's a switch there (especially as you've had someone else touching things), I'm not familiar with this mod so can't really direct you.
Zen Follower
I thought that simple seo was working correctly ... in that all my webpages are showing as friendly urls ie.
https://www.tidytoys.co.uk/anna-club-plush/dachshund-soft-toy-brown-anna-club-plush
Its just that the canonical link is wrong and that every entry in the sitemap isn't reflecting the seo friendly urls.
Totally Zenned
toyseller:
I thought that simple seo was working correctly ... in that all my webpages are showing as friendly urls ie.
https://www.tidytoys.co.uk/anna-club-plush/dachshund-soft-toy-brown-anna-club-plush
I see now, being used to CEON URI Mapping and not knowing about Simple SEO, I was looking at the hyperlinks - which are not rewritten, the rewrite only seems to take place once the link is visited.
New Zenner
Hi Guys
So it's been 8 weeks now and google is still not listing my pages.
I have now built a test site and starting from scratch.
I have installed :
CK Editor
Easy Populate
Pure CSS Mega
RFQ
SitemapXML
On the original site I installed all of the above as well as Ultimate URL's which I could not get to work.
I will stay clear of this plugin as after much research have come to the conclusion it is not necessary.
Either a DB issue or a conflict with SitemapXML
I also added a SSL certificate.
Zen is 1.5.6c
So everything is working well in the test site and I have created the sitemap.
An interesting thing that I noticed is that the sitemapXML generated in my original site is slightly different to my TESTSHOP site
The difference is the "www."
Now I am unsure exactly what settings need to be changed in the sitemap XML configuration so I have left them unchanged
So I followed the instructions and this is my robot.txt file
Sitemap: https://www.gotitall.co.za/sitemap.xml
User-Agent: *
Allow: /
Note it is https and has the www.
I would like to add my SHOPTEST site and would like to know if I can add it to the same robot.txt file found in my root ?
So like this :
Sitemap: https://www.gotitall.co.za/sitemap.xml
Sitemap: http://gotitall.co.za/SHOPTEST/zen-cart-v1.5.6c-07162019/sitemap.xml
User-Agent: *
Allow: /
Also I would like to know why one has http vs https and why the one has www. and the other doesn't.
Could this be why Google has not been listing my products ?
site:https://www.gotitall.co.za
site:gotitall.co.za
Any help would be greatly appreciated.
Totally Zenned
Have you added the site to Google Search Console?
Totally Zenned
Also it would be beneficial if you put a link to the top level sitemap file in your footer with the following piece of code. When google reads your site it will find the link and read your sitemap files. From there it should index the files.
<a href="https://www.gotitall.co.za/sitemap.xml" title="Go IT All Sitemap">Sitemap</a>
Totally Zenned
Just PM'd you as well
Totally Zenned
Since the original author is sadly deceased and his master Github in disuse, would one of the Github forkees consider designating their fork as the new master, for clarity and ease of submissions?
Totally Zenned
FYI Cron job memory exhausted
When running this from the Admin, it produced three categories files. No problem.
When running this via a cron job, it produced two categories files but died partway through creating the third with out of memory error.
The solution was a php.ini file in the cgi-bin folder and making sure the cron used it
/usr/local/bin/ea-php73 -c /home/SHOP_PATH/cgi-bin/php.ini -q /home/SHOP_PATH/cgi-bin/sitemapxml.php
rebuild=yes
zennedOut
torvista:
FYI Cron job memory exhausted
When running this from the Admin, it produced three categories files. No problem.
When running this via a cron job, it produced two categories files but died partway through creating the third with out of memory error.
The solution was a php.ini file in the cgi-bin folder and making sure the cron used it
/usr/local/bin/ea-php73 -c /home/SHOP_PATH/cgi-bin/php.ini -q /home/SHOP_PATH/cgi-bin/sitemapxml.php
rebuild=yes- technically, it does not run from the admin. you are calling a link from the admin that anyone can call
v156: # php -v
PHP 7.4.7 (cli) (built: Jun 12 2020 07:47:45) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.7, Copyright (c), by Zend Technologies
v156: # which php
/usr/bin/php
v156: #
best.
Sensei
If your server is using PHP-FPM it's entirely common for the CLI (command line) to use a different configuration than the web FPM process. If your CLI isn't configured for enough memory, work with the server admin to increase it in the CLI config.
Totally Zenned
Thanks for the comments.
In the end I put
ini_set('memory_limit','512M');
in the sitemapxml.php file called by the cron, to keep it self contained.
I just thought I'd post this to save others wondering why the two approaches (admin/cron) may have different results. It took me too long to work it out.
I don't need to call the 7.3 binary explicitly. I just left it in there as I was using 7.1 for this until I started investigating it recently and wanted to keep the command intact for reference.
Zen Follower
I'm using the plugin for Zen Cart 1.5.7 on PHP 7.3 and got this fatal error when trying to update the sitemap settings in admin:
--> PHP Fatal error: Uncaught Error: Call to undefined function zen_admin_demo() in /home/USER/public_html/ADMIN/sitemapxml.php:35
For now I've commented it out. I can't find any reference to zen_admin_demo(), is this a function that was removed from ZC? Does commenting out the switch statement suffice or will it have any unintended consequences?
Many thanks, Edith
Fields marked required must be completed.
Tell staff why this post should be reviewed.