Hostwiki / wikijs-sitemap

Sitemap for Wiki.js
MIT License
11 stars 2 forks source link

Sitemap mysql undefined domain #7

Closed sspavlenko closed 1 year ago

sspavlenko commented 1 year ago

Hi! Thanks for implementing the sitemap for mysql. I have a problem below in the screenshot. image

Wikijs in a container according to the examples. Tried to proxy through nginx and haproxy. Could you suggest what is the problem. Why is the domain not visible (undefined)? Maybe I forgot to specify it somewhere?

Philipinho commented 1 year ago

Is the “Site URL” set in your Wikijs dashboard? That is what it uses.

sspavlenko commented 1 year ago

Yes. image But I planned to use several languages ua and ru. Now only ru and default url https://wiki.mydomain.pp.ua/ru/home but even with this language, the problem does not go away. image I also tried to change the domain in the control panel to https://wiki.mydomain.pp.ua/ru/home this also didn't work(((

sspavlenko commented 1 year ago

If I disabled multilanguages in control panel it doesn't help either.

Philipinho commented 1 year ago

I will have a look on the code.

Philipinho commented 1 year ago

I tried it on MYSQL 8 and couldn't reproduce the bug.
Can you let me know your MYSQL version? Are you running it on docker?

sspavlenko commented 1 year ago

Yes I am running in docker. I am using mariadb version 10.5.19

Philipinho commented 1 year ago

I will try it on MariaDB and give feedback.

Philipinho commented 1 year ago

I can reproduce the bug with Mariadb. I will work on a fix.

Philipinho commented 1 year ago

The new pull request fixes this issue. Change your DB_TYPE to DB_TYPE=mariadb.

sspavlenko commented 1 year ago

Thanks it's worked