Hi so when trying to open sitemap.php I get the error in the Subject.
The only changes I made to sitemap.php were
var $DEFAULT_SITEMAP_STYLE = '/w/sitemap.xsl'; var $DEFAULT_SITEINDEX_STYLE = '/w/siteindex.xsl';
Archives |
|
Hi so when trying to open sitemap.php I get the error in the Subject.
The only changes I made to sitemap.php were
var $DEFAULT_SITEMAP_STYLE = '/w/sitemap.xsl'; var $DEFAULT_SITEINDEX_STYLE = '/w/siteindex.xsl';
Tried to download the extension but link ended up in an error. Please fix or provide another source - thanks!
http://www.mediafire.com/download/g4bk96lrzv0bvjy/DynamicWikiSitemap.7z
This is my version on MW 1.27.0
I fixed a few things, it isn't the original one for sure. I applied only fixes to make it work.
Error with parameters:
$wgDynamicWikiSitemapArticlePriority = DWS_PRIORITY_LINEAR;
$wgDynamicWikiSitemapSortingCriterion = DWS_SORTING_REV;
-----------------------------------------------------------------------
Log: Notice: Use of undefined constant DWS_PRIORITY_LINEAR - assumed 'DWS_PRIORITY_LINEAR' in /home/h99724/data/www/my-site.com/LocalSettings.php on line 246
Call Stack:
0.0001 231872 1. {main}() /home/h99724/data/www/my-site.com/index.php:0 0.0003 232880 2. require('/home/h99724/data/www/my-site.com/includes/WebStart.php') /home/h99724/data/www/my-site.com/index.php:40 0.0036 1459264 3. require_once('/home/h99724/data/www/my-site.com/LocalSettings.php') /home/h99724/data/www/my-site.com/includes/WebStart.php:124
Warning: Cannot modify header information - headers already sent by (output started at /home/h99724/data/www/my-site.com/LocalSettings.php:246) in /home/h99724/data/www/my-site.com/includes/WebResponse.php on line 42
Call Stack:
0.0001 231872 1. {main}() /home/h99724/data/www/my-site.com/index.php:0 0.0157 3349752 2. MediaWiki->run() /home/h99724/data/www/my-site.com/index.php:43 0.0157 3350664 3. MediaWiki->main() /home/h99724/data/www/my-site.com/includes/MediaWiki.php:519 0.1635 9173952 4. OutputPage->output() /home/h99724/data/www/my-site.com/includes/MediaWiki.php:753 0.1636 9201328 5. WebResponse->header() /home/h99724/data/www/my-site.com/includes/OutputPage.php:2280 0.1636 9201472 6. header() /home/h99724/data/www/my-site.com/includes/WebResponse.php:42
Warning: Cannot modify header information - headers already sent by (output started at /home/h99724/data/www/my-site.com/LocalSettings.php:246) in /home/h99724/data/www/my-site.com/includes/WebResponse.php on line 42
Call Stack:
0.0001 231872 1. {main}() /home/h99724/data/www/my-site.com/index.php:0 0.0157 3349752 2. MediaWiki->run() /home/h99724/data/www/my-site.com/index.php:43 0.0157 3350664 3. MediaWiki->main() /home/h99724/data/www/my-site.com/includes/MediaWiki.php:519 0.1635 9173952 4. OutputPage->output() /home/h99724/data/www/my-site.com/includes/MediaWiki.php:753 0.1639 9201712 5. WebResponse->header() /home/h99724/data/www/my-site.com/includes/OutputPage.php:2281 0.1639 9201856 6. header() /home/h99724/data/www/my-site.com/includes/WebResponse.php:42
Warning: Cannot modify header information - headers already sent by (output started at /home/h99724/data/www/my-site.com/LocalSettings.php:246) in /home/h99724/data/www/my-site.com/includes/WebResponse.php on line 42
Call Stack:
0.0001 231872 1. {main}() /home/h99724/data/www/my-site.com/index.php:0 0.0157 3349752 2. MediaWiki->run() /home/h99724/data/www/my-site.com/index.php:43 0.0157 3350664 3. MediaWiki->main() /home/h99724/data/www/my-site.com/includes/MediaWiki.php:519 0.1635 9173952 4. OutputPage->output() /home/h99724/data/www/my-site.com/includes/MediaWiki.php:753 0.1642 9201720 5. WebResponse->header() /home/h99724/data/www/my-site.com/includes/OutputPage.php:2285 0.1642 9201864 6. header() /home/h99724/data/www/my-site.com/includes/WebResponse.php:42
------------------------------------------
With DWS_SORTING_REV, changes only first line:
Notice: Use of undefined constant DWS_SORTING_REV - assumed 'DWS_SORTING_REV' in /home/h99724/data/www/my-site.com/LocalSettings.php on line 246
I am using only with this configuration option:
$wgDynamicWikiSitemapSortingCriterion = DWS_SORTING_REV
everything works for me.
I confirm that for me it's working, I don't know.
Prodotto Versione
MediaWiki 1.27.1
PHP 5.6.24 (cgi-fcgi)
MySQL 5.6.32-78.1-log
Now DWS_SORTING_REV work.
It may be due to the fact that switched to the new version MW 1.27.1
Notice: Uncommitted DB writes (transaction from DatabaseBase::query (LCStoreDB::get)). in /web/htdocs/www.xxx.ext/wiki/includes/db/Database.php on line 4262
Any idea how to solve this issue?
I am using "rev_timestamp" sorting criterion
for me the solution was to close the connection with DB after the query:
open sitemap.php
search for:
function writeSitemap( $offset, $limit, $serverBase, $totalCount ) {
$queryOptions = $this->getQueryOptions( true );
$criterion = $this->getSortingCriterion();
$dbr =& wfGetDB( DB_SLAVE );
$res = $dbr->select( array( 'page', 'revision' ),
array(
"'Popularpages' AS type",
'page_id AS id',
'page_namespace AS namespace',
'page_title AS title',
'( MAX( rev_timestamp ) ) AS last_modification',
'( MIN( rev_timestamp ) ) AS creation_timestamp',
'( COUNT(rev_timestamp) ) AS revision_count',
"$criterion AS value"
),
$queryOptions,
__METHOD__,
array(
'GROUP BY' =>'page_id',
'ORDER BY' => $this->getOrder(),
'LIMIT' => $limit,
'OFFSET' => $offset
)
);
add after:
$dbr->commit(); //This is to close the connection with the DB after the query
it should be done for every query, 3 at all in my case
in order to make it work on mw 1.24 that finally removed the escapeLocalURL function, on sitemap.php find:
$url = $title->escapeLocalURL();
and replace with:
$url = htmlspecialchars( $title->getLocalUrl());
that's all, enjoy.
This post was posted by Raid~mediawikiwiki, but signed as Raid.
In my case I also needed to change below: $this->form_action=$title->escapeLocalURL( 'action=submit' ); to: $this->form_action=$title->getLocalUrl( 'action=submit' );
Cannot find your code, maybe you are using an older version.
I am using 1.0.1
This post was posted by Raid~mediawikiwiki, but signed as Raid.
Woops >.< I should have read this first before making a post.
Please just delete the post from ip 118.211.87.55
Hi, i have installed DynamicWikiSitemap extension and it seems it is working fine, however i have one question:
For example, in my sitemap i found this link:
http://davidmiscavige.wikiscientology.org/text/File:Quentinautopsy.pdf
However, this is not actually pdf file it is just a page handling that file. The actual file is here:
http://davidmiscavige.wikiscientology.org/images/2/27/Quentinautopsy.pdf
Is there a way a can configure the extension so it shows the link to the real file rather then link to the page that is handling it ?
Thanks, Goran
So far this extension is not registering itself on "Special:Version". It will be nice to have this in future versions. This would also allow to track its usage on different wiki instances.