Zen Cart Logo

SitemapXML v.2

Views: 613,139

Results 1,601 to 1,620 of 2,226
23 Mar 2016, 01:37
#1601
drbyte avatar

drbyte

Sensei

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

SitemapXML v.2

PHP Warning: filesize(): stat failed for (filename)

When PHP says "stat failed", it means it was asking the server's filesystem for some information about a particular file, but the filesystem denied the request.
In this case, it's telling you that it was asking for the size of those various .xml files.

So, either the files are missing, or they exist but they're "owned" by a user/process that PHP is not authorized to mess with, or their permissions are set too low to allow PHP to read them.

Regarding those sitemap*.xml files: things to try: (try first one, then test generating the files again, see if the errors are gone and the files get updated, then try the next one, test again, etc)
a) set their permission-level to 755 ... or whatever permission your hosting company says is "writable by PHP"
b) delete them and let the SitemapXML plugin try to recreate them (permissions will need to be set properly for whatever directory they're getting stored in. See the SitemapXML installation instructions for guidance on that)
c) ask your hosting company to change their ownership to allow PHP to access them

24 Mar 2016, 03:16
#1602
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: SitemapXML v.2

a_berezin:

Hi Debbie,

Thanks for the bug report!
The fixed version will be available soon in the downloads.

I'd like to also point out these missing defines from Admin>Configuration>Sitemap XML

TEXT_CONFIGURATION_TITLE_SITEMAPXML_PLUGINS
TEXT_CONFIGURATION_DESCRIPTION_SITEMAPXML_PLUGINS

Do you keep this on GitHub by any chance?

31 Mar 2016, 11:49
#1603
enzo_ita avatar

enzo_ita

Zen Follower

Join Date:
Jul 2009
Posts:
402
Plugin Contributions:
0

Re: SitemapXML v.2

First of all let me thank for keeping this plugin updated.
I noticed that there are not instructions about upgrading from 4.5.0 to 4.5.1
Is it enough to overwrite the old files or there is any specific instruction to follow?
May be it is only need to overwrite the files contained in the mdified core files 1.5.5 folder?
Thanks for answering.
ciao from Italy.
enzo

17 Apr 2016, 07:37
#1604
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: SitemapXML v.2

jeking:

Do you keep this on GitHub by any chance?
Yes, of course, as soon as I will have free time for this

25 Apr 2016, 20:33
#1605
rjsandlin avatar

rjsandlin

New Zenner

Join Date:
Aug 2009
Posts:
5
Plugin Contributions:
0

Re: SitemapXML v.2

A website with zencart I just build last year requested a display only/category only (except for featured products) zencart installation. There are basically no products only showcasing categories with subcategories of lines of products. This is only a display cart with no transactions allowed.

The xml sitemap generator module does not list categories if there are no products. This is a major problem for this site. Is there anyway to remove the restriction that prevents the categories from showing up if there are no products?

Thanks in advance.

RJ Sandlin

26 Apr 2016, 07:30
#1606
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: SitemapXML v.2

Hi,

rjsandlin:

A website with zencart I just build last year requested a display only/category only (except for featured products) zencart installation. There are basically no products only showcasing categories with subcategories of lines of products. This is only a display cart with no transactions allowed.

The xml sitemap generator module does not list categories if there are no products. This is a major problem for this site. Is there anyway to remove the restriction that prevents the categories from showing up if there are no products?

Thanks in advance.

RJ Sandlin
Thank you for this post. That's my bag. :(
Quick bug fix.
File includes/modules/pages/sitemapxml/sitemapxml_categories.php
Find line ~65:

