Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 08-27-2007, 04:59 AM
cmb7684 cmb7684 is offline
 
Join Date: Aug 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default VBindex problem with chdir....

My site was working fine until my server was updated ..below is a copy of the email I got when this problem started.

Im running Vbulletin 3.0.6 with VBIndex 3.0.0 RC5.


Here is the original email that started this.

We will be migrating the accounts on the Omicron server (ip of 70.84.128.212) to a new server in our new datacenter. The new server is Adama and the ip is 64.22.96.42.

From your own perspective, nothing should change. The DNS has been updated to allow quick transfers to the new ip address. If you are connecting to the ip address just replace the old address with the new one. We will disable access but not delete anything once an account has been moved to ensure everyone is using the correct server, so if you are unable to login using the old ip address try the new one instead. There may be some software differences between the servers and we will be checking each site to make sure it is working before we disable any access. No data will be lost in this move. All of the accounts should be moved by August 31st.


Now as you can see I wasnt so lucky as to not have any trouble with this change.


Here is the log in order of my site:

Page 1 main page www.mysite.org

Page 2 Forum homepage http://www.mysite.org/forums/vbindex.php <<<problem page

Page 3 forums http://www.mysite.org/forums/index.php?

If you were to click the Page 3 link as more or less a back door and enter the proper username and password for both the password protected directory and the forum username and password you will be allowed to gain access to the site. The forum Home page (Page 2) also will work if it is reached from page 3 by clicking the home page button with the error code at the top of the page. Do you possibly know why this would have been effected and why it works in reverse?

Here is the error code that I'm getting below if I log in the normal way without using the backdoor method:

Warning: chdir() [function. chdir]: No such file or directory (errno 2) in /home/jffa/public_html/forums/vbindex.php on line 144



Unable to add cookies, header already sent.
File:/home/jffa/public_html/forums/vbindex.php
Line: 144


Anyone know whats wrong and what can I do to fix this and where the directory is located to make the needed changes?

I know I should update but I'm trying to avoid doing all the code again for the hacks that are installed.
Reply With Quote
  #2  
Old 08-27-2007, 05:01 AM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If it's in the same folder ('/forums') you could just comment out that line, as you shouldn't need to change directories at all.
Reply With Quote
  #3  
Old 08-27-2007, 05:02 AM
cmb7684 cmb7684 is offline
 
Join Date: Aug 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

when you say comment out that line? I'm green as it comes ......what do you mean?
Reply With Quote
  #4  
Old 08-27-2007, 05:03 AM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Place a // before it, so it becomes a comment and is no longer interpreted by the PHP parser.

Deleting it has the same effect, though "commenting out" is nice sometimes because you can always undo easily.
Reply With Quote
  #5  
Old 08-27-2007, 05:05 AM
cmb7684 cmb7684 is offline
 
Join Date: Aug 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what would it need to look like and where would I find it? ...in the folder where I uploaded the vbulletin software to my host or in the code in the admin cp where I changed all the code to add in hacks?
Reply With Quote
  #6  
Old 08-27-2007, 05:42 AM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where you uploaded it. You would have to download it, edit it, and then re-upload it.
Reply With Quote
  #7  
Old 08-27-2007, 06:03 AM
cmb7684 cmb7684 is offline
 
Join Date: Aug 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here is the vbindex file that I downloaded from my host attached. I do not see the option to add in // before where it says the file is located.
Attached Files
File Type: php vbindex.php (42.8 KB, 4 views)
Reply With Quote
  #8  
Old 08-27-2007, 06:08 AM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All I did was edit that line, and placed // in front of it.

Cheers
Attached Files
File Type: php updated_vbindex.php (42.8 KB, 6 views)
Reply With Quote
  #9  
Old 08-27-2007, 06:11 AM
cmb7684 cmb7684 is offline
 
Join Date: Aug 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I appreciate your help and im going to upload it right now to see but can you tell me how you found that line ..as I know it would take you a million years to try to get me to understand code but where exactly did you replace it...if you have the time I would love to see where the trouble actually was

I just uploaded and it worked fine...........if not tonight b/c i know its getting late if you could give me a brief descrip of what just happpened.
Reply With Quote
Reply

Thread Tools
Display Modes

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 09:04 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.04136 seconds
  • Memory Usage 2,247KB
  • Queries Executed 14 (?)
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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)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
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete