vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Integration with vBulletin - MediaWiki Latest Additions & Changes (https://vborg.vbsupport.ru/showthread.php?t=142520)

KrisP 01-22-2009 05:55 AM

Major, I was hoping you could take a look at this error with mediawiki 1.13.3:

Detected bug in an extension! Hook UpdateBlock failed to return a value; should return true to continue hook processing or false to abort.

Backtrace:

#0 /var/www/vhosts/mydomain.com/httpdocs/wiki/includes/Article.php(1564): wfRunHooks('ArticleSaveComp...', Array)
#1 /var/www/vhosts/mydomain.com/httpdocs/wiki/includes/Article.php(1317): Article->doEdit('test5?gr?fe', '', 98)
#2 /var/www/vhosts/mydomain.com/httpdocs/wiki/includes/EditPage.php(997): Article->updateArticle('test5?gr?fe', '', false, false, false, '')
#3 /var/www/vhosts/mydomain.com/httpdocs/wiki/includes/EditPage.php(2274): EditPage->internalAttemptSave(false, false)
#4 /var/www/vhosts/mydomain.com/httpdocs/wiki/includes/EditPage.php(464): EditPage->attemptSave()
#5 /var/www/vhosts/mydomain.com/httpdocs/wiki/includes/EditPage.php(349): EditPage->edit()
#6 /var/www/vhosts/mydomain.com/httpdocs/wiki/includes/Wiki.php(492): EditPage->submit()
#7 /var/www/vhosts/mydomain.com/httpdocs/wiki/includes/Wiki.php(59): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest))
#8 /var/www/vhosts/mydomain.com/httpdocs/wiki/index.php(93): MediaWiki->initialize(Object(Title), Object(Article), Object(OutputPage), Object(User), Object(WebRequest))
#9 {main}

KrisP 01-22-2009 08:20 AM

Isent it possible to make a bug trace on a finer level to see what actually goes wrong inside the Updateblock ?

KrisP 01-22-2009 08:34 AM

The wikichanges.htm actully gets data on the following form:

<tr class="alt2"><td colspan="7"><span class="smallfont"><a href="/wiki/index.php?title=Test5" title="Test5">Test5</a> - by Euroman<BR></span></td></tr>

<tr class="alt1"><td colspan="7"><span class="smallfont"><a href="/wiki/index.php?title=Test3" title="Test3">Test3</a> - by Euroman<BR></span></td></tr>

<tr class="alt2"><td colspan="7"><span class="smallfont"><a href="/wiki/index.php?title=Teset1" title="Teset1">Teset1</a> - by Euroman<BR></span></td></tr><tr class="alt1">

etc.

KrisP 01-22-2009 08:54 AM

Conclusion so far:

Mod is actully working as far as:

1. Output gets produced correctly in: wikichanges.htm
2. Also I can se page actully gets correctly updated with saved change

Only problem:
Error message after saving because updateblock is not "true".

Possible solution: Can we somehow define/set updateblock to "true" so we wont get the error message? It that is possible then mod is working 100 pt.

KrisP 01-22-2009 09:47 AM

Here is the patch to mediawiki 1.13.3:

In makevbmodule.php:

After:
PHP Code:

$wik $wik '</span>';
$fh fopen($myFile'w') or die("Can't open file.");
fwrite($fh$wik);
fclose($fh); 

Add:

PHP Code:

return true


:D

KrisP 01-22-2009 10:35 AM

Could anybody help me rewrite links to piniata style: http://pinataisland.info/index.php?t...451&oldid=prev ?
PHP Code:

http://pinataisland.info/index.php?title=Swanana&diff=24451&oldid=prev 

I believe the diff parameter can be fetched from recent changes as o.rc_this_oldid and refered to as $row['rc_this_oldid'] in url. Should be pretty easy, but I cant seem to get syntax right and I am not sure I understand conventions for use of ' vs. " ...

majorxp 01-23-2009 02:12 AM

KrisP -

Looks like you found your answer!

I'm not really sure what exactly you are asking in post 36 though.

KrisP 01-23-2009 07:55 PM

Well, if you look at the demo website http://pinataisland.info/central.php their recent wiki links are different. They point to a page where you can see the change of the article on the top of the page and the article itself on the bottom. I would like that too on my site.

majorxp 01-25-2009 03:50 AM

most interesting idea........

I like that.

You can edit that by the code you found above...

KrisP 01-25-2009 04:13 PM

Here is the code:

$query = "SELECT o.rc_this_oldid, ...

$wik = $wik . '<a href="/wiki/index.php?title=' . $row['rc_title'] . '&diff=' . $row['rc_this_oldid'] . '&oldid=prev' . '">' . $row['rc_title']. '</a>' . $new . ' - by ' . $row['rc_user_text'] . '<BR>';


All times are GMT. The time now is 03:35 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01698 seconds
  • Memory Usage 1,744KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete