vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Help the PHP-illiterate. I'm lost. (https://vborg.vbsupport.ru/showthread.php?t=95673)

Crypticel 09-05-2005 03:32 AM

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?

jugo 09-05-2005 03:47 AM

find this:

Code:

$forumpath
and make sure you have the full path in there.

Crypticel 09-11-2005 04:55 PM

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?

jugo 09-13-2005 01:08 PM

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';



All times are GMT. The time now is 02:47 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.00931 seconds
  • Memory Usage 1,720KB
  • 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
  • (8)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete