PDA

View Full Version : Integration with vBulletin - MediaWiki/vBulletin Single Sign-On


Pages : 1 [2]

MarWien
01-21-2009, 03:25 PM
It does'nt work for me. The redirect from MediaWiki to the vBulletin site with the authentication form is working. After the authentication the site is redirecting me back to the MediaWiki but i'm not logged in. I've tried it with vb3.7.4 / vb3.8.0 + MW1.13.3.
Can anyone help me with this issue? I've already read this thread and tried the hints of the users but i can't solve this issue.

optrex
01-22-2009, 10:29 PM
Sounds to me like you need to do the following as I had the same issue

From MW 1.13+ the "AutoAuthenticate" Hook is renamed to "UserLoadFromSession". So edit the hook name to "UserLoadFromSession" at near the end of AuthPlugin_vBSSO.php.

Pavlus
01-25-2009, 02:41 PM
It doesn`t work for 3.7.3 for newest mediawiki even if i change authoanthenticate hook and other stuff.

MarWien
01-26-2009, 07:52 PM
Sounds to me like you need to do the following as I had the same issue

From MW 1.13+ the "AutoAuthenticate" Hook is renamed to "UserLoadFromSession". So edit the hook name to "UserLoadFromSession" at near the end of AuthPlugin_vBSSO.php.

Thx fo your hint, but i already have done this. :(

ndahiya
01-26-2009, 11:51 PM
I already have vbWiki Pro running, but as the product is no longer supported, suspect will have to move away from it soon. the best that runs with is vb3.8 and Mediawiki 1.11

How does installing this product (replacing vbWiki pro) change things ? TIA.

ccunnin71
01-27-2009, 08:38 AM
I just set everything up with MediaWiki 1.13.3 and a copy of just updated 3.8.0. Using pages 14 - 16 of this thread have got me running with working integration. I am causing my own grief adding extensions to MediaWiki.

A good set of notes might not be a bad idea, but NeoJeko must be close on updates.

proxx
01-27-2009, 11:44 PM
Hi guys,

I just installed the latest mediawiki and this hack.

When I go to /wiki/ I see a blank page with error 'Page not found'

could someone please point me in the right direction. Where did I mess up?

proxx
01-28-2009, 12:04 AM
I figured it out. The problem was that I have VBSEO installed with .htaccess

Could someone tell me what can I add to the .htaccess so the rules don't apply to /wiki/ folder?

RewriteEngine On

RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron)
RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]

proxx
01-28-2009, 06:00 AM
1) Ok, I found a solution by adding this to vbseo's .htaccess
RewriteRule ^wiki/.*$ - [PT]
seems to work.

2) But now I have different problems. It seems that it doesn't recognize me as logged on.

I have 3.7.4L1 and 1.13.3

I followed all the recommendations in this thread.

The only thing is my site like this:

subdomain.domain.com < forum
subdomain.domain.com/wiki/ < wiki

is the problem because I have a subdomain?

In vbulletin, I made sure that my cookie domain is '.domain.com'

3) My wiki redirects to /wiki/index.php/Main_Page , although i have selected "short urls" in options.

I'd appreciate any help

Pavlus
01-28-2009, 04:42 PM
God damned, i really get angry now.

I updated vBulletin to 3.8.1 ver, and still having problem with wiki 1.13.3.

I edited all files including user.php, i have changed file path from relative, and it still doesn`t log into wiki. Maybe there wiki database should by in myisam - the same as vbulletin?

It should work, as you posted before with 3.8.0 version...

