• Priority: Medium
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 17.10.22, 20:36
  • Opened by: Vidmantas Dapkus
  • Closed by: Anonymous Submitter
  • Closed on:
  • Reason: Not a bug

Ticket #23846 - Google Sitemap creation error

When I try to create Gsitemap (native Prestashop module) I get this 500 server error. It’s something realted with Simple Blog.

[PrestaShopException]
Dispatcher::createUrl() miss required parameter “sb_category” for route “module-ph_simpleblog-single” at line 923 in file classes/Dispatcher.php

918. if (!$data[’required’]) {
919. continue;
920. }
921.
922. if (!array_key_exists($key, $params)) {
923. throw new PrestaShopException(’Dispatcher::createUrl() miss required parameter “’ . $key . ‘” for route “’ . $route_id . ‘“‘);
924. }
925. if (isset($this→default_routes[$route_id])) {
926. $query_params[$this→default_routes[$route_id][’keywords’][$key][’param’]] = $params[$key];
927. }
928. }
DispatcherCore→createUrl - [line 1176 - classes/Link.php]
LinkCore→getPageLink - [line 353 - modules/gsitemap/gsitemap.php]
Gsitemap→getMetaLink - [line 611 - modules/gsitemap/gsitemap.php]
Gsitemap→createSitemap - [line 185 - modules/gsitemap/gsitemap.php]
Gsitemap→getContent - [line 879 - controllers/admin/AdminModulesController.php]
AdminModulesControllerCore→postProcessCallback - [line 1135 - controllers/admin/AdminModulesController.php]
AdminModulesControllerCore→postProcess - [line 295 - classes/controller/Controller.php]
ControllerCore→run - [line 518 - classes/Dispatcher.php]
DispatcherCore→dispatch - [line 93 - admin/index.php]

Comments

Fred 17 Oct 2022, 21:23

Please try now

Vidmantas Dapkus 18 Oct 2022, 08:35

Worked. Thanks. Do I need to save some files in case of update of Prestashop?

Fred 18 Oct 2022, 17:11

This one was changed
/modules/ph_simpleblog/ph_simpleblog.php