vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Integration with vBulletin - [obsolete!] vbMediaWiki 4.0.2 RC 3 (https://vborg.vbsupport.ru/showthread.php?t=235342)

bepe 02-20-2010 08:40 AM

Quote:

Originally Posted by chrisdowns (Post 1987121)
Hi

This is the error im getting


Code:

Warning: require_once(./includes/functions_user.php) [function.require-once]: failed to open stream: No such file or directory in [path]/includes/class_bootstrap.php(283) : eval()'d code on line 3

Fatal error: require_once() [function.require]: Failed opening required './includes/functions_user.php' (include_path='/home/XXXXXX/public_html/forums/wiki:/home/XXXXXX/public_html/forums/wiki/includes:/home/XXXXXX/public_html/forums/wiki/languages:.:/usr/lib/php:/usr/local/lib/php') in /home/XXXXXX/public_html/forums/includes/class_bootstrap.php(283) : eval()'d code on line 3


Forum - http://theclaypedia.com/forums/
Wiki http://theclaypedia.com/forums/wiki

where u getting the error? ... page looks fine for me

chrisdowns 02-20-2010 08:44 AM

Quote:

Originally Posted by bepe (Post 1987123)
where u getting the error? ... page looks fine for me

As soon as i login

bepe 02-20-2010 08:46 AM

Quote:

Originally Posted by chrisdowns (Post 1987125)
As soon as i login

ok... got it

also got this error:
Quote:

Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home/claypedi/public_html/forums/wiki/LocalSettings.php on line 126

Warning: Division by zero in /home/claypedi/public_html/forums/wiki/LocalSettings.php on line 126

Warning: Division by zero in /home/claypedi/public_html/forums/wiki/LocalSettings.php on line 126

Warning: Division by zero in /home/claypedi/public_html/forums/wiki/LocalSettings.php on line 126

Warning: Division by zero in /home/claypedi/public_html/forums/wiki/LocalSettings.php on line 126

Warning: chdir() [function.chdir]: Permission denied (errno 13) in /home/claypedi/public_html/forums/wiki/includes/AuthPlugin_vbMediaWiki.php on line 35

Warning: require_once(./global.php) [function.require-once]: failed to open stream: No such file or directory in /home/claypedi/public_html/forums/wiki/includes/AuthPlugin_vbMediaWiki.php on line 44

Fatal error: require_once() [function.require]: Failed opening required './global.php' (include_path='/home/claypedi/public_html/forums/wiki:/home/claypedi/public_html/forums/wiki/includes:/home/claypedi/public_html/forums/wiki/languages:.:/usr/lib/php:/usr/local/lib/php') in /home/claypedi/public_html/forums/wiki/includes/AuthPlugin_vbMediaWiki.php on line 44
... not sure where the problem is...
Might be a path that is set wrong...in your case you need:
define( VB_INSTALL_PATH, '..' );
the wiki path from the admin panel should be ok I think

Did u edit the User.php?

chrisdowns 02-20-2010 08:48 AM

Quote:

Originally Posted by bepe (Post 1987127)
ok... got it

also got this error:


... not sure where the problem is...
Might be a path that is set wrong...in your case you need:
define( VB_INSTALL_PATH, '..' );
the wiki path from the admin panel should be ok I think

Even with define( VB_INSTALL_PATH, '..' ); set as this it still shows error

bepe 02-20-2010 08:49 AM

Quote:

Originally Posted by chrisdowns (Post 1987131)
Even with define( VB_INSTALL_PATH, '..' ); set as this it still shows error

Did u edit the User.php?

chrisdowns 02-20-2010 08:50 AM

Quote:

Originally Posted by bepe (Post 1987132)
Did u edit the User.php?

No i;ll do that now

bepe 02-20-2010 08:51 AM

Quote:

Originally Posted by chrisdowns (Post 1987133)
No i;ll do that now

NO!!! you dont need to... I added that file to beta 8 already

bepe 02-20-2010 08:52 AM

can u tell me what is here:
LocalSettings.php on line 126

chrisdowns 02-20-2010 08:58 AM

Quote:

Originally Posted by bepe (Post 1987138)
can u tell me that is here:
LocalSettings.php on line 126

Currently
define( VB_INSTALL_PATH, '..' );

I've also tried
define( VB_INSTALL_PATH, './wiki' );
define( VB_INSTALL_PATH, '/home/claypedi/public_html/forums/wiki' );

bepe 02-20-2010 09:03 AM

Quote:

Originally Posted by chrisdowns (Post 1987141)
Currently
define( VB_INSTALL_PATH, '..' );

I've also tried
define( VB_INSTALL_PATH, './wiki' );
define( VB_INSTALL_PATH, '/home/claypedi/public_html/forums/wiki' );

there needs to be the path to the forum... so the other two are wrong for sure

any way that you can set me up an ftp account with write access to the forum folder? ... if possible, send it via PM

bepe 02-20-2010 10:23 AM

Quote:

Originally Posted by chrisdowns (Post 1987121)
Hi

This is the error im getting


Code:

Warning: require_once(./includes/functions_user.php) [function.require-once]: failed to open stream: No such file or directory in [path]/includes/class_bootstrap.php(283) : eval()'d code on line 3

Fatal error: require_once() [function.require]: Failed opening required './includes/functions_user.php' (include_path='/home/XXXXXX/public_html/forums/wiki:/home/XXXXXX/public_html/forums/wiki/includes:/home/XXXXXX/public_html/forums/wiki/languages:.:/usr/lib/php:/usr/local/lib/php') in /home/XXXXXX/public_html/forums/includes/class_bootstrap.php(283) : eval()'d code on line 3


Forum - http://theclaypedia.com/forums/
Wiki http://theclaypedia.com/forums/wiki

define( VB_INSTALL_PATH, '/home/XXXXXX/public_html/forums' );
Path ./wiki

ok, problem was an avatar plugin that had an includ command inside a function... I fixed that problem and that fix will also be part of the next beta

Big-Pete 02-20-2010 10:50 AM

Quote:

Originally Posted by bepe (Post 1986729)
Are u using 4.0.2 now?
... anyway, I can not think of anything in my mod that could cause that ...

Hi bepe, Im still on 4.0.1, not sure whether to goto 4.0.2 or wait for 4.0.3 because of all the new reported issues that 4.0.2 has introduced..

bepe 02-20-2010 11:03 AM

Quote:

Originally Posted by Big-Pete (Post 1987201)
Hi bepe, Im still on 4.0.1, not sure whether to goto 4.0.2 or wait for 4.0.3 because of all the new reported issues that 4.0.2 has introduced..

Should not be a problem, they did not change something related to this product... or at least not something that would break my code

I will continue with 4.0.2 .. but I'm sure it will still work with 4.0.1

nitra1000 02-20-2010 03:20 PM

HI I have vbseo and rewrite urls on... so I have to drop a htaccess in /wiki to turn "rewrite off".

I noticed that after i had completed your install steps, it just didn't work... I'm going through it all again but do you think this could be an issue because of the rewrite rule?

Thanks!

p.s anyone with VBseo got this installed?

HoSStiA 02-20-2010 03:47 PM

Quote:

Originally Posted by bepe (Post 1987090)
Quote:

Originally Posted by HoSStiA
PHP Code:

@mysql_query('SET NAMES utf8'); 


Not exactly sure what this does, I think it's more for setting the charset of the database, but not of the connection... anyway, it did not help

If needed I'm converting the strings to the forum charset now, should be fine

By default variable $config['Mysqli']['charset'] in /forum/config.php is commented. But in cases where the vBulletin encoding does not match with the MySQL default encoding, this variable must be uncommented and set to desired value (for example 'utf8', if MySQL uses the default latin1-swedish-ci).

Keep this in mind when vBMediaWiki's search module connecting to a database with direct function mysql_connect (сompare with the parameters db_connect, called from /forum/includes/class_core.php ). If $config['Mysqli']['charset'] exists, SQL inctruction "SET NAMES '<charset>'" must be executed after connecting to the database to set the properly encoding.

HoSStiA 02-20-2010 03:59 PM

Quote:

Originally Posted by nitra1000 (Post 1987385)
HI I have vbseo and rewrite urls on... so I have to drop a htaccess in /wiki to turn "rewrite off".

I noticed that after i had completed your install steps, it just didn't work... I'm going through it all again but do you think this could be an issue because of the rewrite rule?

Thanks!

p.s anyone with VBseo got this installed?

I have to tweak vBSEO rewrite rules to:
Code:

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|vbseo_sitemap/|cron|wiki/)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbenterprisetranslator_seo.php [L,QSA]

RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap|wiki/)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images|wiki)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]


nitra1000 02-20-2010 06:01 PM

Okay thanks narrowed down the problem now...

The wiki works fine when not logged in, but when logged in it just gives a blank page, no error message or anything :(

Big-Pete 02-20-2010 06:03 PM

I just used the above .htaccess info as I have vbseo aswell and it works fine..

Do you get the header or just a blank page.?

I just need to try and work out how to use the wiki now ;)

nitra1000 02-20-2010 06:07 PM

Quote:

Originally Posted by Big-Pete (Post 1987511)
I just used the above .htaccess info as I have vbseo aswell and it works fine..

Do you get the header or just a blank page.?

I just need to try and work out how to use the wiki now ;)

On FF it's just a blank page, on IE8 it reports it as a 500 error..

daveaite 02-20-2010 06:08 PM

keep up the good work.

bepe 02-20-2010 06:50 PM

Quote:

Originally Posted by nitra1000 (Post 1987515)
On FF it's just a blank page, on IE8 it reports it as a 500 error..

Can u send me a link to that forum? ... PM or so...

bepe 02-20-2010 08:23 PM

http://bepe80.com/img/1.16.png
I think the new MediaWiki 1.16 will fit the board much better :D
... only strange that we have two serach boxes at the right... might be better to use only the one from the forum

magmf 02-21-2010 04:35 AM

