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)

Shawn385 01-11-2009 08:22 AM

Strange, I made the neccessary adjustments as mentioned in that post eg :

//$wgHooks['UserLogoutComplete'][] = 'QISSingleSignOnUserLogout';
$wgHooks['UserLoadFromSession'][] = 'vBSSOAutoAuth';
$wgHooks['UserLoginForm'][] = 'vBLoginForm';
$wgHooks['PersonalUrls'][] = 'set_personal_urls';

The strangest thing is...I did login and Wiki did show my name as being logged in, and then today when I opened it back up I couldn't log back in again, neiother can anyone else.

Above is the snipppet from the AuthPlugin_vBSSO.php

EDIT :

So I downgraded to MW 1.12.3 reinstalled this plugin...still getting the same thing, I login just fine, but WIKI doesn't show me as logged in. And I changed UserLoadFromSession back to AutoAuthenticate...

oninuva 01-11-2009 10:05 PM

So how do I fix this?

Fatal error: Call to a member function getID() on a non-object in /home/sitename/public_html/wiki/includes/AuthPlugin_vBSSO.php on line 315

Varsh 01-11-2009 10:51 PM

Did you take a look at how I did it all? If I recall I got that till I changed a few settings suggested before. My fix is a few posts back.

Digital Jedi 01-11-2009 11:57 PM

Quote:

Originally Posted by Shawn385 (Post 1708348)
Strange, I made the neccessary adjustments as mentioned in that post eg :

//$wgHooks['UserLogoutComplete'][] = 'QISSingleSignOnUserLogout';
$wgHooks['UserLoadFromSession'][] = 'vBSSOAutoAuth';
$wgHooks['UserLoginForm'][] = 'vBLoginForm';
$wgHooks['PersonalUrls'][] = 'set_personal_urls';

The strangest thing is...I did login and Wiki did show my name as being logged in, and then today when I opened it back up I couldn't log back in again, neiother can anyone else.

Above is the snipppet from the AuthPlugin_vBSSO.php

EDIT :

So I downgraded to MW 1.12.3 reinstalled this plugin...still getting the same thing, I login just fine, but WIKI doesn't show me as logged in. And I changed UserLoadFromSession back to AutoAuthenticate...

I'll post this again, but this is what fixed this in my case. Note that I did not "downgrade" as you did.

https://vborg.vbsupport.ru/showthrea...81#post1673281

tylneyt 01-12-2009 07:52 AM

metalguy639 you are my hero
Thank you

oninuva 01-12-2009 05:45 PM

Quote:

Originally Posted by Varsh (Post 1709082)
Did you take a look at how I did it all? If I recall I got that till I changed a few settings suggested before. My fix is a few posts back.

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;

Quote:

Database 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.

petchat 01-12-2009 06:53 PM

Quote:

Originally Posted by Digital Jedi (Post 1709142)

Working great on 3.8 using this method!

Cheers DJ :)

metalguy639 01-13-2009 12:40 AM

Quote:

Originally Posted by tylneyt (Post 1709444)
metalguy639 you are my hero
Thank you

no prob man.

raisun 01-13-2009 09:51 PM

I've got this mostly working on VB 3.7.3 / MW 13.3 as long as I disable another pluggin that I use. When I turn the other plugin on (GARS), I cannot get to the wiki and get this error:

Code:

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

Fatal error: require_once() [function.require]: Failed opening required './geek/gars/includes/gars_ignition.php' (include_path='/home/mouseinf/public_html/info/wiki:/home/mouseinf/public_html/info/wiki/includes:/home/mouseinf/public_html/info/wiki/languages:.:/usr/lib/php:/usr/local/lib/php') in /home/mouseinf/public_html/forums/global.php(360) : eval()'d code on line 41

From what I can tell, it looks like its looking in the wiki's include path for this file. So, I tried adding $VB_SYSTEM_PATH to the path in LocalSettings.php, but that doesn't seem to fix it. Any thoughts?

Thanks a lot!!

Varsh 01-14-2009 01:26 AM

Change require_once( "$IP/includes/AuthPlugin_vBSSO.php" ); to require_once( "/home/mouseinf/public_html/forums/includes/AuthPlugin_vBSSO.php" ); in your LocalSettings.php file.


All times are GMT. The time now is 11:36 AM.

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.01478 seconds
  • Memory Usage 1,746KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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