vb.org Archive

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

aciurczak 08-10-2009 10:51 PM

Reloaded wiki from scratch, built it from an empty database, and confirmed everything was working fine before added this mod. Added this mod by adding the few lines in the localsettings.php, uploaded the include files, and I keep getting this same error. New host is on Centos 5.3, PHP 5.3.0, MySQL 5.1.137.

Hmm, I'm wondering if it's because the new site doesn't have an actual domain pointing to it yet, and is only being referred to by IP address. (http://xxx.xxx.xxx.xxx/wiki). Perhaps everything is set up OK and when I actually move the domain over things will start working on their own. I can always hope. :)

aciurczak 08-11-2009 10:13 PM

No such luck. I moved over a domain so the wiki is being reference by an actual domain, and the error remains.

SuperGLS 08-12-2009 11:56 PM

Quote:

Originally Posted by NoeJeko (Post 1845905)
Hi, sorry for the late reply; I've been out of town and swamped with work. You need to either disable magic_quotes_gpc in php.ini or make the edit to .htaccess that's described in the instructions file.

I'm having the same EDIT TOKEN problem as him, but I do not know how to do what you have suggested. Can anyone help me with that? I created a file called php.ini and php5.ini and typed in:

php_flag magic_quotes_gpc off

And then uploaded it to the WIKI root folder. But do I need to do anything else? There wasn't any other files named php.ini or php5.ini anywhere else on my server.

I think this is the last hurdle for me. Thanks in advance to anyone that can help.

GoodOmens 08-13-2009 12:40 AM

Is your patch correct in Localsettings.php?

IE define( VB_SYSTEM_PATH, '' );

SuperGLS 08-13-2009 12:59 AM

Yes, everything works with this mod except for the ability to edit pages (any of the wiki pages).

I've actually since discovered a work around, but I don't know how smart it is. I changed the edit token information in the user.php file from

define( 'EDIT_TOKEN_SUFFIX', '+\\' );

TO

define( 'EDIT_TOKEN_SUFFIX', '+#+' );

I found this work around by looking at someone elses problems with integrating SMF and MW (rather than vB and MW). They ran into some problems with apostrophes ( ' ) turning into \\ but I haven't had the problem thus far.

Still, if I could get this working correctly I'd be happier I think.

For ref, my forum is www.elantraxd.com/forums and my wiki is www.elantraxd.com/wiki

centerius 08-13-2009 07:44 PM

Is there a way to disable the login screen when someone isn't logged in and simply display an error message on the wiki?

Right now if someone isn't logged in to vbulletin it displays the vbulletin login page. Instead of this, I want an error message brought up on the wiki saying something similar to "Please log in to the forum and refresh this page."

In addition, how can I make sure that only people logged in can see information the wiki (right now it seems the case, but I want to make sure).

This mod seems like the best option for integrating vB/Wikimedia. Thanks.

rexford.kim 08-19-2009 11:56 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.

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.

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', '+#+' );

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

BRotondi 08-20-2009 05:27 AM

Quote:

Originally Posted by centerius (Post 1866698)
In addition, how can I make sure that only people logged in can see information the wiki

This has to be set in the LocalSettings.php and has nothing to do with this mod. Have a look at the MediaWiki-Wiki.

Bruno

rexford.kim 08-24-2009 06:01 PM

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

insaatforumu 08-29-2009 10:07 PM

my forum http://forum.yapisal.net
My Wiki http://sozluk.yapisal.net

how can i do my setting?
i couldnt do it


All times are GMT. The time now is 11:47 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.01346 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
  • (2)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