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)

Coleccromos 04-27-2010 02:46 PM

Quote:

Originally Posted by AfterWorldForum (Post 2028106)
It seems as if you nowhere defined the VB_SYSTEM_PATH variable, and therefore receive the error. Let me show you parts of my LocalSettings.php. My forum is on www.entropiaplanets.com/forums. My wiki is accessible through www.entropiaplanets.com/wiki, but is actually physically located in www.entropiaplanets.com/w. (Note that I also have use a VPS, and the path on the server is similar to yours (/var/www/vhosts/entropiaplanets.com/httpdocs/w).

My LocalSettings.php has the following lines:

Code:

if( defined( 'MW_INSTALL_PATH' ) ) {
    $IP = MW_INSTALL_PATH;
} else {
    $IP = dirname( __FILE__ );
}

$path = array( $IP, "$IP/includes", "$IP/languages" );
set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR . get_include_path() );

require_once( "$IP/includes/DefaultSettings.php" );
define( VB_SYSTEM_PATH, '/var/www/vhosts/entropiaplanets.com/httpdocs/forums' );
require_once( "$IP/includes/AuthPlugin_vBSSO.php" );

If you do not have the red line, add it, and change from entropiaplents.com to cromosdefutbol.com.

I have to admit that I really cannot guess as to the error regarding the includes of the AuthPlugin line, but see if my setup gives you something to work with. Feel free to post the results here.

Thanks for your help.

At the moment I have a different error above:

Code:

Parse error:  syntax error, unexpected T_IF in /var/www/vhosts/cromosdefutbol.com/httpdocs/mediawiki/LocalSettings.php  on line 30
We need to call the directory wiki? I have my directory called mediawiki

Coleccromos 04-28-2010 11:20 AM

Got it work with my forum but when I access mediawiki out the following error lines

http://www.cromosdefutbol.com/mediaw...gina_Principal

Code:

Use of undefined constant VB_SYSTEM_PATH - assumed 'VB_SYSTEM_PATH' in /var/www/vhosts/cromosdefutbol.com/httpdocs/mediawiki/LocalSettings.php on line 26
 Constant CWD already defined in /var/www/vhosts/cromosdefutbol.com/httpdocs/cromo/global.php on line 16


AfterWorldForum 04-29-2010 05:37 AM

Quote:

Originally Posted by Coleccromos (Post 2028503)
Got it work with my forum but when I access mediawiki out the following error lines

http://www.cromosdefutbol.com/mediaw...gina_Principal

Code:

Use of undefined constant VB_SYSTEM_PATH - assumed 'VB_SYSTEM_PATH' in /var/www/vhosts/cromosdefutbol.com/httpdocs/mediawiki/LocalSettings.php on line 26
 Constant CWD already defined in /var/www/vhosts/cromosdefutbol.com/httpdocs/cromo/global.php on line 16


Maybe it's easier if you post the contents of your localsettings.php file here. Just substitute the security information (servername, account, password, database, etc) with asterisks (i.e. *******).

That way we could see what the lines referred to are.

Is it possible that somewhere in the file (below the red line you recently added or changed) have a reference to VB_SYSTEM_PATH but surrounded with single quotes (')?

As for the CWD error, earlier in this thread someone posted a similar issue, but I did not sede any replies to it, or solutions offered for it. I never saw the error myself, so I cannot really help you figure out exactly what causes this.

I'm starting to think the two errors might actually be related, with the first one somehow preventing the proper vB files to be loaded, which causes the second problem. In addition to the localsettings, could you please also copy/paste the contents of WIKI_PATH/includes/AuthPlugin_vBSSO.php ? That is where all the vB stuff is called. Did you happen to make any changes to that file? (I think I use an older version of the file, so maybe some of the changes made in the last release changed the behaviour).

Coleccromos 05-05-2010 11:41 AM

Thanks for your time AfterWorldForum

This is the LocalSettings
Code:

<?php

# This file was automatically generated by the MediaWiki installer.
# If you make manual changes, please keep track in case you need to
# recreate them later.
#
# See includes/DefaultSettings.php for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.
#
# Further documentation for configuration settings may be found at:
# http://www.mediawiki.org/wiki/Manual:Configuration_settings

# If you customize your file layout, set $IP to the directory that contains
# the other MediaWiki files. It will be used as a base to locate files.
if( defined( 'MW_INSTALL_PATH' ) ) {
    $IP = MW_INSTALL_PATH;
} else {
    $IP = dirname( __FILE__ );
}

$path = array( $IP, "$IP/includes", "$IP/languages" );
set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR . get_include_path() );

require_once( "$IP/includes/DefaultSettings.php" );
define( VB_SYSTEM_PATH, '/var/www/vhosts/cromosdefutbol.com/httpdocs/cromo' );
require_once( "$IP/includes/AuthPlugin_vBSSO.php" );
# If PHP's memory limit is very low, some operations may fail.
# ini_set( 'memory_limit', '20M' );

