Log in

View Full Version : VBindex problem with chdir....


cmb7684
08-27-2007, 04:59 AM
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.

Adrian Schneider
08-27-2007, 05:01 AM
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.

cmb7684
08-27-2007, 05:02 AM
when you say comment out that line? I'm green as it comes ......what do you mean?

Adrian Schneider
08-27-2007, 05:03 AM
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.

cmb7684
08-27-2007, 05:05 AM
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?

Adrian Schneider
08-27-2007, 05:42 AM
Where you uploaded it. You would have to download it, edit it, and then re-upload it.

cmb7684
08-27-2007, 06:03 AM
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.

Adrian Schneider
08-27-2007, 06:08 AM
All I did was edit that line, and placed // in front of it.

Cheers

cmb7684
08-27-2007, 06:11 AM
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.