XML Sitemap for XenForo 1.3 [Not needed, included in 1.4]

Does it works with the xenFORO 1.2.x? BETA
I just installed it on my site (my second 1.2 BETA 5) and ran the CRON job and it generated the sitemap with the (currently) one post that is live shown in the sitemap. Will have to check later to see if it pings Google and Bing to let them know about it. If you go to http://bogboys.com/robots.txt you will see that it is also generating the robots.txt (I have the rewrite enabled in my nginx configuration for the site).
 
- 1.2.5 BETA

Error Info:

Code:
Exception: Sitemap has been generated - library\XfAddOns\Sitemap\Model\Sitemap.php:159
Generated By: Unknown Account, Today at 6:49 PM
Stack Trace:
Code:
#0 C:\wamp\www\library\XfAddOns\Sitemap\CronEntry\RebuildSitemap.php(31): XfAddOns_Sitemap_Model_Sitemap->runAllAvailableSiteMaps()
#1 [internal function]: XfAddOns_Sitemap_CronEntry_RebuildSitemap::run(Array)
#2 C:\wamp\www\library\XenForo\Model\Cron.php(356): call_user_func(Array, Array)
#3 C:\wamp\www\library\XenForo\ControllerAdmin\Cron.php(213): XenForo_Model_Cron->runEntry(Array)
#4 C:\wamp\www\library\XenForo\FrontController.php(335): XenForo_ControllerAdmin_Cron->actionRun()
#5 C:\wamp\www\library\XenForo\FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#6 C:\wamp\www\admin.php(13): XenForo_FrontController->run()
#7 {main}
Request State:
Code:
array (size=3)
  'url' => string 'http://127.0.0.1/admin.php?cron/cemzoo_rebuild_sitemap/run&_xfToken=1%2C1373478587%2Cd29dc2ec4f49a65075d78db03a7736e386585b54' (length=125)
  '_GET' =>
    array (size=2)
      'cron/cemzoo_rebuild_sitemap/run' => string '' (length=0)
      '_xfToken' => string '1,1373478587,d29dc2ec4f49a65075d78db03a7736e386585b54' (length=53)
  '_POST' =>
    array (size=0)
      empty
 
- 1.2.5 BETA

Error Info:

Code:
Exception: Sitemap has been generated - library\XfAddOns\Sitemap\Model\Sitemap.php:159
Generated By: Unknown Account, Today at 6:49 PM
Stack Trace:
Code:
#0 C:\wamp\www\library\XfAddOns\Sitemap\CronEntry\RebuildSitemap.php(31): XfAddOns_Sitemap_Model_Sitemap->runAllAvailableSiteMaps()
Hopefully @Rigel Kentaurus will step it, as since you are running it
#1 On a Windows box
#2 On localhost
I've got a feeling that one of those two things may be involved. I'm running on a dedicated Debian Wheezy (7.0) server and it works fine on all 3 forums ( 1 1.1.5 and 2 1.2 BETA 5).
 
I installed this add-on but why my sitemap index is not generated:
/sitemap/sitemap.xml.gz not found, while the rest is exist:


Code:
root@www:/var/www/sitemap# ls -al
total 212
drwxrwxrwx  2 www-data www-data  4096 Jul 16 11:04 .
drwxrwxrwx 15 www-data www-data  4096 Jul 16 10:51 ..
-rw-r--r--  1 www-data www-data  0 Jul 16 10:43 index.html
-rw-r--r--  1 www-data www-data  1775 Jul 16 11:04 sitemap.forums.1.xml.gz
-rw-r--r--  1 www-data www-data 199453 Jul 16 11:04 sitemap.threads.1.xml.gz
root@www:/var/www/sitemap#
 
I have a problem when try to run via Cli.php i have cache in the backend. If i remove the xcache configuration from config.php the Cli.php script run well but with xcache caching backend i have the following error.

Info del error
ErrorException: xcache_get(): XCache var cache was not initialized properly. Check php log for actual reason -