Digital Jedi
01-30-2009, 12:20 PM
It doesn`t work for 3.7.3 for newest mediawiki even if i change authoanthenticate hook and other stuff.
Yes it does, as I have both. But you have to search the most recent posts of this thread to see what was done to make it work.

katriders
01-30-2009, 03:51 PM
I upgraded my VB install to 3.8.1 last night, and now I get the following error message when trying to load the wiki
Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in *Edited*/public_html/wiki/includes/AutoLoader.php on line 10

I went back and verified that all my other settings were correct per the install instructions... it was up and running great before the upgrade of vBulletin.

Any ideas on where I can look to track down the problem? I'm running mediaWiki version 1.13.3.

Pavlus
01-30-2009, 05:51 PM
Yes it does, as I have both. But you have to search the most recent posts of this thread to see what was done to make it work.

I have done everything i read any post from this topic two times. Is there any possibility that in php.ini some function is disabled to transfer session information from sites? Maybe this is the reason that its not working?

katriders
01-30-2009, 07:33 PM
Disregard my message. I just found out that my host changed how they do the order of precedence when loading a page.... and php5 is lower on the list than html.

Doh!

ericdesmontagne
02-09-2009, 06:18 AM
Hello :) i have planned to replace deprecated vbwiki pro by this mod... but...
is it compatible with vb 3.8 ?
is it possible to have 2 mediawiki installed and linked to the vb forum as actually in my configuration ?

Thanks for your help.:up:

Wakey
02-09-2009, 10:55 AM
I use this Facebook Connect mod (https://vborg.vbsupport.ru/showthread.php?t=198499).

Anyone else use it and know how to integrate the facebook connect login with this hack

OneShot
02-09-2009, 01:47 PM
Hello :) i have planned to replace deprecated vbwiki pro by this mod... but...
is it compatible with vb 3.8 ?
is it possible to have 2 mediawiki installed and linked to the vb forum as actually in my configuration ?

Thanks for your help.:up:

That would interest me as well because I'm in the same predicament (i.e. I have two wikis running with the same vB Forum).

ericdesmontagne
02-12-2009, 08:28 AM
I have a white page with 3.8... anybody have the solution for this ?

ericdesmontagne
02-12-2009, 06:56 PM
It is probably due to my version of WIKI (1.13.4) and vb (3.8)

ericdesmontagne
02-12-2009, 07:00 PM
I already have vbWiki Pro running, but as the product is no longer supported, suspect will have to move away from it soon. the best that runs with is vb3.8 and Mediawiki 1.11

How does installing this product (replacing vbWiki pro) change things ? TIA.
I think no...
I have uninstalled vbwiki pro, and trying to install this mod... but still not working as you can read hereabove...

ericdesmontagne
02-12-2009, 07:24 PM
Following these steps but changing
$wgGroupPermissions['*']['createaccount'] = true;
to
$wgGroupPermissions['*']['createaccount'] = false;
in wiki/includes/DefaultSettings.php (I don't know why, but on LocalSettings doesn't works for me)

I get it finally works correctly :D
MediaWiki 1.13.3
VB 3.7.4PL1

Thanks :up:

It did not work with 1.13.4 wiki and 3.8 vb :( i'm trying something else now...

carrlos
02-13-2009, 04:49 PM
Confirmed to work with vB 3.8.1 and MediaWiki 1.13.4. Only two fixes needed:

1. From the zip file, open AuthPlugin_vBSSO.php. Near the end, replace "AutoAuthenticate" with "UserLoadFromSession".
Props to shikareez (https://vborg.vbsupport.ru/member.php?u=255467)!

2. I still had to make the class_core.php edit.

Working! :D

Jaxel
02-16-2009, 03:45 PM
Getting this to work with MW 1.13.4 is EASY... You DONT need to edit class_core.php...

1. Install Media Wiki, following the standard install instructions...

2. Install this mod, following the standard instructions...

3. Open AuthPlugin_vBSSO.php. FIND: "AutoAuthenticate" and replace with "UserLoadFromSession".

4. Open wiki/includes/User.php FIND:
define( 'EDIT_TOKEN_SUFFIX', '+\\' );
Replace with:
define( 'EDIT_TOKEN_SUFFIX', '+#+' );

DONE. EASY. Step 4 fixes missing token problems, as well as login/logout issues that people keep claiming... If they simply followed step 4, instead of updating class_core.php, they wouldnt have these problems. I wish NekoJoe would upload this mod to explain these fixes.

http://www.8wayrun.com/wiki/Special:Version

carrlos
02-16-2009, 06:22 PM
I did the User.php thing and still couldn't edit anything. So, I did the class_core.php and everything worked fine.

How do you explain that?

Jaxel
02-16-2009, 07:39 PM
I did the User.php thing and still couldn't edit anything. So, I did the class_core.php and everything worked fine.

How do you explain that?
You forgot to upload your changed User.php.

carrlos
02-17-2009, 03:22 AM
You forgot to upload your changed User.php.

I uploaded it. But I tell you what.......I'll try again. :rolleyes:

squishi
02-22-2009, 08:24 PM
It's really late here, and 19 pages is a lot to read. So...
I installed my wiki in a separate database than vbulletin.

Anybody have any pointers on what to modify to make this work with two separate databases?

I am working myself through the pages of this thread...

Post #42 solved the redirect problem that occured when you try to log in.

Unfortunately, after clicking the login button, the user gets redirected to the wiki and is still not logged in.

Also, the other wiki bridge modification is very heavy on the database, because it queries the user details on every page load.
Is this the case with this mod, too?

Radek125
02-23-2009, 04:50 AM
Yes I did try doing those changes, still have error, I tried replacing a file with the file the posted on page 8 saying that it fixed it giving him a new AuthPlugin file.

After I replaced the file with the fix on post 8, he received this error;

A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:
(SQL query hidden)
from within function "User::addToDatabase". MySQL returned error "1062: Duplicate entry 'Sourc[e]x' for key 2 (localhost)

I would look at the databases but I dunno which one it is referring to. He only gets this error when he tries to login, so he can browse the wiki if he logs out.

I am having this exact same issue. My users are randomly getting this error, including my main admin account, all others work fine. I've tried deleting the user's manualy in the wiki db, and it APPEARS to work, but only works the very first time you load the wiki, clicking on any other page after will make the error pop up again.

squishi
02-23-2009, 07:15 AM
will this only work with monobook style?
I am using the modern style, and am not able to log in.

squishi
02-23-2009, 08:08 AM
I got it working now. Somehow I did not follow the readme.txt.

Now how would I set up the user group permissions?
I want to allow registered forum users to edit the wiki. Visitors who are not logged in should not be able to edit, though.

Jaxel
02-23-2009, 12:46 PM
Getting this to work with MW 1.13.4 is EASY... You DONT need to edit class_core.php...

1. Install Media Wiki, following the standard install instructions...

2. Install this mod, following the standard instructions...

3. Open AuthPlugin_vBSSO.php. FIND: "AutoAuthenticate" and replace with "UserLoadFromSession".

4. Open wiki/includes/User.php FIND:
define( 'EDIT_TOKEN_SUFFIX', '+\\' );
Replace with:
define( 'EDIT_TOKEN_SUFFIX', '+#+' );

DONE. EASY. Step 4 fixes missing token problems, as well as login/logout issues that people keep claiming... If they simply followed step 4, instead of updating class_core.php, they wouldnt have these problems. I wish NekoJoe would upload this mod to explain these fixes.

http://www.8wayrun.com/wiki/Special:Version

Just upgraded to version 1.14... works great.

rexford.kim
02-23-2009, 11:20 PM
I am getting slow MediaWiki 1.13.4 performance after installing Single Sign On 2.1.0 with vBulletin 3.8.1 installed. When running MediaWiki 1.13.4 by itself without the Single Sign On 2.1.0 it was running fine. However after installing the Single Sign On 2.1.0, the MediaWiki is very slow to load and any link I click on that is stored locally is very slow to load at least 30 seconds to load.

I changed the memory limit.

# If PHP's memory limit is very low, some operations may fail.
ini_set( 'memory_limit', '512M' );

Apache Logs message:

[Mon Feb 23 17:15:41 2009] [error] [client 10.15.15.41] PHP Notice: Constant CWD already defined in /srv/www/htdocs/forum/global.php on line 16, referer: https://<WEBSITE>.com/forum/wiki/index.php?title=Talk:Main_Page&action=edit

[Mon Feb 23 17:16:35 2009] [notice] child pid 19984 exit signal Segmentation fault (11)

[Mon Feb 23 17:16:35 2009] [notice] child pid 19986 exit signal Segmentation fault (11)
Allowed memory size of 536870912 bytes exhausted (tried to allocate 134862061 bytes)

When I comment out the line to run the Single Sign On 2.1.0 speed on the MediaWiki returns to normal.

Does anybody have any suggestions, workarounds, or solutions?

rexford.kim
02-23-2009, 11:54 PM
One more thing to throw onto your plate....

I was speaking with the server administrator at my webhost, and he mentioned that this mod seems to be generating a PHP error every time a user access a page on the wiki:




Apparently the server PHP log is filled with thousands of those. He believes it has something to do with how the VB_SYSTEM_PATH constant is defined.

Dexter...

I am getting the same error message slow MediaWiki 1.13.4 performance after installing Single Sign On 2.1.0 and with vBulletin 3.8.1 installed.

[Mon Feb 23 17:46:50 2009] [error] [client 10.15.15.41] PHP Notice: Use of undefined constant VB_SYSTEM_PATH - assumed 'VB_SYSTEM_PATH' in /srv/www/htdocs/forum/wiki/LocalSettings.php on line 28:(

Radek125
02-24-2009, 05:21 PM
I am having this exact same issue. My users are randomly getting this error, including my main admin account, all others work fine. I've tried deleting the user's manualy in the wiki db, and it APPEARS to work, but only works the very first time you load the wiki, clicking on any other page after will make the error pop up again.

Anyone that can help here? I've reinstalled the user table, gone through the code, every page on this thread and cannot find the answer.


A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:
INSERT INTO `user` (user_id,user_name,user_password,user_newpassword, user_newpass_time,user_email,user_email_authentica ted,user_real_name,user_options,user_token,user_re gistration,user_editcount) VALUES (NULL,'radek-SiN','','','20090224191517','',NULL,'','quickbar=1 \nunderline=2\ncols=80\nrows=25\nsearchlimit=20\nc ontextlines=5\ncontextchars=50\ndisablesuggest=0\n ajaxsearch=0\nskin=\nmath=1\nusenewrc=0\nrcdays=7\ nrclimit=50\nwllimit=250\nhideminor=0\nhighlightbr oken=1\nstubthreshold=0\npreviewontop=1\npreviewon first=0\neditsection=1\neditsectiononrightclick=0\ neditondblclick=0\neditwidth=0\nshowtoc=1\nshowtoo lbar=1\nminordefault=0\ndate=default\nimagesize=2\ nthumbsize=2\nrememberpassword=0\nenotifwatchlistp ages=0\nenotifusertalkpages=1\nenotifminoredits=0\ nenotifrevealaddr=0\nshownumberswatching=1\nfancys ig=0\nexternaleditor=0\nexternaldiff=0\nshowjumpli nks=1\nnumberheadings=0\nuselivepreview=0\nwatchli stdays=3\nextendwatchlist=0\nwatchlisthideminor=0\ nwatchlisthidebots=0\nwatchlisthideown=0\nwatchcre ations=0\nwatchdefault=0\nwatchmoves=0\nwatchdelet ion=0\nvariant=en\nlanguage=en\nsearchNs0=1','ab56 1306e81ea646114f994a7d863120c','20090224191517','0 ')
from within function "User::addToDatabase". MySQL returned error "1062: Duplicate entry 'radek-SiN' for key 2 (db1)".

BRotondi
02-27-2009, 02:30 PM
@Radek125: Sorry, no clue...

Just upgraded to version 1.14... works great.
I upgradet also to 1.14 and 3.8.1, but still the same issue: Logout does not logout Wiki and login via Wiki is not processed in vB.

Why does it work on one half of the users, but not on the others?

Really a nice Plugin, ... would be nice if it works 100%...
Bruno

System69
03-01-2009, 07:39 PM
Has any one a working isntallation with vB 3.8.1 and MediaWiki v1.14.0?

What was to do to get it to work?

System69
03-01-2009, 08:55 PM
I got it working so far, but if i logg me in in Wiki, it seemd to be all ok, forum tell's me that the login is OK, it goes back to the wiki, but i'm still not loged on. any ideas?

dutchbb
03-01-2009, 09:11 PM
I got it working so far, but if i logg me in in Wiki, it seemd to be all ok, forum tell's me that the login is OK, it goes back to the wiki, but i'm still not loged on. any ideas?
I searched for hours to solve that bug, here is the answer: https://vborg.vbsupport.ru/showpost.php?p=1715739&postcount=246

Coder should update the first post.

Praxis
03-02-2009, 01:20 PM
Is anyone running this with mod security in a chroot environment? If you are how is it working and did you do anything special? I have it installed but it is running terrible and only works properly when we turn off the VB authorization. When we use VB auth it will eat memory until it crashes, reload the script over and over again with CPU usage going to 100% on both processors and it takes a minute or two to show each page. Once we use wiki auth again it works like a charm.

BRotondi
03-02-2009, 03:57 PM
Perhaps someone is interested in these informations:
- Installation Instructions + german adds: mmog_wiki_v2.1.0.doc (http://SinnImLeben.net/external/mmog_wiki_v2.1.0.doc)
- The options menu of mmog 2.1: http://SinnImLeben.net/external/MMog_2.1_Options.jpg (high resolution (http://www.sinnimleben.net/external/MMog_2.1_Options.png))

Greetings, Bruno

ndahiya
03-07-2009, 12:21 AM
Has any one a working isntallation with vB 3.8.1 and MediaWiki v1.14.0?

What was to do to get it to work?


Just installed on vb 3.8.1 and Mediawiki 1.14.0... Looks fine....

Just make sure you follow: https://vborg.vbsupport.ru/showpost.php?p=1745995&postcount=273

For what is worth, I was using vbwiki Pro... transition appears to be seamless...

ndahiya

MTGDarkness
03-08-2009, 02:38 AM
Cookies aren't working. It says I'm logged in, redirects me, and then I'm logged out again.
Just so you know, I installed mediawiki and the hack, my forum is here: http://forums.mtgdarkness.com and my wiki is here: http://forums.mtgdarkness.com/wiki

OneShot
03-08-2009, 07:38 PM
I've asked this before ... I'm currently running two wikis connected to a single vBulletin forum. I'm using vBWikiPro which works well so far (on vB 3.7.5). However I want to upgrade to 3.8 but won't do so unless I find a working solution to keep everything running. Anybody got an idea if this mod is able to do this?

murekhalir
03-09-2009, 12:08 AM
this might be stupid - if this allows login,

what mod actually allows bridging?

BRotondi
03-16-2009, 09:17 AM
@OneShot: Yes, I also use 2 Wikis on 1 Forum.
@MTGDarkness: Ctrl-F5 (Firefox) is necessary sometimes from inside wiki... hope this helps you

Bruno

OneShot
03-16-2009, 12:54 PM
@BRotondi : Can you post a step by step explanation how you got those two wikis to work with the mod?

Strafe
03-17-2009, 03:26 AM
I'm getting the following error after following the latest instructions... can anyone please enlighten me?

Using on latest wiki version and vb 3.8.1

Warning: require_once(./includes/functions_user.php) [function.require-once]: failed to open stream: No such file or directory in [path]global.php(400) : eval()'d code on line 3

Fatal error: require_once() [function.require]: Failed opening required './includes/functions_user.php'


Thanks you!

Burgy
03-18-2009, 01:02 AM
Ich bin wirklich beeindruckt, Mediawiki ist ja bereits eine super professionelle und nur schwer zu handhabende Software. Das vBulletin ist ein verkorkster Haufen von halb service und leicht und gemeine Geschichten im Code.

Die Standard Anleitung hat auf Anhieb funktioniert und der Login ist universell, dafür möchte ich mich ganz herzlich bedanken.

PRESS INSTALLLLLL!!!!

Vielen Dank
BZ

BRotondi
03-26-2009, 03:51 PM
Next Step: Hardlinks MediaWiki-Discussion -> vBulletin-Forum

In perhaps four hours I will have time to finish the following code, for this purpose: // Discussion-Forum no yet created?
$sql = 'SELECT `forumid` FROM `forum` WHERE
`parentid` = "[ID_ParentForum]" AND `title` = "[Page Title]";
(...)
If (..) {
//Create Forum (better but don’t know how to do:
// Create only when clicked, perhaps through Java-Script
}

// Create formating
// More than 0 Threads?
If (..) {
// Exist-Formated
} else {
// Not-Exist-Formated
}

// Create link
Does anyone already have some code for this? Any information which helps me save some time very appreciated - so perhaps I can finish this even this evening :)

In a first step the code has to be put in sthe style-php, where the Discussion-Link is beeing created. This point I already managed. The whole code/solution will be placed here.

Bruno

bjhuang
04-14-2009, 03:05 PM
does anyone have logout problem? i have to logout twice every session. for the first time, the logout link like /forum/login.php?do=logout... and it logged me out from forum but not wiki. after this, the logout link became like /wiki/index.php/special:logout ... then i'm completly logged out from wiki.

dutchbb
04-14-2009, 03:13 PM
does anyone have logout problem? i have to logout twice every session. for the first time, the logout link like /forum/login.php?do=logout... and it logged me out from forum but not wiki. after this, the logout link became like /wiki/index.php/special:logout ... then i'm completly logged out from wiki.

Same here, would be nice if the coder could resolve this bug.

bjhuang
04-14-2009, 05:28 PM
my solution. i'm not 100% sure what i'm doing. but it works.


[OPEN]
includes/AuthPlugin_vBSSO.php

[FIND]
return true;
}

function vBLoginForm($template) {

[ADD ABOVE]
else $user->logout();

dutchbb
04-15-2009, 10:56 AM
Yeah it works, ty. My only problem left is, when logging in on the wiki, I get redirected to http://forum.mydomain.com/Mainpage instead of http://wiki.mydomain.com/Mainpage , resulting in a 404 error on the former url.

NoeJeko
05-02-2009, 01:13 AM
2.2.0 - May 1, 2005
- Bugfix: Users are not logged out when logging out of the forum
- Bugfix: No longer requires modification to class_core.php
- Feature: Mediawiki 1.13.0+ supported (verified on 1.14.0 also)

I have unchecked the "support" box as, many of you have seen, I'm far too busy to provide timely support for this.

GoodOmens
05-03-2009, 03:08 AM
2.2.0 - May 1, 2005
- Bugfix: Users are not logged out when logging out of the forum
- Bugfix: No longer requires modification to class_core.php
- Feature: Mediawiki 1.13.0+ supported (verified on 1.14.0 also)

I have unchecked the "support" box as, many of you have seen, I'm far too busy to provide timely support for this.

Thanks for the update!

OneShot
05-04-2009, 05:25 PM
@Whoever can answer this : What steps do I have to undertake to get 2 Wikis to run in conjunction with just one vBulletin forum? BRotondi mentioned its possible, but sofar neither him nor anybody else as explained how to do this ...

Thanks in advance.

NoeJeko
05-06-2009, 06:32 AM
While I haven't tested it - it should be as simple as installing them in two different paths (i.e. /path1/wiki /path2/wiki or /wiki1 and /wiki2). The plugin should work (note *should* being used in the theoretical sense here).

proxx
05-07-2009, 04:54 PM
I just installed the latest version of mediawiki (1.14) on my vb 3.8.1

Followed all installation steps.

I get the following error on:
http://www.domain.com/wiki/?do=/wiki


Fatal error: Call to undefined method Language::factory() in /path/to/htdocs/wiki/includes/StubObject.php on line 122

Could someone help fix this pls.

NoeJeko
05-07-2009, 05:03 PM
Hi Proxx,

The syntax "/wiki/?do=/wiki" is foreign to me. Could you provide a link to your wiki?

Also, I've created a 3.8 thread for this modification:

MediaWiki/vBulletin Single Sign-On 3.8 thread (https://vborg.vbsupport.ru/showthread.php?t=213102)[/b]

Please use this thread for vB 3.7 discussion and the other for vB 3.8 discussion. Thanks!

BRotondi
05-10-2009, 06:32 PM
@OneShot (https://vborg.vbsupport.ru/member.php?u=10381):NoeJeko (https://vborg.vbsupport.ru/member.php?u=220266) is right: Simply do the same on Wiki 2 that you did on Wiki 1. (I think I already told it...) so you will have 2 Wikis (or more...) with all the same users: The ones of ONE vBulletin.

@NoeJoko: 1000 Thanks for the Update!

Bruno

steven s
05-11-2009, 01:43 AM
I've seen others having problems with vBadvanced and geek.
Has anyone got this mod to work with vBa and geek addons?

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vba_cmps_include_template.php on line 42

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vba_cmps_include_template.php on line 50

Warning: Invalid argument supplied for foreach() in [path]/includes/init.php(298) : eval()'d code on line 25

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vba_cmps_include_top.php on line 621

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in [path]/includes/vba_cmps_include_top.php on line 621

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vba_cmps_include_top.php(652) : eval()'d code on line 3

Warning: require_once(./geek/gal/includes/gal_class_core.php) [function.require-once]: failed to open stream: No such file or directory in [path]/global.php(400) : eval()'d code on line 94

Fatal error: require_once() [function.require]: Failed opening required './geek/gal/includes/gal_class_core.php' (include_path='/home/xxxxx/public_html/wiki:/home/xxxxx/public_html/wiki/includes:/home/xxxxx/public_html/wiki/languages:.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxx/public_html/forum/global.php(400) : eval()'d code on line 94

I also get a misconfiguration error with my .htaccess file containing php_flag magic_quotes_gpc off

Without the magic quotes off, I get the above errors.

bitwise2000
06-04-2009, 02:36 AM
Almost working...

I'm using a subdomain (wiki.penturners.org) so I had to set the forum cookie DOMAIN to penturners.org along with setting the cookie PATH to "/"

The wiki logo redirect is is going to:
http://wiki.penturners.org/index.php/Main_Page

but it should be going to:
http://wiki.penturners.org/index.php?title=Main_Page

I'm new to MW... is that a config setting or htaccess or what?

Thanks

rexford.kim
08-24-2009, 06:03 PM
When I try to use the MediaWiki/vBulletin Single Sign-On and try to edit the MediaWiki pages I get this error from MediaWiki and I get Apache errors for PHP. If I do not use the Single Sign-On edits to the MediaWiki page go through fine.

I CANNOT edit the mediawiki or save preferences with the Single Sign-On installed. I did the /includes/User.php edit but I still cannot EDIT!

Open wiki/includes/User.php FIND:
PHP Code:
define( 'EDIT_TOKEN_SUFFIX', '+\\' );
Replace with:
PHP Code:
define( 'EDIT_TOKEN_SUFFIX', '+#+' );

How do you get rid of the PHP errors concerning the CWD error!?!?!?

[Wed Aug 19 17:47:02 2009] [error] [client 10.15.15.41] PHP Notice: Constant CWD already defined in /var/www/html/forum/global.php on line 16, referer: http://www.website.com/wiki/index.ph...&action=submit


Sorry! We could not process your edit due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in.

Posted Solution on MediaWiki that does not work for me.
Assuming you get this error even when you do have a seemingly valid logon session:

Check if /var/lib/php5 is writable and not readable for user and world ( # chmod 733 /var/lib/php5 )
Check to see if your session.save_path value in php.ini is valid and writable to the webserver - PHP configuration.
Check to see if there is enough disk space.

After making changes restart Apache:

/etc/init.d/httpd restart

I get Apache errors for PHP:

[Wed Aug 19 17:47:02 2009] [error] [client 10.15.15.41] PHP Notice: Use of undefined constant VB_SYSTEM_PATH - assumed 'VB_SYSTEM_PATH' in /var/www/html/wiki/LocalSettings.php on line 28, referer: http://www.website.com/wiki/index.php?title=Main_Page&action=submit

[Wed Aug 19 17:47:02 2009] [error] [client 10.15.15.41] PHP Notice: Constant CWD already defined in /var/www/html/forum/global.php on line 16, referer: http://www.website.com/wiki/index.php?title=Main_Page&action=submit

[Wed Aug 19 17:47:02 2009] [error] [client 10.15.15.41] PHP Notice: Use of undefined constant VB_SYSTEM_PATH - assumed 'VB_SYSTEM_PATH' in /var/www/html/wiki/LocalSettings.php on line 28, referer: http://www.website.com/wiki/index.php?title=Main_Page&action=submit

[Wed Aug 19 17:47:02 2009] [error] [client 10.15.15.41] PHP Notice: Constant CWD already defined in /var/www/html/forum/global.php on line 16, referer: http://www.website.com/wiki/index.php?title=Main_Page&action=submit

NoeJeko
09-16-2009, 08:31 PM
rexford.kim,

You need to disable magic_quotes_gpc as stated in the readme file. If you don't you're going to need to make an edit to class_core.php of vBulletin but I don't suggest that route. Disabling GPC magic quotes will fix your session error.

As far as the warnings you can edit global.php to include an "if (!defined ('CWD'))" before the CWD definition but I see no way to do this with the extention. They're annoying but harmless.

Daryn
10-23-2009, 12:36 AM
Hey there.

I just got this installed into 3.8.4.

Two things I'm wondering:

First, I think I've configured it correctly, so I'm wondering if it is only supposed to autologin when someone goes to the Wiki via the forums, not directly?
And second, even after importing the product and setting the path and title, I still only see Unknown Location in the Who's Online list.

Could you clarify those points for me?

Thanks.

bradbeattie
11-02-2009, 05:42 PM
I have this installed with vBulletin 3.8.4p1 and MediaWiki 1.15.1. It works well enough, but there's one tiny hiccup. Something related to Memcache is causing MediaWiki to forget about its extensions. I get an error like "Invalid tag extension name: myextension". Haven't yet found a solution to this, but I'm looking.

bradbeattie
11-02-2009, 06:29 PM
I have this installed with vBulletin 3.8.4p1 and MediaWiki 1.15.1. It works well enough, but there's one tiny hiccup. Something related to Memcache is causing MediaWiki to forget about its extensions. I get an error like "Invalid tag extension name: myextension". Haven't yet found a solution to this, but I'm looking.

Be careful not to have anything within your vBulletin skin that calls back to MediaWiki by requiring LocalSettings.php. Bad things happen.

azn_romeo_4u
11-10-2009, 08:51 PM
Is it me or mw usergroups dont save when you try to edit a user rights in the media wiki?

gopalfreak
08-10-2010, 11:29 AM
Sry I would like to get this kind of User Login, too...

But:
I have now vBulletin 4.0.5 and an nearly up to date Wiki... Would it run under vb4?

TIA

Dexter_kcd
09-18-2010, 06:59 AM
Same question as above basically, I upgraded to version 4 (4.0.7 specifically) and now cannot use my wiki at all, pages just come up blank. What modifications would one have to make to get this working with vBulletin 4?

Edit: should point out that I had this working under 3.7 nicely for quite some time, so it has become disconnected with the upgrade.

Thanks,

Dexter...

djdrey
10-24-2010, 11:59 PM
Hey All,

It looks like many of you are upgrading to VB4 so this might not be of interest. For those still on older versions, I've gotten this up & running successfully using MW 1.16.0.

Additionally, I found that there is an incompatibility between this vb plugin and the mediawiki 'Lockdown' plugin (to restrict access to mediawiki namespaces by group and more - http://www.mediawiki.org/wiki/Extension:Lockdown). This caused Lockdown to incorrectly remove usergroups from integrated members.

I also noticed (correct me if I'm wrong), that this plugin DOES NOT remove groups from users if they lose privileges in vbulletin. eg. if I am a bureaucrat today but tomorrow get removed from the vbulletin group which is supposed to give me that mediawiki group - I never get removed until it happens manually in Mediawiki.

I've fixed these two issues. I'll PM the mod owner to see if he wants to incorporate my changes (but I'm understand I'm pretty late in the game ;) )

mexicanpizza
09-29-2011, 01:41 PM
Seems the auth plugin is incompatible with the latest version of
MediaWiki: http://www.mediawiki.org/wiki/Thread:Project:Support_desk/Fatal_Error_while_upgrading_from_1.16.5_to_1.17

Anyone know how to modify the extension to remove this compatibility issue? Thanks in advance!

Peter Walker
02-04-2013, 02:16 PM
Sorry, my post should have been made in the 3.8 thread, which I have now done. Please ignore or delete this post.