Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-20-2005, 12:31 AM
Uniphix's Avatar
Uniphix Uniphix is offline
 
Join Date: Dec 2004
Location: Washington, USA
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Global Error Issue, Can I get some help?

Okay I seem to get an issue here and there are some things I am trying to do right now and that is... trying to get my other php files to link to the global.php..

I have this error


Quote:
Warning: main(): Unable to access ./global.php in /home/httpd/vhosts/paragonix.org/httpdocs/portal/races/index.php on line 32

Warning: main(./global.php): failed to open stream: No such file or directory in /home/httpd/vhosts/paragonix.org/httpdocs/portal/races/index.php on line 32

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/paragonix.org/httpdocs/portal/races/index.php on line 32
And this is what I have...

PHP Code:
<?php
error_reporting
(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS'1);
define('THIS_SCRIPT''adv_index');
define('VBA_PORTAL'true);

//chdir('/forums');

$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();

require_once(
'./global.php');

$navbits = array(); 
$navbits[$parent] = 'Races'

$navbits construct_navbits($navbits); 
eval(
'$navbar = "' fetch_template('navbar') . '";');

eval(
'print_output("' fetch_template('races') . '");');
?>
Reply With Quote
  #2  
Old 02-20-2005, 12:37 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is this file in the same directory as global.php
Reply With Quote
  #3  
Old 02-20-2005, 12:58 AM
Uniphix's Avatar
Uniphix Uniphix is offline
 
Join Date: Dec 2004
Location: Washington, USA
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope

This is what I plan on having...

ROOT/forums/etc.etc.

ROOT/portal/races/all race stuff here...
ROOT/portal/classes/all class stuff here...

I have a index.php in my ROOT folder that is my main homepage...

While I have my forums in my forums..
Reply With Quote
  #4  
Old 02-20-2005, 01:15 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

then uncomment this line

//chdir('/forums');



chdir('./forums');

if that doesn't work try

chdir('../forums');
Reply With Quote
  #5  
Old 02-20-2005, 02:00 AM
Uniphix's Avatar
Uniphix Uniphix is offline
 
Join Date: Dec 2004
Location: Washington, USA
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Warning: chdir(): SAFE MODE Restriction in effect. The script whose uid is 10482 is not allowed to access /home/httpd/vhosts/paragonix.org/httpdocs/portal owned by uid 0 in /home/httpd/vhosts/paragonix.org/httpdocs/portal/races/index.php on line 7

Warning: main(): Unable to access ./global.php in /home/httpd/vhosts/paragonix.org/httpdocs/portal/races/index.php on line 14

Warning: main(./global.php): failed to open stream: No such file or directory in /home/httpd/vhosts/paragonix.org/httpdocs/portal/races/index.php on line 14

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/paragonix.org/httpdocs/portal/races/index.php on line 14
This is what I edited...


PHP Code:
<?php
error_reporting
(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS'1);
define('THIS_SCRIPT''adv_index');
define('VBA_PORTAL'true);

chdir('../forums');

$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();

require_once(
'./global.php');

$navbits = array(); 
$navbits[$parent] = 'Races'

$navbits construct_navbits($navbits); 
eval(
'$navbar = "' fetch_template('navbar') . '";');

eval(
'print_output("' fetch_template('races') . '");');
?>
OKay I aM still having issues with both tries...
Reply With Quote
  #6  
Old 02-23-2005, 10:19 PM
Uniphix's Avatar
Uniphix Uniphix is offline
 
Join Date: Dec 2004
Location: Washington, USA
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay Still need help I seem to not be able to figure this out :surprised:
Reply With Quote
  #7  
Old 02-23-2005, 10:26 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
chdir('../forums'); 
should read
PHP Code:
chdir('/home/httpd/vhosts/paragonix.org/httpdocs/forums/'); 
Reply With Quote
  #8  
Old 02-23-2005, 10:39 PM
Uniphix's Avatar
Uniphix Uniphix is offline
 
Join Date: Dec 2004
Location: Washington, USA
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll give it a try

Works great thanks

and I need a / before home to get it right hehe
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:33 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.04276 seconds
  • Memory Usage 2,243KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete