vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Integration with vBulletin - MediaWiki/vBulletin Single Sign-On (https://vborg.vbsupport.ru/showthread.php?t=191186)

Jaxel 02-23-2009 12:46 PM

Quote:

Originally Posted by Jaxel (Post 1745995)
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:
PHP Code:

define'EDIT_TOKEN_SUFFIX''+\\' ); 

Replace with:
PHP Code:

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/ind...ge&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

Quote:

Originally Posted by Dexter_kcd (Post 1701067)
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

Quote:

Originally Posted by Radek125 (Post 1752028)
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...

Quote:

Originally Posted by Jaxel (Post 1752263)
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

Quote:

Originally Posted by System69 (Post 1757913)
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....&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
- The options menu of mmog 2.1: http://SinnImLeben.net/external/MMog_2.1_Options.jpg (high resolution)

Greetings, Bruno

ndahiya 03-07-2009 12:21 AM

Quote:

Originally Posted by System69 (Post 1757835)
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....&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

Quote:

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:
PHP Code:

// 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

Quote:

Originally Posted by bjhuang (Post 1791074)
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.

Code:

[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

Quote:

Originally Posted by NoeJeko (Post 1802828)
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[/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:NoeJeko 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?

HTML Code:

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.ph...&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.ph...&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.ph...&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.ph...&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

Quote:

Originally Posted by bradbeattie (Post 1909491)
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...


All times are GMT. The time now is 11:40 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.01582 seconds
  • Memory Usage 1,865KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (3)bbcode_php_printable
  • (10)bbcode_quote_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
  • (40)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