Coder Social home page Coder Social logo

Comments (5)

jdarwood007 avatar jdarwood007 commented on July 30, 2024

https://subdomain.domain.com/forum
then I click the bookmark for the wiki page
https://subdomain.domain.com/**wiki**
https://subdomain.domain.com/index.php?action=login;return_hash=HASH_VALUE_HERE;return_to=http%3A%2F%2Fsubdomain.domain.com%2F**wiki**%2Findex.php%3Ftitle%3DMain+Page%26board%3Dredirect

Looks like your $boardurl in SMF may be wrong. Check your Settings.php in SMF.

from smf-mw-auth.

ThermoMan avatar ThermoMan commented on July 30, 2024

From the Settings.php

########## Forum Info ##########
$mbname = 'NAME';		# The name of your forum.
$language = 'english';		# The default language file set for the forum.
$boardurl = 'https://subdomain.domain.com/forum';		# URL to your forum's folder. (without the trailing /!)
$webmaster_email = '[email protected]';		# Email address to send emails from. (like [email protected].)
$cookiename = 'SMFCookie999';		# Name of the cookie to set for authentication.

I think I'm going to archive these files and attempt a re-install.

EDIT: OK, reinstalled (and reinstalled the wiki extension) and still have the same issue. The URL, after clicking "log in" on the wiki is malformed.

Also, I'm not expecting to need to click log in on the wiki, I am already logged in on the forum, so why am I not just let into the wiki?

I have to be missing something obvious here unless wiki 1.36.1 changed something that broke the extension.

from smf-mw-auth.

ThermoMan avatar ThermoMan commented on July 30, 2024

In the settings I have enabled "Use subdomain independent cookies" and "Force cookies to be secure" (I have an https only site - the hosting domain redirects http to https automatically)

Additionally, I set up debugging with
$wgDebugLogFile = "/some/private/path/mediawiki.log";
and found this

[ForumSessionProvider] Constructor initialized.
[ForumSessionProvider] Loading Forum System Settings.
[ForumSessionProvider] Configuration File missing or not readable. Tried to load at 
[ForumSessionProvider] Forum Software Integraiton invalid.
[ForumSessionProvider] Unable to provide session, database not loaded.

This might be the clue I need - that null path in the config file name.

(typo in "Integraiton" - should read "Integration") ;)

from smf-mw-auth.

ThermoMan avatar ThermoMan commented on July 30, 2024

OK, I believe I have found the root problem.

So in the ForumSsoProvider.php file
In the loadFSSettings() function

The variable named $wgFSPPath was not set.

So in LocalSettings.php I set it to
$wgFSPPath = "../forum";

Should this code be looking at $wgSMFPath instead? That variable already exists and already contains the same value..

from smf-mw-auth.

jdarwood007 avatar jdarwood007 commented on July 30, 2024

Fixed with #18

from smf-mw-auth.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.