Post by reint » Wed Aug 08, 2018 4:19 am

Google Sitemaps feed not accepted - in opencart

Hi after following the isenslabs video with the google sitemap i get following error:

Invalid URL
This is not a valid URL. Correct it and send again

Number of problems: 17

Ex:
Overall tag: image
Tag: loc
__________________________
also when looking into the sitemap, it is making all the product url in http, and all image in https.

In addition to this i get following error in the error log.
PHP Notice: Undefined index: user_token in /var/www/vhosts/DOMAIN/httpdocs/catalog/controller/extension/feed/google_sitemap.php on line 21. On line 25. On line 29. On line 31. On line 32.

PHP Warning: Use of undefined constant HTTP_CATALOG - assumed 'HTTP_CATALOG' (this will throw an Error in a future version of PHP) in /var/www/vhosts/Domain/httpdocs/catalog/controller/extension/feed/google_sitemap.php on line 38.

____________

Line 21: $output .= ' <image:loc>' . $this->model_tool_image->resize($product['image'], $this->config->get('theme_' . $this->config->get('config_theme') . '_image_popup_width'), $this->config->get('theme_' . $this->config->get('config_theme') . '_image_popup_height')) . '</image:loc>';

Line 25: $output .= '</url>';
Line 29: $this->load->model('catalog/category');
Line 31: $output .= $this->getCategories(0);
Line 32: Empty
Line 38: $output .= '<url>';


I hope someone can help.

Newbie

Posts

Joined
Wed Jul 11, 2018 5:19 pm

Post by straightlight » Wed Aug 08, 2018 9:30 pm

As a new forum user, please read the forum rules. No OC version posted. However, since line 38 contains a different output from the core compared to what you have posted, contact the extension developer to resolved this issue.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by reint » Wed Aug 08, 2018 10:39 pm

Hey

As i posted in version 3, i though that was enogh.
I am running 3.0.2.0

The google map was already in the OC installation.?

Newbie

Posts

Joined
Wed Jul 11, 2018 5:19 pm

Post by straightlight » Thu Aug 09, 2018 12:06 am


Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by reint » Thu Aug 09, 2018 6:04 am

The solution helps in the matter of error log, but google still don´t reconize the URL and postes the error in tag: loc and image - still

Newbie

Posts

Joined
Wed Jul 11, 2018 5:19 pm

Post by leeburgess » Sun Aug 12, 2018 12:51 am

Means you have a corrupt image on one or more of your products.

New member

Posts

Joined
Sat Sep 16, 2017 3:19 am

Post by straightlight » Sun Aug 12, 2018 2:16 am


Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Mon Aug 13, 2018 7:23 pm

As for the sitemap schema formatting solution: https://www.opencart.com/index.php?rout ... n_id=27420

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 52 guests