if ($products->fields['total'] > 1) {

replace by

if ($products->fields['total'] == 0 || $products->fields['total'] > 1) {

Write about results.

26 Apr 2016, 18:50
#1607
rjsandlin avatar

rjsandlin

New Zenner

Join Date:
Aug 2009
Posts:
5
Plugin Contributions:
0

Re: SitemapXML v.2

a_berezin:

Hi,

Thank you for this post. That's my bag. :(
Quick bug fix.
File includes/modules/pages/sitemapxml/sitemapxml_categories.php
Find line ~65:

if ($products->fields['total'] > 1) {

> replace by
> ```php
if ($products->fields['total'] == 0 || $products->fields['total'] > 1) {

Write about results.

=======================
THANKS! Worked like a charm!

RJ

26 Apr 2016, 19:09
#1608
rjsandlin avatar

rjsandlin

New Zenner

Join Date:
Aug 2009
Posts:
5
Plugin Contributions:
0

Re: SitemapXML v.2

rjsandlin:

=======================
THANKS! Worked like a charm!

RJ

uh oh spoke too soon. Just found that the categories stop at only one sub-sub-category and skips the rest. Example:
..../catalog/index.php?main_page=index&cPath=59_61
..../catalog/index.php?main_page=index&cPath=59_61_371 (it quits reading the rest of the sub-sub-categories after the first one)
there is a 59_61_83, 59_61_84 and one more with a 59_61_371_375 which is a sub-sub-sub-category.
but it is grabbing all the categories and the sub-categories, just not all the sub-subs and sub-sub-subs.

27 Apr 2016, 12:28
#1609
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: SitemapXML v.2

rjsandlin:

uh oh spoke too soon. Just found that the categories stop at only one sub-sub-category and skips the rest. Example:
..../catalog/index.php?main_page=index&cPath=59_61
..../catalog/index.php?main_page=index&cPath=59_61_371 (it quits reading the rest of the sub-sub-categories after the first one)
there is a 59_61_83, 59_61_84 and one more with a 59_61_371_375 which is a sub-sub-sub-category.
but it is grabbing all the categories and the sub-categories, just not all the sub-subs and sub-sub-subs.
Something is wrong. For me there is no difference between the sub-category or sub-sub-category. We consider all enabled categories regardless of nesting. In sitemap not included only categories with only one product and only if the option SKIP_SINGLE_PRODUCT_CATEGORIES is enabled.

Can you PM me access to ftp? Then I can see what is not working specifically in your store.

27 Apr 2016, 13:15
#1610
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: SitemapXML v.2

I figured I ask before I start ripping the code apart. :lookaroun

Google has suggest that a client set the GTIN to false due to the fact none of his products have a UPC. Any suggestions.

27 Apr 2016, 14:00
#1611
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

Join Date:
Feb 2008
Posts:
534
Plugin Contributions:
0

Re: SitemapXML v.2

In my robot.txt file I have:
Sitemap: http://www dot meafordwool dot com/sitemap dot xml

Should I/Can I add http://meafordwool dot com/sitemap. dot xml ?

I have both set up on google but for the non-www I get a 'pending' on the sitemap, while the www one shows as processed almost immediately.

Thanks.

27 Apr 2016, 14:21
#1612
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: SitemapXML v.2

soxophoneplayer:

In my robot.txt file I have:
Sitemap: http://www dot meafordwool dot com/sitemap dot xml

Should I/Can I add http://meafordwool dot com/sitemap. dot xml ?
Of course you can. But why? You can not sit on two chairs.
In Google Search Console goto Site Settings and set Preferred domain. If you install zen-cart to domain www dot meafordwool dot com, then set Preferred domain to www dot meafordwool dot com.

02 May 2016, 16:51
#1613
rjsandlin avatar

rjsandlin

New Zenner

Join Date:
Aug 2009
Posts:
5
Plugin Contributions:
0

Re: SitemapXML v.2

Hi Andrew, will get that PM info to you shortly. Let me know what you find out.
thanks.
RJ

18 May 2016, 14:39
#1615
silverhd avatar

silverhd

Totally Zenned

Join Date:
Mar 2008
Location:
USA
Posts:
563
Plugin Contributions:
0

Re: SitemapXML v.2

Hi Guys:

I just installed sitemapXML and went back to Admin -> Tools -> Sitemap XML to Install Sitemap XML SQL and it's not there. I am running v1.5.4. I went back several times to make sure all of the files were uploaded properly. Don't know what happened? https://www.mygiftsite.com

Any help is appreciated,

Silver

18 May 2016, 15:31
#1616
torvista avatar

torvista

Totally Zenned

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

Re: SitemapXML v.2

Admin -> Tools -> Sitemap XML to Install Sitemap XML SQL and it's not there

I am just doing a lot of tests and (minor) modifications to this code (as found on github):
I had to run the -install-sitemapxml.php file manually to install the tools item.

18 May 2016, 15:34
#1617
silverhd avatar

silverhd

Totally Zenned

Join Date:
Mar 2008
Location:
USA
Posts:
563
Plugin Contributions:
0

Re: SitemapXML v.2

Steve:

Could you tell me exactly "how" you did that?

Silver

18 May 2016, 16:24
#1618
torvista avatar

torvista

Totally Zenned

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

Re: SitemapXML v.2

Make sure it is copied into the YOUR_ADMIN/
Run it from the browser using the relevant address:
www.yoursite/YOUR_ADMIN/-install-sitemapxml.php

18 May 2016, 16:36
#1619
silverhd avatar

silverhd

Totally Zenned

Join Date:
Mar 2008
Location:
USA
Posts:
563
Plugin Contributions:
0

Re: SitemapXML v.2

Steve:

Let me ask you something else. Are both -install-sitemapxml.php and sitemapxml.php supposed to be installed at the root? In other words under/YOUR_ADM? If so, I think that may be my problem. Please let me know.

Thanks,

Silver

18 May 2016, 16:44
#1620
silverhd avatar

silverhd

Totally Zenned

Join Date:
Mar 2008
Location:
USA
Posts:
563
Plugin Contributions:
0

Re: SitemapXML v.2

Steve:

That's not it, both files are there.

Silver