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)

GoodOmens 11-19-2008 02:48 PM

Ok a new bug popped up recently:

Users can no longer edit ANYTHING. I get the following error:

Quote:

Your edit has been rejected because your client mangled the punctuation characters in the edit token. The edit has been rejected to prevent corruption of the page text. This sometimes happens when you are using a buggy web-based anonymous proxy service.
If I remove the plugin everything works fine.

No changes have been made by me so I'm really scratching my head on this one.

Only thing I can think of is changes in latest vbulletin.

NoeJeko 11-19-2008 02:54 PM

it sounds like you didn't make the required changes to class_core.php or the changes were overwritten by a vB upgrade. Remember if you upgrade your forum you must reapply the changes to class_core.php.

Posted from my Blackberry, please excuse spelling.

GoodOmens 11-19-2008 02:58 PM

Quote:

Originally Posted by NoeJeko (Post 1668701)
it sounds like you didn't make the required changes to class_core.php or the changes were overwritten by a vB upgrade. Remember if you upgrade your forum you must reapply the changes to class_core.php.

Posted from my Blackberry, please excuse spelling.

That is exactly what it was. I forgot a manual edit of the vbulletin files was necessary. Thanks for the quick reply - everything is working perfectly again!

Consider this a user error :o

NoeJeko 11-20-2008 12:16 AM

Hopefully they'll work something into vBulletin so that I don't have to do this in the future. I posted in the "hook requests" forum on vb.com but it isn't really a hook I'm after... more like an option to disable the input cleaner for certain scripts.

seoranter 11-21-2008 12:30 PM

Quote:

Originally Posted by shikareez (Post 1640896)
From MW 1.13+ the "AutoAuthenticate" Hook is renamed to "UserLoadFromSession". So just follow all the instruction and at all, just edit the hook name to "UserLoadFromSession" at near the end of AuthPlugin_vBSSO.php.

Thanks a million for posting this! Can we have this updated / included in the latest version of the plugin, too, please? Perhaps switching between userloadfromsession and autoauthenticate based on mw version at install / runtime?

In the meantime, I'll mark as installed and satisfied :)

leitel 11-21-2008 04:36 PM

I have it running now. This is an awesome hack. I did notice though that in vB when looking at a user and where there are I get: Current Activity: Unknown Location /index.php/Erythropoietin_(EPO) .
My wiki is on a sub.domain although URLs to domain.com/wiki will resolve to the sub domain.
I have tried various "Wiki Path" in the vB options.
So basically, the Who's On doesn't see the path of the wiki and the link DOES point to the correct wiki page however, it is without the base wiki domain.

NoeJeko 11-21-2008 05:52 PM

Quote:

Originally Posted by seoranter (Post 1669998)
Thanks a million for posting this! Can we have this updated / included in the latest version of the plugin, too, please? Perhaps switching between userloadfromsession and autoauthenticate based on mw version at install / runtime?

In the meantime, I'll mark as installed and satisfied :)

Yeah, it'll be implemented but I need to upgrade my own wiki to 1.13 before I can reasonably support it on that platform. I've been swamped with other projects - that's why I've just dropped by to provide quick support when I can but it will get done by the end of the year.

Quote:

Originally Posted by leitel (Post 1670154)
I have it running now. This is an awesome hack. I did notice though that in vB when looking at a user and where there are I get: Current Activity: Unknown Location /index.php/Erythropoietin_(EPO) .
My wiki is on a sub.domain although URLs to domain.com/wiki will resolve to the sub domain.
I have tried various "Wiki Path" in the vB options.
So basically, the Who's On doesn't see the path of the wiki and the link DOES point to the correct wiki page however, it is without the base wiki domain.

That's odd - I may have an idea on how to get around this but as it isn't security-related I'll queue it with the above request. Keep in mind, your users cannot see the "Unknown Location" - just staff (we had a few mods on our board that didn't know that).

Thanks to everyone for your support and using this mod.

NoeJeko 11-21-2008 06:13 PM

Double post ftw.

I just realized what's causing this and /facepalm for not realizing it beforehand.

You can add this line to the .htaccess file in your wiki directory and then the change to class_core.php is not necessary:

php_flag magic_quotes_gpc off

If you don't have a .htaccess file in your wiki directory, just create it. This applies to servers running Apache only. Alternatively, you can disable magic_quotes_gpc in php.ini.

This feature is depreciated as of PHP 6.0.0 anyway, so it makes sense to start coding with the mentality that your input no longer has this shield. I'll update the installation instructions when I make the next major update; it doesn't make sense to advertise an update for this minor change. Future versions will not require the code change.

BRotondi 11-23-2008 02:56 PM

Sorry for asking the same, but I cannot find the solution in the thread: Does this Hack work with vBulletin 3.7.4 and MediaWiki 1.13?

Login via Wiki does not work... (Redirecting to vB, but nothing happens. I restored the original Userlogin.php to be able to login...)

Thanks for a short info.
Bruno

NoeJeko 11-23-2008 03:03 PM

vB 3.7.4 just came out recently; I haven't had time to test this plugin against it.


All times are GMT. The time now is 09:29 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.01386 seconds
  • Memory Usage 1,747KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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