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

Reply
 
Thread Tools Display Modes
  #1  
Old 09-05-2005, 03:32 AM
Crypticel Crypticel is offline
 
Join Date: Apr 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Help the PHP-illiterate. I'm lost.

I have a bit of a problem with my site, cybervergence.com, and I'm hoping someone here might be able to point out what could be causing it.

If you head to the site, and click on the Gallery tab (it's the vBadvanced gallery, but I can't get vbadvanced.com to load to ask about this there), you'll see lovely error page. I think this might have happened after my host moved me to a different server, and I just didn't notice it until now. I've not changed anything, so it's not like I've done anything that could cause this, to the best of my knowledge. Our index page had a similar error after the server move, but I managed to get it working. However, for the life of me, I can't figure out how to fix this one!

Here are the errors, and the lines they refer to:

Error 1:
Code:
Warning: chdir(): No such file or directory (errno 2) in /home2/cyberve/public_html/gallery/gallery_global.php on line 17
Line 17:
Code:
chdir($forumpath);

Error 2:
Code:
Warning: main(./global.php): failed to open stream: No such file or directory in /home2/cyberve/public_html/gallery/gallery_global.php on line 46
Error 3:
Code:
Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/cyberve/public_html/gallery/gallery_global.php on line 46
Line 46:
Code:
require_once('./global.php');

global.php certainly exists, and everything else is working fine. It's just the gallery that's down, which is part of why I didn't notice for quite a while, and am not sure when it happened. Can anyone offer any suggestions, perhaps point me in the right direction?
Reply With Quote
  #2  
Old 09-05-2005, 03:47 AM
jugo jugo is offline
 
Join Date: Feb 2004
Location: Reading your emails.
Posts: 573
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

find this:

Code:
$forumpath
and make sure you have the full path in there.
Reply With Quote
  #3  
Old 09-11-2005, 04:55 PM
Crypticel Crypticel is offline
 
Join Date: Apr 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry for the rather late reply - I was moving, and ended up not online for longer than expected.

As I said in the original post, I'm really PHP illiterate. What exactly do you mean by the full path? I'm guessing you mean the path to the forum... maybe the index.php file? I tried a few things (like /forums/index.php, and home2/cyberve/public_html/forums/index.php), but it kept giving me the same error.

Also, I've noticed that in various places in the code, I find things like this:

Code:
require_once('./gallery_config.php');
Do I need to include the '. and ' around the path, once I figure out what it is?
Reply With Quote
  #4  
Old 09-13-2005, 01:08 PM
jugo jugo is offline
 
Join Date: Feb 2004
Location: Reading your emails.
Posts: 573
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

there is a file called gallery_config.php in your gallery directory:

Make sure that you set this variable properly:

Code:
// ============================================
// Enter the full path to your forum here
// Example: /home/vbadvanced/public_html/forum
// ============================================

$forumpath = '/home/username/public_html/forumsdir';
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 06:18 AM.


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.03326 seconds
  • Memory Usage 2,190KB
  • Queries Executed 13 (?)
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
  • (8)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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_postinfo_query
  • fetch_postinfo
  • 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