vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Problems with GETCWD() (https://vborg.vbsupport.ru/showthread.php?t=246176)

cnecorp 07-09-2010 01:36 AM

Problems with GETCWD()
 
I have recently migrated to a new hosting company and have moved my site accordingly.

I hit the following issue when I try to access my site:

Warning: include(c:\PHP5/includes/config.php) [function.include]: failed to open stream: No such file or directory in C:\HostingSpaces\cnecorp\eminitalk.com\wwwroot\eMi niTalk\includes\class_core.php on line 2567

Warning: include(c:\PHP5/includes/config.php) [function.include]: failed to open stream: No such file or directory in C:\HostingSpaces\cnecorp\eminitalk.com\wwwroot\eMi niTalk\includes\class_core.php on line 2567

Warning: include() [function.include]: Failed opening 'c:\PHP5/includes/config.php' for inclusion (include_path='.;C:\php5\pear') in C:\HostingSpaces\cnecorp\eminitalk.com\wwwroot\eMi niTalk\includes\class_core.php on line 2567

Configuration: includes/config.php does not exist. Please fill out the data in config.php.new and rename it to config.php

This problem arises because GETCWD is not returning the working directory:
I have changed a couple of scripts to resolve to the correct directory but it seems to find more and more which indicates that it is across a myriad of scripts so changing them all would not be practical.

How do I get around this problem?

Thanks

Speysider 07-10-2010 02:39 PM

class_core.php doesn't exist if the error above appears.
The second error will probably be that you reuploaded the vB files and forgot to set the db information in config.php

BirdOPrey5 07-10-2010 04:35 PM

Do you think it has anything to do with the direction of the slashes? Windows uses \ slashes while linux uses /, so if it's looking for a file called c:\PHP5/includes/config.php it won't find it even if c:\PHP5\includes\config.php exists.


All times are GMT. The time now is 08:08 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.01953 seconds
  • Memory Usage 1,710KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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