if ( $wgCommandLineMode ) {
    if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) {
        die( "This script must be run from the command line\n" );
    }
}
## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;

$wgSitename        = "Cromopedia";

## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs please see:
## http://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptPath      = "/mediawiki";
$wgScriptExtension  = ".php";

## UPO means: this is also a user preference option

$wgEnableEmail      = true;
$wgEnableUserEmail  = true; # UPO

$wgEmergencyContact = "*****";
$wgPasswordSender = "******";

$wgEnotifUserTalk = true; # UPO
$wgEnotifWatchlist = true; # UPO
$wgEmailAuthentication = true;

## Database settings
$wgDBtype          = "mysql";
$wgDBserver        = "localhost";
$wgDBname          = "*****";
$wgDBuser          = "****";
$wgDBpassword      = "****";

# MySQL specific settings
$wgDBprefix        = "";

# MySQL table options to use during installation or update
$wgDBTableOptions  = "ENGINE=InnoDB, DEFAULT CHARSET=binary";

# Experimental charset support for MySQL 4.1/5.0.
$wgDBmysql5 = true;

## Shared memory settings
$wgMainCacheType = CACHE_ACCEL;
$wgMemCachedServers = array();

## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads      = false;
# $wgUseImageMagick = true;
# $wgImageMagickConvertCommand = "/usr/bin/convert";

## If you use ImageMagick (or any other shell command) on a
## Linux server, this will need to be set to the name of an
## available UTF-8 locale
# $wgShellLocale = "en_US.UTF-8";

## If you want to use image uploads under safe mode,
## create the directories images/archive, images/thumb and
## images/temp, and make them all writable. Then uncomment
## this, if it's not already uncommented:
# $wgHashedUploadDirectory = false;

## If you have the appropriate support software installed
## you can enable inline LaTeX equations:
$wgUseTeX          = false;

$wgLocalInterwiki  = strtolower( $wgSitename );

$wgLanguageCode = "es";

$wgSecretKey = "*******";

## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook':
$wgDefaultSkin = 'monobook';

## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
# $wgEnableCreativeCommonsRdf = true;
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "";
$wgRightsText = "";
$wgRightsIcon = "";
# $wgRightsCode = ""; # Not yet used

$wgDiff3 = "";

# When you make changes to this configuration file, this will make
# sure that cached pages are cleared.
$wgCacheEpoch = max( $wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) );

Edited to eliminate the code AuthPlugin_vBSSO Archive
Showed a modification in the response 164 and solved the problem of cwd

gamerfu 05-06-2010 09:55 AM

might be shojin (sp?) causing CWD error?

AfterWorldForum 05-11-2010 04:52 PM

Quote:

Originally Posted by Coleccromos (Post 2032073)
Thanks for your time AfterWorldForum

This is the LocalSettings
...
Edited to eliminate the code AuthPlugin_vBSSO Archive
Showed a modification in the response 164 and solved the problem of cwd

Strangely enough, I seem to have the same errors on my end.

Could you please elaborate exactly what you did to remove the CWD error?

Coleccromos 05-13-2010 11:22 AM

Quote:

Originally Posted by AfterWorldForum (Post 2035257)
Strangely enough, I seem to have the same errors on my end.

Could you please elaborate exactly what you did to remove the CWD error?

What I did was copy the contents that are in the 164 response
https://vborg.vbsupport.ru/showpost....&postcount=164


Copy and paste the contents of response in the AuthPlugin_vBSSO

AfterWorldForum 05-14-2010 01:00 PM

Quote:

Originally Posted by Coleccromos (Post 2036283)
What I did was copy the contents that are in the 164 response
https://vborg.vbsupport.ru/showpost....&postcount=164


Copy and paste the contents of response in the AuthPlugin_vBSSO


Thanks for your reply. If I read correctly, the contents of that were meant for vB4, though, right?

Coleccromos 05-15-2010 02:35 PM

Yes, it seems.

I tried this if it worked and it was.


By looking for evidence and I find that when you install mediawiki gives me the following error

  • Warning
    : is_dir() [function.is-dir]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/cromosdefutbol.com/httpdocs:/tmp) in /var/www/vhosts/cromosdefutbol.com/httpdocs/wiki/config/index.php on line 441
  • Warning: Your session.save_path value (/var/lib/php/session) appears to be invalid or is not writable. PHP needs to be able to save data to this location for correct session operation.

Dontom 05-15-2010 04:29 PM

Quote:

Originally Posted by Dontom (Post 1942391)
Same here, too, also after the latest patch with the changed salt in vb's functions.php I get the same message.

when saving an edit or adding a new page I get the 'token_suffix_mismatch' message:
=> "'''Your edit has been rejected because your client mangled the punctuation characters in the edit token.'''

Any help is appreciated!

ok, finally solved it - in php.ini magic_quotes_gpc was On - set it to off, now it works again...


All times are GMT. The time now is 10:23 PM.

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.01413 seconds
  • Memory Usage 1,788KB
  • 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_code_printable
  • (6)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