[Zen Cart] Can't execute Magic SEO URLs sitemaps

Magic SEO URLs for Zen Cart.
peter@pechesud.com
Posts: 8
Joined: Mon Jan 07, 2019 10:01 pm

[Zen Cart] Can't execute Magic SEO URLs sitemaps

Postby peter@pechesud.com » Fri Jan 05, 2024 1:17 pm

I installed Magic SEO URLs Sitemaps Add-On for ZenCart MSU4.x/MSU5.x 2.0
on my server, when I try to generate sitemaps using:

https://www.pechesudv155.owally.com/sitemaps.php

I received :

This page isn’t working http://www.pechesudv155.owally.com is currently unable to handle this request.
HTTP ERROR 500


The sitemaps.php and sitemap directory has been copied.

In running ZenCart 1.57d with PHP 7.3 and SEO Magic URL

Does any places I can check the error ?

peter@pechesud.com
Posts: 8
Joined: Mon Jan 07, 2019 10:01 pm

Re: Can't execute Magic SEO URLs sitemaps

Postby peter@pechesud.com » Fri Jan 05, 2024 1:28 pm

I use Magic SEO URLs for Zen Cart v1.3.x/1.5.x 6.2

peter@pechesud.com
Posts: 8
Joined: Mon Jan 07, 2019 10:01 pm

Re: Can't execute Magic SEO URLs sitemaps

Postby peter@pechesud.com » Sat Jan 06, 2024 11:45 am

I finally use the version : Inveo_Magic_SEO_URLs_Sitemaps_Add-On_for_ZenCart_MSU4.x_MSU5.x

And I add this definition inside sitemaps.php file to correct the issue.

define('DIR_WS_INCLUDES','includes/');


After executing (http://www.mydomain.com/sitemaps.php)

Do I have to create sitemap.xml with the result ? or everything done per magic.

peter@pechesud.com
Posts: 8
Joined: Mon Jan 07, 2019 10:01 pm

Re: Can't execute Magic SEO URLs sitemaps

Postby peter@pechesud.com » Sat Jan 06, 2024 1:31 pm

Also, is it normal than sitemaps generator create dynamic URLs like this:

https://www.pechesudv155.owally.com/index.php?main_page=product_info&products_id=1145&language=en

When on the website, we see the static URLs:

https://www.pechesudv155.owally.com/en/queens-candy-slow-jigging-lure-340-grams-white-glow-1145

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [Zen Cart] Can't execute Magic SEO URLs sitemaps

Postby inveo » Mon Jan 08, 2024 12:50 pm

The easiest way to get Sitemaps working is to use SitemapXML v3.3.3 add-on (this specific version): https://www.zen-cart.com/downloads.php? ... hash=guest (other versions might not work)

peter@pechesud.com
Posts: 8
Joined: Mon Jan 07, 2019 10:01 pm

Re: [Zen Cart] Can't execute Magic SEO URLs sitemaps

Postby peter@pechesud.com » Tue Jan 09, 2024 10:51 am

I install the SitemapXML v 3.3.3 02.29.2016 as you said, had some issue with some missing definition. But, it generated the XML file with the correct URLS. However, i find a big error log file with this content:

[09-Jan-2024 12:40:17 America/New_York] Request URI: /index.php?main_page=sitemapxml&rebuild=yes&ping=&, IP address: 70.31.216.243
#1 ÿ¬ŒÀ…ˆ…µ¨’‘£…±´ž«¤…ƒ¡::makeAbsoluteUrl() called at [/home/owallyco/public_html/pechesud157d/includes/msu/pkgs/magic_seo_urls-ioncube-73.php:0]
#2 MsuHelperZc::transformUrl() called at [/home/owallyco/public_html/pechesud157d/includes/msu/pkgs/magic_seo_urls-ioncube-73.php:0]
#3 msuTransformUrlZc() called at [/home/owallyco/public_html/pechesud157d/includes/classes/sitemapxml.php:252]
#4 zen_SiteMapXML->SitemapWriteItem() called at [/home/owallyco/public_html/pechesud157d/includes/classes/sitemapxml.php:232]
#5 zen_SiteMapXML->writeItem() called at [/home/owallyco/public_html/pechesud157d/includes/modules/pages/sitemapxml/sitemapxml_mainpage.php:21]
#6 include(/home/owallyco/public_html/pechesud157d/includes/modules/pages/sitemapxml/sitemapxml_mainpage.php) called at [/home/owallyco/public_html/pechesud157d/includes/templates/template_default/sitemapxml/tpl_main_page.php:21]
#7 require(/home/owallyco/public_html/pechesud157d/includes/templates/template_default/sitemapxml/tpl_main_page.php) called at [/home/owallyco/public_html/pechesud157d/index.php:94]
--> PHP Deprecated: [obfuscated](): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /home/owallyco/public_html/pechesud157d/includes/msu/pkgs/magic_seo_urls-ioncube-73.php on line 0.

peter@pechesud.com
Posts: 8
Joined: Mon Jan 07, 2019 10:01 pm

Re: [Zen Cart] Can't execute Magic SEO URLs sitemaps

Postby peter@pechesud.com » Tue Jan 09, 2024 3:27 pm

The function msuTransformUrlZc is call from \includes\classes\sitemapsxml.php (Version 3.3.3)
My version of SEO is Magic SEO URLs for Zen Cart v1.3.x/1.5.x 6.2
}

if (!$this->genxml) return false;
if ($this->magicSeo) {
if(!function_exists('msuTransformUrlZc')) {
$href = '<html><body><a href="' . $loc . '">loc</a></body></html>';
$out = unMagicSeoDoSeo($href);
if (preg_match('@<a[^>]+href=(["\'])(.*)\1@isU', $out, $m)) {
$loc = $m[2];
}
} else {
$loc = msuTransformUrlZc($loc);
}
}

$loc = $this->_url_encode($loc);

peter@pechesud.com
Posts: 8
Joined: Mon Jan 07, 2019 10:01 pm

Re: [Zen Cart] Can't execute Magic SEO URLs sitemaps

Postby peter@pechesud.com » Mon Jan 15, 2024 8:55 am

Do you have update version of [magic_seo_urls-ioncube-73.php:0] to correct this issue?

PHP Deprecated: [obfuscated](): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /home/owallyco/public_html/pechesud157d/includes/msu/pkgs/magic_seo_urls-ioncube-73.php on line 0.

peter@pechesud.com
Posts: 8
Joined: Mon Jan 07, 2019 10:01 pm

Re: [Zen Cart] Can't execute Magic SEO URLs sitemaps

Postby peter@pechesud.com » Fri Mar 01, 2024 6:20 am

Hello, is-it possible to have an answer to my question ? thanks