Extension talk:DynamicWikiSitemap/Archive 02

About this board

Archives 

1 (2010/2013)


This page contains the following errors: error on line 2 at column 1: Extra content at the end of the document Below is a rendering of the page up to the first error

1
118.211.87.55 (talkcontribs)

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';

Reply to "This page contains the following errors: error on line 2 at column 1: Extra content at the end of the document Below is a rendering of the page up to the first error"

Downloadlink not working

10
85.125.24.170 (talkcontribs)

Tried to download the extension but link ended up in an error. Please fix or provide another source - thanks!

Valeriocipriani (talkcontribs)

yes the website is offline, I think we can share it

182.186.19.181 (talkcontribs)

Source is dead and is not available on web.

Yoyo2os (talkcontribs)

Can someone share it please ?

Valeriocipriani (talkcontribs)
Aka sektor (talkcontribs)

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

Valeriocipriani (talkcontribs)

I am using only with this configuration option:

$wgDynamicWikiSitemapSortingCriterion = DWS_SORTING_REV

everything works for me.

Aka sektor (talkcontribs)

Maybe it's because I have a different language version - russian?

Valeriocipriani (talkcontribs)

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

Aka sektor (talkcontribs)

Now DWS_SORTING_REV work.

It may be due to the fact that switched to the new version MW 1.27.1

Reply to "Downloadlink not working"
Valeriocipriani (talkcontribs)

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

Valeriocipriani (talkcontribs)

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

Reply to "MW 1.26.2 db error"

MW 1.24 escapeLocalURL fix

4
Valeriocipriani (talkcontribs)

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.

84.72.46.32 (talkcontribs)

In my case I also needed to change below: $this->form_action=$title->escapeLocalURL( 'action=submit' ); to: $this->form_action=$title->getLocalUrl( 'action=submit' );

Valeriocipriani (talkcontribs)

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.

Bentstuart1600 (talkcontribs)

Woops >.< I should have read this first before making a post.

Please just delete the post from ip 118.211.87.55

Reply to "MW 1.24 escapeLocalURL fix"

Indexing actual files rather then the page that is handling the file

1
Goran.dimcevski (talkcontribs)

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

Reply to "Indexing actual files rather then the page that is handling the file"
Kghbln (talkcontribs)
Reply to "Extension registry"
There are no older topics
Return to "DynamicWikiSitemap/Archive 02" page.