PDA

View Full Version : Error line 19 and 25?


DarknessDivine
06-04-2004, 09:04 AM
Okay here's the rrors I am getting. First let me give you this info...
My foum is located here : /messageboard.13moonsdesign.com/vbulletin/upload/index.php
I uploaded my CMPS index here:
/messageboard.13moonsdesign.com/vbulletin/cmps_index.php
and this is the error I'm getting,
Warning: chdir(): No such file or directory (errno 2) in /hsphere/local/home/darkness/messageboard.13moonsdesign.com/vbulletin/cmps_index.php on line 19

Warning: main(./global.php): failed to open stream: No such file or directory in /hsphere/local/home/darkness/messageboard.13moonsdesign.com/vbulletin/cmps_index.php on line 25

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/local/lib/php') in /hsphere/local/home/darkness/messageboard.13moonsdesign.com/vbulletin/cmps_index.php on line 25

I've even tried changing somethings around and I still get the errors.
What did I do wrong? :confuse:
Thanks in advance,
D.Divine

ashly
06-04-2004, 09:24 AM
Ok this is what you do.
Remove line 19

And put this in line 25
require_once('./global.php');

This shoud fix it.

Our Sponsors
 

DarknessDivine
06-04-2004, 09:27 AM
Ok this is what you do.
Remove line 19
Where do I remove line 19? In which file? I can't even find it in cmps_index?
And put this in line 25
require_once('./global.php');
And where do I find this at? I don't believe there is a line 25 in cmps_index.

:o I know, I know...but hey I am learning..lol

ashly
06-04-2004, 09:30 AM
Here put this in the portal index file

<?php

// ++=========================================================================++

// || vBadvanced CMPS v1.0 RC2 ||

// || © 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved ||

// || This file may not be redistributed in whole or significant part. ||

// || http://vbadvanced.com ||

// ++ ========================================================================++

error_reporting(E_ALL & ~E_NOTICE);

define('NO_REGISTER_GLOBALS', 1);

define('THIS_SCRIPT', 'adv_index');

define('VBA_PORTAL', true);

// ============================================

// Enter the full path to your forum here

// Example: /home/vbadvanced/public_html/forum

// ============================================





// ============================================

// No Further Editing Necessary!

// ============================================

require_once('./global.php');

print_portal_output($home);

?>

Our Sponsors
 

DarknessDivine
06-04-2004, 09:44 AM
Okay that got rid of the error lone 19 now I just have this error:
Warning: main(./global.php): failed to open stream: No such file or directory in /hsphere/local/home/darkness/messageboard.13moonsdesign.com/vbulletin/cmps_index.php on line 25

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/local/lib/php') in /hsphere/local/home/darkness/messageboard.13moonsdesign.com/vbulletin/cmps_index.php on line 25

ashly
06-04-2004, 09:49 AM
That the line with require_once('./global.php'); try this require_once('.pathtoforum/global.php'); if that not working than put your forum in the root of your site and the portal to than it shoud work to. :D

DarknessDivine
06-04-2004, 09:56 AM
Okay now it's error line 26? UGH why me?????? :(
Warning: main(./hsphere/local/home/darkness/messageboard.13moonsdesign.com/vbulletin/ /upload/global.php): failed to open stream: No such file or directory in /hsphere/local/home/darkness/messageboard.13moonsdesign.com/vbulletin/upload/cmps_index.php on line 26

Fatal error: main(): Failed opening required './hsphere/local/home/darkness/messageboard.13moonsdesign.com/vbulletin/ /upload/global.php' (include_path='.:/usr/local/lib/php') in /hsphere/local/home/darkness/messageboard.13moonsdesign.com/vbulletin/upload/cmps_index.php on line 26

ashly
06-04-2004, 10:06 AM
Here you did for global
./hsphere/local/home/darkness/messageboard.13moonsdesign.com/vbulletin/ /upload/global.php
But it must by:
./hsphere/local/home/darkness/messageboard.13moonsdesign.com/vbulletin/upload/global.php

you sie. You did / / but must by only one /.

Chuckie
06-04-2004, 10:16 AM
Upload you files from the vbadvance zip file again.

also upload you cmps_index.php and rename again.

In the cmps_index.php Check you forums path

chdir('./forums'); <------ example is chdir('/home/YOUR_SITE_NAME/public_html/vbulletin');

You might get by with changing to this one --> chdir('./vbulletin'); <-- Depends on your server.

This is the server path not the url to the forums....

That should fix the problem.

vbulletin

Brian
06-04-2004, 10:35 AM
Change your chdir line to the following:

chdir('/hsphere/local/home/darkness/messageboard.13moonsdesign.com/vbulletin/upload');

And that should fix the problem. :)