Simple Machines Blogs > Developers' Blog

SMF MediaWiki integration released

<< < (10/35) > >>

OvermindDL1:

--- Quote from: planet9 on April 02, 2012, 08:05:42 AM ------
I've had to modify Auth_SMF.php to not check "isLoggedIn()" when using $wgSMFDenyGroupID


--- Code: ---// Lastly check to see if they are not banned and allowed to login
if (!$wgAuth->isNotBanned($ID_MEMBER) || !$wgAuth->canLogin())
{
#if($user->isLoggedIn()) // COMMENTED OUT THIS LINE
$user->logout();
return true;
}

--- End code ---

Otherwise the error I see is:

--- Code: ---Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/public_html/wiki/includes/User.php on line 2295

Warning: array_unique() [function.array-unique]: The argument should be an array in /home/public_html/wiki/includes/User.php on line 2295

Warning: Invalid argument supplied for foreach() in /home/public_html/wiki/includes/User.php on line 3475

Warning: Invalid argument supplied for foreach() in /home/public_html/wiki/includes/User.php on line 3484
MediaWiki internal error.

--- End code ---

--- End quote ---
Exact same error here on the same lines and all (also had a stack trace that he did not display), but his fix fixed my issue.  What is the problem that this is caused by?

However, I have a few new bugs.

First bug is that when clicking Log In from the wiki takes me to the forum page, as expected, but when logging in I end up at the main page of the forum instead of back at the last page that I was at in the wiki.

Second bug is that when clicking Log out from the wiki logs me out of the wiki, some how, but without logging me out of the forum, and I cannot get the wiki to see me logged in again until I clear my cookies.

My SMF version is 2.0.2 with the latest integration code as of an hour ago.

OvermindDL1:
New error now, and this was working last night, no changes since then.  Anytime anyone tries to post anything to the wiki, whether Admin or normal editor, when they hit submit in the edit box they get a "Sorry! We could not process your edit due to a loss of session data. Please try again. If it still does not work, try logging out and logging back in. " error, and yet it was just working last night.  Thoughts?  Googled around for the error but they all point to php session errors, which is not an issue, I tested quite a variety of different settings, full rw access is allowed, tried other directories, etc...

Liam_michael:

--- Quote from: OvermindDL1 on April 27, 2012, 06:35:29 PM ---New error now, and this was working last night, no changes since then.  Anytime anyone tries to post anything to the wiki, whether Admin or normal editor, when they hit submit in the edit box they get a "Sorry! We could not process your edit due to a loss of session data. Please try again. If it still does not work, try logging out and logging back in. " error, and yet it was just working last night.  Thoughts?  Googled around for the error but they all point to php session errors, which is not an issue, I tested quite a variety of different settings, full rw access is allowed, tried other directories, etc...

--- End quote ---

That's normal, especially if your wiki has it's own subdomain. If anything, click publish again and it should work.

OvermindDL1:

--- Quote from: Liam_michael on April 27, 2012, 07:59:14 PM ---
--- Quote from: OvermindDL1 on April 27, 2012, 06:35:29 PM ---New error now, and this was working last night, no changes since then.  Anytime anyone tries to post anything to the wiki, whether Admin or normal editor, when they hit submit in the edit box they get a "Sorry! We could not process your edit due to a loss of session data. Please try again. If it still does not work, try logging out and logging back in. " error, and yet it was just working last night.  Thoughts?  Googled around for the error but they all point to php session errors, which is not an issue, I tested quite a variety of different settings, full rw access is allowed, tried other directories, etc...

--- End quote ---

That's normal, especially if your wiki has it's own subdomain. If anything, click publish again and it should work.

--- End quote ---
Same domain,
http://site/forum
http://site/wiki (wiki is the short url, /w/ is the actual storage location).
I got it working somehow by just restarting apache, no clue what was up...

Still have the other errors with logging in misredirection, logging out being ghosted, etc...

rickyherbal:
help me please :(

http://www.simplemachines.org/community/index.php?topic=475177.0

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version