Sitemap Error!
-
Sitemap.xml works fine but when I dig into the categories/topics/pages xml I get the following error,
Internal error.
Oops! Looks like something went wrong!
/sitemap/categories.xml
priority is invalid
-
Please post your git revision/nodebb version and your server logs from
logs/output.log
-
I run NodeBB 1.0.2.
Logs from the Admin panel if any use!11/4 16:50 [21159] - [31merror[39m: /sitemap/topics.1.xml
undefined
11/4 16:51 [21159] - [31merror[39m: /sitemap/pages.xml
undefined
11/4 16:51 [21159] - [31merror[39m: /sitemap/pages.xml
undefined
11/4 16:51 [21159] - [31merror[39m: /sitemap/categories.xml
undefined
-
What is the output of
npm ls sitemap
?
-
-
This post is deleted!
-
@julian any update??
-
You don't have the sitemap dependency installed. Install it.
-
I got exactly the same issue and I do have the sitemap dependency installed. Any ideas?
-
Now Installed but still the error exists, am I missing something here...
-
@julian pls respond.
-
I resolved the error by myself,
remove the quote given for priority value./root/nodebb/src/sitemap.js was
'{ url: '/page-1/', changefreq: 'daily', priority: ''0.3'' },
now
{ url: '/page-1/', changefreq: 'daily', priority: 0.3 },
remove the quotes from all occurrence.
Restart Nodebb.
-
Thanks. This has been fixed in the latest NodeBB core