Fraska Portal

Exploring the WebSphere Commerce world

Joomla 1.5 and MediaWiki, integration workarounds for AuthJoomla2

Posted by on in Extensions
  • Font size: Larger Smaller
  • Hits: 2890
  • 8 Comments
  • Subscribe to this entry
  • Print

To integrate, in single sign-on, Joomla 1.5 and MediaWiki 2.1 I found an interesting plugin for joomla called "MediaWiki login" (or MediaWiki Bridge):

http://www.haroldprins.nl/index.php/mediawiki-bridge

Let's review the actors ...

  • Joomla 1.5 (an existing working instance)
  • MediaWiki 2.1 (a fresh instance)
  • MediaWiki login (joomla plugin)
  • AuthJoomla2 (mediawiki extension)

 

Following the simple guide provided from MediaWiki Bridge and installed the plugin and than the MW extension, however something went wrong.

# ISSUE 1

Call to undefined method Database::newFromParams() in AuthJoomla2.php on line 247

It happens cause AuthJoomla2.php (content of the media wiki extension) calls a deprecated- in MW 2.1- method, newFromParams. In order to fix it we need to call a supported method:

1) open AuthJoomla2.php 
2) go to the line 247
3) replace "
& Database :: newFromParams" with "new DatabaseMysql"
4) save and close

the issue should be gone.

 

# ISSUE 2 

Call to undefined method User::setupSession() in AuthJoomla2.php on line 152

It seems another method not used anymore in the last version of MW. To fix it:

1) open AuthJoomla2.php 
2) go to the line 152
3) replace "
$user->setupSession()" with "wfSetupSession()"
4) save and close

 

 Enjoy the integration!

 

Sources:

 

 

Rate this blog entry:
0

Comments

Leave your comment

Guest
Guest Monday, 15 July 2019

Most Popular Post

WebSphere Commerce, the curious life of a front-end catalog request
Core
Rate this blog entry:
5
WebSphere Commerce, the SOLR extension index
Administration
Rate this blog entry:
4
WebSphere Commerce, Data Load and SOLR Delta Index
Data Load
Rate this blog entry:
0

Latest Blogs

WebSphere Commerce, CommandLevelAuthorizationCache
Cache
Rate this blog entry:
0
WebSphere Commerce v8, toolkit exception, ClassNotFound db2
Administration
Rate this blog entry:
1
WebSphere Commerce, ATP migration
Store
Rate this blog entry:
0
WebSphere Commerce, the curious life of a front-end catalog request
Core
Rate this blog entry:
5
WebSphere Commerce, Performance analysis of few European stores
Performance
Rate this blog entry:
0