Zen Cart Logo

SitemapXML v.2

Views: 613,208

Results 1,961 to 1,980 of 2,226
8 Jun 2020, 11:36 PM
#1961
hasher avatar

hasher

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 !

9 Jul 2020, 11:32 AM
#1962
toyseller avatar

toyseller

Zen Follower

Join Date:
Jun 2008
Location:
UK
Posts:
209
Plugin Contributions:
0

Re: SitemapXML v.2

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.

9 Jul 2020, 12:36 PM
#1963
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: SitemapXML v.2

Are you using CEON SEO URL's?

toyseller:

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.

9 Jul 2020, 12:37 PM
#1964
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: SitemapXML v.2

toyseller:

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.

Oh just seen Simple SEO URL's

The CEON module is better and works with sitemap.xml

9 Jul 2020, 1:03 PM
#1965
toyseller avatar

toyseller

Zen Follower

Join Date:
Jun 2008
Location:
UK
Posts:
209
Plugin Contributions:
0

Re: SitemapXML v.2

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.

9 Jul 2020, 1:29 PM
#1966
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: SitemapXML v.2

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.

9 Jul 2020, 1:50 PM
#1967
toyseller avatar

toyseller

Zen Follower

Join Date:
Jun 2008
Location:
UK
Posts:
209
Plugin Contributions:
0

Re: SitemapXML v.2

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.

9 Jul 2020, 2:55 PM
#1968
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: SitemapXML v.2

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.

10 Jul 2020, 8:52 AM
#1970
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: SitemapXML v.2

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.

13 Aug 2020, 12:32 PM
#1971
gamechanger69 avatar

gamechanger69

New Zenner

Join Date:
Mar 2020
Location:
Cape Town
Posts:
42
Plugin Contributions:
0

Re: SitemapXML v.2

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."

Attachment 19136
Attachment 19137

Now I am unsure exactly what settings need to be changed in the sitemap XML configuration so I have left them unchanged

Attachment 19138

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.

14 Aug 2020, 4:50 PM
#1972
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: SitemapXML v.2

Have you added the site to Google Search Console?

14 Aug 2020, 4:55 PM
#1973
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: SitemapXML v.2

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>
14 Aug 2020, 5:01 PM
#1974
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: SitemapXML v.2

Just PM'd you as well

28 Aug 2020, 3:07 PM
#1975
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: SitemapXML v.2

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?

29 Aug 2020, 8:15 AM
#1976
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: SitemapXML v.2

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

29 Aug 2020, 2:59 PM
#1977
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,953
Plugin Contributions:
8

Re: SitemapXML v.2

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

  • if that link works, i would suggest using wget to call the same link through a cronjob
  • having a custom php.ini for use with this one script seems, i don't know.... like a maintenance nightware down the road.
  • explicitly needing to call where your php7.3 binary is, seems like a sysadmin nightmare as well. and no guarantee that other servers will have the php bin in the same place. for example:
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.

29 Aug 2020, 6:30 PM
#1978
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: SitemapXML v.2

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.

29 Aug 2020, 9:46 PM
#1979
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: SitemapXML v.2

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.

14 Sep 2020, 2:55 PM
#1980
terragirl avatar

terragirl

Zen Follower

Join Date:
Jun 2010
Location:
Austria
Posts:
123
Plugin Contributions:
0

Re: SitemapXML v.2

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