The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
when i include this on a non vb page i get this error message
Warning: main(./includes/init.php): failed to open stream: No such file or directory in /public_html/forum/global.php on line 18 Fatal error: main(): Failed opening required './includes/init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /public_html/forum/global.php on line 18 anyone know what this means and how i can fix it? |
#2
|
||||
|
||||
![]()
Well, it means exactly that what the error does say:
./includes/init.php was not found in ., /usr/lib/php or /usr/local/lib/php when it was called in /public_html/forum/global.php in line 18 Solution: chdir('/public_html/forum'); <-- Is this really the full path? |
#3
|
||||
|
||||
![]()
thnx for the quick reply kirby
the full path is /home/*****/public_html/forum also where do i put chdir('/public_html/forum'); i put it under require global but then i get this error message Fatal error: main(): Failed opening required './includes/init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/*****/public_html/forum/global.php on line 18 i put the full path in aswell any ideas? |
#4
|
||||
|
||||
![]()
You must but it above global.php and use the full path
|
#5
|
||||
|
||||
![]()
like this?
chdir('home/*****/public_html/forum/'); require_once('home/*****/public_html/forum/global.php); |
#6
|
||||
|
||||
![]()
Not quite ...
Code:
chdir('/path/to/forum'); require_once('./global.php'); |
#7
|
||||
|
||||
![]()
i get this error
Fatal error: main(): Failed opening required 'home/*****/public_html/forum/global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/*****/public_html/index.php on line 3 |
#8
|
||||
|
||||
![]()
<a href="https://vborg.vbsupport.ru/showpost.php?p=772988&postcount=6" target="_blank">https://vborg.vbsupport.ru/showp...88&postcount=6</a>
With this Code? |
#9
|
||||
|
||||
![]()
sorry no i didnt see that post
but when i put chdir('home/*****/public_html/forum'); require_once('./global.php'); i get this message Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/*****/public_html/index.php on line 3 |
#10
|
||||
|
||||
![]()
It's /home/whatever/public_html/forum, not home/whatever/public_html/forum
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|