#12 /var/www/vhosts/mysite.com/httpdocs/library/XfAddOns/Sitemap/Cli.php(29): XfAddOns_Sitemap_CronEntry_RebuildSitemap::run()
#13 {main}
Estado de la solicitud
array(3) {
["url"] => string(7) "http://"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}


My xcache config.
Code:
$config['cache'] = array(
    'enabled' => true,
    'frontend' => 'Core',
    'frontendOptions' => array(
            'caching' => true,
            'automatic_serialization' => false,
            'cache_id_prefix' => 'foro_',
            'lifetime' => 18000
    ),
    'backend' => 'Xcache',
  'backendOptions' => array(),
    'cacheSessions' => false
);
$config['cache']['backendOptions']['hashed_directory_level'] = '1';
 
Last edited:
Forget the error, php-cli is not supported by xcache :mad:


I have a problem when try to run via Cli.php i have cache in the backend. If i remove the xcache configuration from config.php the Cli.php script run well but with xcache caching backend i have the following error.

Info del error
ErrorException: xcache_get(): XCache var cache was not initialized properly. Check php log for actual reason -

#12 /var/www/vhosts/mysite.com/httpdocs/library/XfAddOns/Sitemap/Cli.php(29): XfAddOns_Sitemap_CronEntry_RebuildSitemap::run()
#13 {main}
Estado de la solicitud
array(3) {
["url"] => string(7) "http://"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}


My xcache config.
Code:
$config['cache'] = array(
    'enabled' => true,
    'frontend' => 'Core',
    'frontendOptions' => array(
            'caching' => true,
            'automatic_serialization' => false,
            'cache_id_prefix' => 'foro_',
            'lifetime' => 18000
    ),
    'backend' => 'Xcache',
  'backendOptions' => array(),
    'cacheSessions' => false
);
$config['cache']['backendOptions']['hashed_directory_level'] = '1';
 
Does this sitemap allow an admin to not include threads within a certain forum. For example, if I set an off topic forum to noindex, it doesn't make sense to include it with my sitemap. This will help get a better understanding of my indexed pages as well.
 
Some people have tried this already in 1.2, and it does not seem to have any issues. I have yet to release an official update for 1.2 compatibility, but it might end up being just a version update.

The only issue is that is places the log in server error log. It needs its own log area.
 
There is a setting to disable that. It is named "Log sitemap creation" and it is under Options -> Sitemap

The problem is I like the logs. They shouldn't be put in Server Error Logs though. In 1.2, every time the sitemap is update and logged, xenForo alerts me that there are new errors in the server log when in fact it is just the sitemap. The successful completion of the sitemap isn't an "error".
 
The problem is I like the logs. They shouldn't be put in Server Error Logs though. In 1.2, every time the sitemap is update and logged, xenForo alerts me that there are new errors in the server log when in fact it is just the sitemap. The successful completion of the sitemap isn't an "error".
I don't think XenForo provides any other log other than the "Error Log"
 
hey,

I get exceptions after generating.

Exception: Sitemap has been generated - library/XfAddOns/Sitemap/Model/Sitemap.php:159

array(3) {
["url"] => string(41) "http://****/forum/deferred.php"
["_GET"] => array(0) {
}
["_POST"] => array(3) {
["_xfRequestUri"] => string(49) "/forum/forums/****.3/?order=reply_count"
["_xfNoRedirect"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
 
In 1.2 putting the log somewhere else is almost a requirement, its really annoying thinking something went wrong everytime I log into my ACP due to those alerts.

Other addons create their own log area.
I'm just going to remove the log altogether :) That is something that really would need to be managed by XenForo, some sort of "info" log. The add-on is supposed to be a sitemap, containing a full log section is a little bit too much!
 
I'm just going to remove the log altogether :) That is something that really would need to be managed by XenForo, some sort of "info" log. The add-on is supposed to be a sitemap, containing a full log section is a little bit too much!

Sounds good.

When do you think this update will be released?
 
Back
Top Bottom