Zen Cart Logo

SitemapXML v.2

Views: 613,213

Results 2,001 to 2,020 of 2,226
5 Oct 2020, 9:36 AM
#2001
vasilt avatar

vasilt

New Zenner

Join Date:
Jan 2006
Posts:
44
Plugin Contributions:
0

SitemapXML v.2

Just remove the quotes of TABLE_EZPAGES_TEXT on line 25 of \includes\modules\pages\sitemapxml\sitemapxml_ezpages.php - ```
if ($sitemapXML->dbTableExist('TABLE_EZPAGES_TEXT')) {


change to

if ($sitemapXML->dbTableExist(TABLE_EZPAGES_TEXT)) {

5 Oct 2020, 6:05 PM
#2002
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: SitemapXML v.2

vasilt:

Just remove the quotes of TABLE_EZPAGES_TEXT on line 25 of \includes\modules\pages\sitemapxml\sitemapxml_ezpages.php - ```
if ($sitemapXML->dbTableExist('TABLE_EZPAGES_TEXT')) {

> 
> change to
>  ```
if ($sitemapXML->dbTableExist(TABLE_EZPAGES_TEXT)) {

It's a bit more complicated.. TABLE_EZPAGES_TEXT is not defined anywhere and still would fail. If you are using PHP lower then 7.3, you would not get a warning for the undefined.. replacing it with 'TABLE_EZPAGES_CONTENT' would get you closer to the fix, but there are also errors in the sql. I pushed the updated template for v4 up to Github but don't have a multilingual site to test it on. It does create the expected links. What version of ZC and PHP was the error on?

5 Oct 2020, 7:22 PM
#2003
vasilt avatar

vasilt

New Zenner

Join Date:
Jan 2006
Posts:
44
Plugin Contributions:
0

Re: SitemapXML v.2

I use ZC 1.5.7 and PHP 7.4. And I found the definition of TABLE_EZPAGES_TEXT in \includes\extra_datafiles\ezpages_multilanguage_database_names.php which is the same as TABLE_EZPAGES_CONTENT. Removing the quotes actually did solve the problem because now the ezpages xml file includes links for all languages and throws no errors in the log files. The code is probably outdated but still this quick-fix will get us going until a new version comes out. Can you provide link to the new version in Github?

5 Oct 2020, 8:14 PM
#2004
drbyte avatar

drbyte

Sensei

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

Re: SitemapXML v.2

vasilt:

I use ZC 1.5.7 ... I found the definition of TABLE_EZPAGES_TEXT in \includes\extra_datafiles\ezpages_multilanguage_database_names.php
That file should have been deleted when you upgraded to Zen Cart v1.5.6 where multi-lingual ez-pages was built-in, thus making that old plugin pointless and actually incompatible. You should go delete all the other leftovers of that plugin that aren't part of original Zen Cart code.

4 Dec 2020, 11:09 PM
#2006
flappingfish avatar

flappingfish

Zen Follower

Join Date:
Nov 2020
Posts:
312
Plugin Contributions:
2

Re: SitemapXML v.2

I just installed the github release and im getting the following error on 1.57b can anyone help me work out whats wrong please???

[04-Dec-2020 23:04:19 UTC] PHP Parse error: syntax error, unexpected end of file in /includes/templates/template_default/sitemapxml/html_header.php on line 40

[04-Dec-2020 23:04:19 UTC] Request URI: /index.php?main_page=sitemapxml&rebuild=yes, IP address: 92.236.55.221
--> PHP Parse error: syntax error, unexpected end of file in /includes/templates/template_default/sitemapxml/html_header.php on line 40.

a few google searches give me various answers but im having no joy here adding symbols ect.

heres the offending code file thats throwing the error

<?php
/**
 * Common Template
 *
 * outputs the html header. i,e, everything that comes before the \</head\> tag <br />
 *
 * @copyright Copyright 2003-2020 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: Zen4All 2020 May 12 Modified in v1.5.7 $
 */
/* Mobile_Detect.php old school, responsive design doesn't need scripting */

// Prevent clickjacking risks by setting X-Frame-Options:SAMEORIGIN
header('X-Frame-Options:SAMEORIGIN');

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS; ?>>
<head>
<title><?php echo HEADING_TITLE; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" />
<?php if (defined('FAVICON')) { ?>
<link rel="icon" href="<?php echo FAVICON; ?>" type="image/x-icon" />
<link rel="shortcut icon" href="<?php echo FAVICON; ?>" type="image/x-icon" />
<?php } //endif FAVICON ?>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER . DIR_WS_HTTPS_CATALOG : HTTP_SERVER . DIR_WS_CATALOG ); ?>" />
<style>
body {
  font-family: Verdana, Geneva, sans-serif;
  font-size: small;
  }
</style>
</head>
<?php
// BOF hreflang for multilingual sites
if (!isset($lng) || (isset($lng) && !is_object($lng))) {
  $lng = new language;
//> </form> </body> </html> }
4 Dec 2020, 11:37 PM
#2007
carlwhat avatar

carlwhat

zennedOut

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

Re: SitemapXML v.2

its complaining about a missing curly bracket. at the end of your code:

// BOF hreflang for multilingual sites
if (!isset($lng) || (isset($lng) && !is_object($lng))) {
	$lng = new language;
}
//> </form> </body> </html> }

no guarantees that it does what it is supposed to do though...

best.

4 Dec 2020, 11:44 PM
#2008
flappingfish avatar

flappingfish

Zen Follower

Join Date:
Nov 2020
Posts:
312
Plugin Contributions:
2

Re: SitemapXML v.2

it took me a long time to spot the difference there lol thanks bud ill enter it now and report my findings back even if its a success :)

4 Dec 2020, 11:47 PM
#2009
flappingfish avatar

flappingfish

Zen Follower

Join Date:
Nov 2020
Posts:
312
Plugin Contributions:
2

Re: SitemapXML v.2

I no longer get a http 500 error and have sitemap.xml's that aren't blank. thankyou :)

i had just got errors resolved from bad setup with help of a hired hand, passes it back to me i installed google merchant feeder no problem then this and by time i asked for help had 11 log files lol. :blush:

6 Jan 2021, 4:00 AM
#2010
zswll2 avatar

zswll2

New Zenner

Join Date:
Dec 2020
Location:
china
Posts:
21
Plugin Contributions:
0

Re: SitemapXML v.2

Why can't I find "Sitemap XML" in Admin-> Configuration->?

zenzart:1.5.7
Modified admin and template folder name

6 Jan 2021, 10:48 AM
#2011
zswll2 avatar

zswll2

New Zenner

Join Date:
Dec 2020
Location:
china
Posts:
21
Plugin Contributions:
0

Re: SitemapXML v.2

zswll2:

Why can't I find "Sitemap XML" in Admin-> Configuration->?

zenzart:1.5.7
Modified admin and template folder name

I reinstalled to solve this problem, but why did I get a 500 error when I clicked "save"?

6 Jan 2021, 10:55 AM
#2012
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: SitemapXML v.2

zswll2:

I reinstalled to solve this problem, but why did I get a 500 error when I clicked "save"?
Two things to help others help resolve the problems experienced, 1) identify other plugins that are installed and 2) identify issues logged in the logs folder at/around the time of experiencing the issue. Remember when posting that your admin directory will appear in myDEBUG-adm files...

8 Jan 2021, 4:49 AM
#2013
qly840118 avatar

qly840118

New Zenner

Join Date:
Oct 2017
Posts:
1
Plugin Contributions:
0

Re: SitemapXML v.2

It works good for 1.5.7b. thank you

29 Jan 2021, 5:22 PM
#2014
nick1973 avatar

nick1973

Totally Zenned

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

Re: SitemapXML v.2

I have installed this on 1.5.7b but when I try to create the sitemap.xml files from the admin the pop up window remains blank. I hav chmod the sitemap folder to 777 and the sitemap.xml file to 777

29 Jan 2021, 5:26 PM
#2015
nick1973 avatar

nick1973

Totally Zenned

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

Re: SitemapXML v.2

Nick1973:

I have installed this on 1.5.7b but when I try to create the sitemap.xml files from the admin the pop up window remains blank. I hav chmod the sitemap folder to 777 and the sitemap.xml file to 777

Looked in the logs and found this PHP Parse error: syntax error, unexpected end of file in /home/DOMAINNAME/public_html/includes/templates/template_default/sitemapxml/html_header.php on line 40.

29 Jan 2021, 5:41 PM
#2016
carlwhat avatar

carlwhat

zennedOut

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

Re: SitemapXML v.2

Nick1973:

Looked in the logs and found this PHP Parse error: syntax error, unexpected end of file in /home/DOMAINNAME/public_html/includes/templates/template_default/sitemapxml/html_header.php on line 40.

line 40 is not the EOF in the github repo...

https://github.com/davesaddle/SitemapXML/blob/0e367492d7c5d48e2a016b343391a6e870122627/ZC157/includes/templates/template_default/sitemapxml/html_header.php#L40

are you sure you have the correct file? and latest version?

29 Jan 2021, 8:37 PM
#2017
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: SitemapXML v.2

Nick1973:

Looked in the logs and found this PHP Parse error: syntax error, unexpected end of file in /home/DOMAINNAME/public_html/includes/templates/template_default/sitemapxml/html_header.php on line 40.

Version 4 had a messed up zip.. zip's are not the normal compression for Linux and some how the files got messed up.. Sent in a new zip which was approved... This post was for version 2, version 4 is here.. GitHub is good for ZC1.5.7x and php7.x only which is why it's not a continuation here...

29 Jan 2021, 8:49 PM
#2018
nick1973 avatar

nick1973

Totally Zenned

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

Re: SitemapXML v.2

davewest:

Version 4 had a messed up zip.. zip's are not the normal compression for Linux and some how the files got messed up.. Sent in a new zip which was approved... This post was for version 2, version 4 is here.. GitHub is good for ZC1.5.7x and php7.x only which is why it's not a continuation here...

It's ok I have applied the fix that you gave me and that seemed to work fine. I will look out for the new one in the future in Modules.

26 Mar 2021, 3:51 AM
#2019
lloyd_borrett avatar

lloyd_borrett

Zen Follower

Join Date:
Mar 2006
Location:
Rosebud, Victoria, Australia
Posts:
308
Plugin Contributions:
2

Re: SitemapXML v.2

G'day,

Google Search is giving me a warning "Indexed, not submitted in sitemap" for 800+ additional images like https://www.scubadoctor.com.au/diveshop/index.php?main_page=popup_image_additional&pID=4025&products_image_large_additional=images%2Fcressi-sub%2Fcressi-drake-freediving-spearfishing-computer_02.jpg

Since Google seems to want to insist on indexing these images, has consideration been given to including them in the sitemap output?

Best regards, Lloyd Borrett.

26 Mar 2021, 11:58 AM
#2020
lat9 avatar

lat9

Administrator

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

Re: SitemapXML v.2

lloyd_borrett:

G'day,

Google Search is giving me a warning "Indexed, not submitted in sitemap" for 800+ additional images like https://www.scubadoctor.com.au/diveshop/index.php?main_page=popup_image_additional&pID=4025&products_image_large_additional=images%2Fcressi-sub%2Fcressi-drake-freediving-spearfishing-computer_02.jpg

Since Google seems to want to insist on indexing these images, has consideration been given to including them in the sitemap output?

Best regards, Lloyd Borrett.
Lloyd, are you sure that Google's not complaining about the fact that the popup_image_additional page itself?

That page is normally present in the ROBOTS_PAGES_TO_SKIP constant, present in /includes/languages/english/meta_tags.php (or a template- or extra-language-file override)?