# SeoSuite and Sitemap on MODX 3

**URL:** <https://community.modx.com/t/seosuite-and-sitemap-on-modx-3/7278>\
**Category:** Extras\
**Tags:** seo-suite\
**Created:** [November 30, 2023, 8:11am UTC](https://community.modx.com/t/seosuite-and-sitemap-on-modx-3/7278 "2023-11-30T08:11:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![excavator](https://community.modx.com/user_avatar/community.modx.com/excavator/32/3349_2.png) [@excavator](https://community.modx.com/u/excavator)\
**Post date:** [November 30, 2023, 8:11am UTC](https://community.modx.com/t/seosuite-and-sitemap-on-modx-3/7278/1 "2023-11-30T08:11:38Z")

</div>

Has anyone deployed SeoSuite on MODX3 successfully?  
Sitemap is throwing:

`[2023-11-30 09:06:53] (ERROR @ /var/www/sites/xxx.tld/dev/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 667) Could not load class: SeoSuiteResource from mysql.seosuiteresource`

Are there any alternatives used to this extra, or am I missing something?

---

<div class="post-metadata">

**Author:** ![halftrainedharry](https://community.modx.com/user_avatar/community.modx.com/halftrainedharry/32/1063_2.png) [@halftrainedharry](https://community.modx.com/u/halftrainedharry)\
**Post date:** [November 30, 2023, 8:44am UTC](https://community.modx.com/t/seosuite-and-sitemap-on-modx-3/7278/2 "2023-11-30T08:44:30Z")

</div>

What version of SeoSuite have you installed?  
Could it be, that it is an old version for MODX 2.x?  
Does the file `core/components/seosuite/bootstrap.php` exist?

---

<div class="post-metadata">

**Author:** ![excavator](https://community.modx.com/user_avatar/community.modx.com/excavator/32/3349_2.png) [@excavator](https://community.modx.com/u/excavator)\
**Post date:** [November 30, 2023, 8:45am UTC](https://community.modx.com/t/seosuite-and-sitemap-on-modx-3/7278/3 "2023-11-30T08:45:42Z")

</div>

SeoSuite 3.1.4-pl installed (latest from Extras). `bootstrap.php` exists.

---

<div class="post-metadata">

**Author:** ![halftrainedharry](https://community.modx.com/user_avatar/community.modx.com/halftrainedharry/32/1063_2.png) [@halftrainedharry](https://community.modx.com/u/halftrainedharry)\
**Post date:** [November 30, 2023, 8:56am UTC](https://community.modx.com/t/seosuite-and-sitemap-on-modx-3/7278/4 "2023-11-30T08:56:50Z")

</div>

Try changing this line in the code

> <https://github.com/Sterc/seosuite/blob/9299ee1dc8c1c4d3c92449aa44267a6a619eb170/core/components/seosuite/src/Snippets/Sitemap.php#L346>

to this instead:

```auto
array_keys($this->modx->getFields(SeoSuiteResource::class))

```

---

<div class="post-metadata">

**Author:** ![excavator](https://community.modx.com/user_avatar/community.modx.com/excavator/32/3349_2.png) [@excavator](https://community.modx.com/u/excavator)\
**Post date:** [November 30, 2023, 9:11am UTC](https://community.modx.com/t/seosuite-and-sitemap-on-modx-3/7278/5 "2023-11-30T09:11:55Z")

</div>

> [@halftrainedharry](#):
>
> ```auto
> array_keys($this->modx->getFields(SeoSuiteResource::class))
> 
> ```

That fixed it, thanks! Although I think my main issue was that I imported reosurces and installed seosuite afterwards. Need to figure out how to process all of them, so they will show up (don’t really want to save all of them manuall).

---

<div class="post-metadata">

**Author:** ![system](https://community.modx.com/user_avatar/community.modx.com/system/32/2_2.png) [@system](https://community.modx.com/u/system)\
**Post date:** [December 2, 2023, 9:12am UTC](https://community.modx.com/t/seosuite-and-sitemap-on-modx-3/7278/6 "2023-12-02T09:12:34Z")

</div>

Closed on December 2, 2023, 9:12am UTC

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.