suggestion,

I just created 2 define variables

define( VB_INSTALL_PATH, '../forum');
define( VB_INSTALL_URL, '' );

For what _URL ? for people that are using sef urls with mediawiki can get problems
so need change on vbMediaWiki.php
$base = VB_INSTALL_URL;

HoSStiA 02-21-2010 04:51 AM

Quote:

Originally Posted by bepe (Post 1987593)
I think the new MediaWiki 1.16 will fit the board much better :D
... only strange that we have two serach boxes at the right... might be better to use only the one from the forum

Cool view! When planned? ;)

magmf 02-21-2010 05:28 AM

Quote:

Originally Posted by bepe (Post 1987075)
ok, forgot about that :D
yes, 4.0.1 did not have that function.. .I did not know what it was for
now with 4.0.2 it is activated
... anyway, I fixed it already
looks like this now:
http://www.bepe80.com/img/wiki_searchsingle.png

ok, will need to install opera to fix that


Bepe how you fixed ??????????? on search page for 4.0.2 ?

benjaminlwells 02-21-2010 04:05 PM

Hey,

So I downloaded and installed.

My CMS is installed to my domain root and my wiki is in a folder named alphanex.

LocalSettings.php
define( VB_INSTALL_PATH, '..' );
require_once( "$IP/includes/AuthPlugin_vbMediaWiki.php" );

vBulletin MediaWiki: Options
Path: ./alphanex

Wiki gives error: Fatal error: Class 'MWException' not found in /hermes/web04/b1777/moo.benjaminlwells/alphanex/includes/User.php on line 29

Any thoughts?

Eruantien 02-21-2010 04:10 PM

Okay, so I'm not a developer but I am trying to integrate this product (which is amazing, thanks for working on this!). Where do I find the LocalSettings.php? Or, is this something I need to create?

benjaminlwells 02-21-2010 04:11 PM

Quote:

Originally Posted by Eruantien (Post 1988149)
Okay, so I'm not a developer but I am trying to integrate this product (which is amazing, thanks for working on this!). Where do I find the LocalSettings.php? Or, is this something I need to create?

In your wiki directory

daddel80 02-21-2010 08:17 PM

I found the reason for the Template error and saving problem described in that post. I had to disable the php.ini Parameter magic_quotes_gpc.

After that i generated new Templates because my old ones disappeared if i switched to vbmediawiki. Then i was able to save them.

@bepe, maybe you have an idea why this parameter has to be switched off if using vbmediawiki?

AURFSCAN 02-21-2010 08:30 PM

If you get the 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.

when editing-saving a page


add this line to your .htaccess file

php_flag magic_quotes_gpc Off

HoSStiA 02-21-2010 08:31 PM

Quote:

Originally Posted by Eruantien (Post 1988149)
Okay, so I'm not a developer but I am trying to integrate this product (which is amazing, thanks for working on this!). Where do I find the LocalSettings.php? Or, is this something I need to create?

You need to pass thru MediaWiki installation proccess and copy LocalSettings.php from ./config/ directory to the Wiki's root.

benjaminlwells 02-22-2010 05:56 PM

Ok, so I got it working after reinstalling MW and putting the hack back on, works great except for one thing.

For my test user account (that only has 1 post) I have the note at the top saying "You don't have enough posts to qualify as an active member of the community. Editing and creating Wiki pages is premitted only to active members! " I'm curious what the restriction is there, and how can I change/disable that?

Ben

AURFSCAN 02-22-2010 06:12 PM

1 Attachment(s)
Usergroup permissions

benjaminlwells 02-22-2010 06:28 PM

'duh for me! Thaks AURFSCAN!!!

jadeharper 02-23-2010 07:22 AM

I have installed this mod and made the necessary modifications, however whenever I go to the Wiki via the button or directly to the Wiki itself, I get redirected to my home page.
Does anyone know what could be causing this problem? (I have checked that the paths in the two settings are set up correctly)

BRotondi 02-23-2010 09:47 AM

If your full path (eg http://server.com/wiki does redirect you, it's perhaps a bad rewrite in one of the .htaccess)

Bruno

Desiderius 02-23-2010 10:37 AM

Is it possible to get the latest_wiki_articles result together with the latest post of the forum in one page?

starman? 02-23-2010 10:38 AM

Quote:

Originally Posted by Desiderius (Post 1989521)
Is it possible to get the latest_wiki_articles result together with the latest post of the forum in one page?

Or perhaps add it to the What's New button.

Desiderius 02-23-2010 10:41 AM

Quote:

Originally Posted by starman? (Post 1989522)
Or perhaps add it to the What's New button.

I add it already to the Whats new button, but i think its more comfortable for the user to see everything with one click!

starman? 02-23-2010 12:36 PM

Quote:

Originally Posted by Desiderius (Post 1989523)
I add it already to the Whats new button, but i think its more comfortable for the user to see everything with one click!

Which template did you edit to do that?


All times are GMT. The time now is 09:15 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.01836 seconds
  • Memory Usage 1,850KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (25)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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