By BDaggerhart on
I would really like to have full integration of mediaWiki on my drupal site. Basically, I would like shared user tables, or at least synced user tables, so that when a user on my site logs into drupal, then clicks on the wiki link, he will automatically be logged into the wiki. There is a very old post from January of 2006 for this with drupal 4.7, but I'm using 5.x. I found this MediaWiki extension: http://www.mediawiki.org/wiki/Extension:AuthDrupal, but I don't know if it's going to do exactly what I want, since I'm using Drupal 5.2. Any help/advice on this?
Thanks,
Brandon
Comments
AuthDrupal
You'll want to check out this:
http://www.mediawiki.org/wiki/Extension:AuthDrupal
I got it working well with MW 1.10 and Drupal 5.2 after some wrangling of return types in AuthDrupal.php, here is my patch:
Thanks for that patch! Do
Thanks for that patch!
Do you think this DrupalAuth will in any way interfere with my Farmer extension (a wikifarm extension) on Media Wiki?
I have no idea, sorry.
I have no idea, sorry.
thanks for the patch
Anisotropic:
your installation of mediawiki, is it a subdirectory under drupal or is it on its own? also, do mediawiki and drupal shares the same database?
Thanks Anisotropic
Regards
I'm sorry for returning to
I'm sorry for returning to this topic after quite a time, but I'm trying to integrate drupal and mediawiki and I get the following error when i address wiki after i finished installation:
Could you help me out here and point to what is wrong?
Stuck with same problem
Original exception: exception 'MWException' with message 'Detected bug in an extension! Hook Auth_drupal_loginlink_hook failed to return a value; should return true to continue hook processing or false to abort.' in /home/content/x/x/x/username/html/mwiki_home/includes/Hooks.php:133
I am trying my best to fix it... If anyone has patch, please do post it.
- Naresh
I encountered a similar problem with Drupal 5.10 and MW 1.11.0
MediaWiki internal error.
Original exception: exception 'MWException' with message 'Detected bug in an extension! Hook Auth_drupal_loginlink_hook failed to return a value; should return true to continue hook processing or false to abort.' in /var/www/mysite/mediawiki-1.11.0/includes/Hooks.php:133
Stack trace:
#0 /var/www/mysite/mediawiki-1.11.0/includes/SkinTemplate.php(585): wfRunHooks('PersonalUrls', Array)
#1 /var/www/mysite/mediawiki-1.11.0/includes/SkinTemplate.php(436): SkinTemplate->buildPersonalUrls()
#2 /var/www/mysite/mediawiki-1.11.0/includes/OutputPage.php(696): SkinTemplate->outputPage(Object(OutputPage))
#3 /var/www/mysite/mediawiki-1.11.0/includes/Wiki.php(301): OutputPage->output()
#4 /var/www/mysite/mediawiki-1.11.0/index.php(90): MediaWiki->finalCleanup(Array, Object(LoadBalancer), Object(OutputPage))
#5 {main}
Exception caught inside exception handler: exception 'MWException' with message 'Detected bug in an extension! Hook Auth_drupal_loginlink_hook failed to return a value; should return true to continue hook processing or false to abort.' in /var/www/mysite/mediawiki-1.11.0/includes/Hooks.php:133
Stack trace:
#0 /var/www/mysite/mediawiki-1.11.0/includes/SkinTemplate.php(585): wfRunHooks('PersonalUrls', Array)
#1 /var/www/mysite/mediawiki-1.11.0/includes/SkinTemplate.php(436): SkinTemplate->buildPersonalUrls()
#2 /var/www/mysite/mediawiki-1.11.0/includes/OutputPage.php(696): SkinTemplate->outputPage(Object(OutputPage))
#3 /var/www/mysite/mediawiki-1.11.0/includes/Exception.php(86): OutputPage->output()
#4 /var/www/mysite/mediawiki-1.11.0/includes/Exception.php(111): MWException->reportHTML()
#5 /var/www/mysite/mediawiki-1.11.0/includes/Exception.php(191): MWException->report()
#6 /var/www/mysite/mediawiki-1.11.0/includes/Exception.php(225): wfReportException(Object(MWException))
#7 [internal function]: wfExceptionHandler(Object(MWException))
#8 {main}
I encountered a similar problem with Drupal 5.10 and MW 1.11.0
MediaWiki internal error.
Original exception: exception 'MWException' with message 'Detected bug in an extension! Hook Auth_drupal_loginlink_hook failed to return a value; should return true to continue hook processing or false to abort.' in /var/www/mysite/mediawiki-1.11.0/includes/Hooks.php:133
Stack trace:
#0 /var/www/mysite/mediawiki-1.11.0/includes/SkinTemplate.php(585): wfRunHooks('PersonalUrls', Array)
#1 /var/www/mysite/mediawiki-1.11.0/includes/SkinTemplate.php(436): SkinTemplate->buildPersonalUrls()
#2 /var/www/mysite/mediawiki-1.11.0/includes/OutputPage.php(696): SkinTemplate->outputPage(Object(OutputPage))
#3 /var/www/mysite/mediawiki-1.11.0/includes/Wiki.php(301): OutputPage->output()
#4 /var/www/mysite/mediawiki-1.11.0/index.php(90): MediaWiki->finalCleanup(Array, Object(LoadBalancer), Object(OutputPage))
#5 {main}
Exception caught inside exception handler: exception 'MWException' with message 'Detected bug in an extension! Hook Auth_drupal_loginlink_hook failed to return a value; should return true to continue hook processing or false to abort.' in /var/www/mysite/mediawiki-1.11.0/includes/Hooks.php:133
Stack trace:
#0 /var/www/mysite/mediawiki-1.11.0/includes/SkinTemplate.php(585): wfRunHooks('PersonalUrls', Array)
#1 /var/www/mysite/mediawiki-1.11.0/includes/SkinTemplate.php(436): SkinTemplate->buildPersonalUrls()
#2 /var/www/mysite/mediawiki-1.11.0/includes/OutputPage.php(696): SkinTemplate->outputPage(Object(OutputPage))
#3 /var/www/mysite/mediawiki-1.11.0/includes/Exception.php(86): OutputPage->output()
#4 /var/www/mysite/mediawiki-1.11.0/includes/Exception.php(111): MWException->reportHTML()
#5 /var/www/mysite/mediawiki-1.11.0/includes/Exception.php(191): MWException->report()
#6 /var/www/mysite/mediawiki-1.11.0/includes/Exception.php(225): wfReportException(Object(MWException))
#7 [internal function]: wfExceptionHandler(Object(MWException))
#8 {main}