Rigel Kentaurus
Well-known member
On the command lineHow can i run sitemap generator with CLI ?
Code:
$ php library/XfAddOns/Sitemap/Cli.php
On the command lineHow can i run sitemap generator with CLI ?
$ php library/XfAddOns/Sitemap/Cli.php
Yes i tried it but something is wrongOn the command line
Code:$ php library/XfAddOns/Sitemap/Cli.php
XenForo_Application::setDebugMode(false);
XenForo_Application::setDebugMode(true);
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://www.triumphtalk.com/</loc>
<lastmod>2014-03-15</lastmod>
</url>
<url>
<loc>http://www.triumphtalk.com/gallery/</loc>
<lastmod>2014-03-15</lastmod>
</url>
<url>
<loc>http://www.triumphtalk.com/events/</loc>
<lastmod>2014-03-15</lastmod>
</url>
<url>
<loc>http://www.triumphtalk.com/portal/</loc>
<lastmod>2014-03-15</lastmod>
</url>
<url>
<loc></loc>
<lastmod>2014-03-15</lastmod>
</url>
</urlset>
URLS sitemap does not exist anymore@Rigel Kentaurus I have removed all the Additional URLs but I still seem to get the same error. I also deleted all the files in my sitesmap folder and ran the cron again to regenerate them.
I actually completely remove this add on and installed it again as well
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>http://www.triumphtalk.com/sitemap/sitemap.forums.1.xml.gz</loc>
</sitemap>
<sitemap>
<loc>http://www.triumphtalk.com/sitemap/sitemap.threads.1.xml.gz</loc>
</sitemap>
<sitemap>
<loc>http://www.triumphtalk.com/sitemap/sitemap.forums.pags.1.xml.gz</loc>
</sitemap>
<sitemap>
<loc>http://www.triumphtalk.com/sitemap/sitemap.threads.pags.1.xml.gz</loc>
</sitemap>
</sitemapindex>
Bug Fix
- Fixed edge case, the "All pages in a thread" option was skipping consecutive threads with more than 10,000 pages in it.
Yeah, this is an already reported unfixed issue.I have this running on two XF forums. The one where XF is installed on the root directory this works great. The one where XF is installed in a sub-folder the addon does not work. Robots.txt shows the sitemap path at www.mydomain.com/sitemap/ instead of www.mydomain.com/community/sitemap so of course the robots.php file has the wrong path.
Exception: The path /root/sitemap is not writable. Maybe you need to chmod 777 - library/XfAddOns/Sitemap/CronEntry/RebuildSitemap.php:28
Generated By: Unknown Account, Today at 06:01
Stack Trace
#0 [internal function]: XfAddOns_Sitemap_CronEntry_RebuildSitemap::run(Array)
#1 /var/www/netrider/library/XenForo/Model/Cron.php(356): call_user_func(Array, Array)
#2 /var/www/netrider/library/XenForo/Deferred/Cron.php(24): XenForo_Model_Cron->runEntry(Array)
#3 /var/www/netrider/library/XenForo/Model/Deferred.php(256): XenForo_Deferred_Cron->execute(Array, Array, 7.9999978542328, '')
#4 /var/www/netrider/library/XenForo/Model/Deferred.php(390): XenForo_Model_Deferred->runDeferred(Array, 7.9999978542328, '', false)
#5 /var/www/netrider/library/XenForo/Model/Deferred.php(335): XenForo_Model_Deferred->_runInternal(Array, NULL, '', false)
#6 /var/www/netrider/deferred.php(23): XenForo_Model_Deferred->run(false)
#7 {main}
Request State
array(3) {
["url"] => string(7) "http://"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
Are you running through the command line, or through the cron system?XF 1.3. Error with v1.4.1 (current) ....
Code:Exception: The path /root/sitemap is not writable. Maybe you need to chmod 777 - library/XfAddOns/Sitemap/CronEntry/RebuildSitemap.php:28 Generated By: Unknown Account, Today at 06:01 Stack Trace #0 [internal function]: XfAddOns_Sitemap_CronEntry_RebuildSitemap::run(Array) #1 /var/www/netrider/library/XenForo/Model/Cron.php(356): call_user_func(Array, Array) #2 /var/www/netrider/library/XenForo/Deferred/Cron.php(24): XenForo_Model_Cron->runEntry(Array) #3 /var/www/netrider/library/XenForo/Model/Deferred.php(256): XenForo_Deferred_Cron->execute(Array, Array, 7.9999978542328, '') #4 /var/www/netrider/library/XenForo/Model/Deferred.php(390): XenForo_Model_Deferred->runDeferred(Array, 7.9999978542328, '', false) #5 /var/www/netrider/library/XenForo/Model/Deferred.php(335): XenForo_Model_Deferred->_runInternal(Array, NULL, '', false) #6 /var/www/netrider/deferred.php(23): XenForo_Model_Deferred->run(false) #7 {main} Request State array(3) { ["url"] => string(7) "http://" ["_GET"] => array(0) { } ["_POST"] => array(0) { } }
It appears to be incorrectly targeting /root/sitemap/ rather than my web path of /var/www/netrider/sitemap/
Cron systemAre you running through the command line, or through the cron system?
Was the previous version working for you?Cron system
We use essential cookies to make this site work, and optional cookies to enhance your experience.