PDA

View Full Version : Error on redirecting login. HELP!!


MiSdIrEcTeD_1
10-06-2008, 01:15 AM
I am having trouble with certain parameters. My members and I recieve this message after logging in.

Warning: require_once(./global.php) [function.require-once]: failed to open stream: No such file or directory in /home1/*******/public_html/forums.php on line 61

Fatal error: require_once() [function.require]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home1/*******/public_html/forums.php on line 61

Its due to it trying to redirect to a page that doesnt exist (*****forums.com/forums.php) when the place that I need it to direct to is *****forums.com/forums/forums.php

How can I get it to redirect to where I need it to?

Im kind of a newb, but I need to know what file to edit and how to code it when I get there. Is it my forumhome.php file? index.php? I need help!!! :(

Is this something I can fix with an htaccess file???

Infopro
10-06-2008, 05:12 AM
Is it my forumhome.php file? index.php? I need help!!!

RTFM. In the instructions is explains what file to edit so that this works correctly. Find the part about editing path.

Our Sponsors
 

Brian
10-06-2008, 10:59 AM
Where are you logging in from when you receive that error? I've tried various places on your forum and CMPS, but was always redirected to the page I was previously viewing.

MiSdIrEcTeD_1
10-06-2008, 10:28 PM
Where are you logging in from when you receive that error? I've tried various places on your forum and CMPS, but was always redirected to the page I was previously viewing.


Brian, it only happens from the navbar login. The side one on the main page works flawless. Also, when viewing the "forums" directory, the backtracking link in the navbar for the main forum redirects to the same error page "*****forums.net/forums.php"

I dont want to change any of my url settings in my admincp because they are all set up and working. the only issue seems to be with the navbar. Maybe its something to edit in the navpage template? I am still wondering if I can merely add an htaccess file in my /forums directory to redirect anything that goes to /forums.php to /forums/forums.php

By the way... when you registered did you get a confirmation email? I just want to make sure you got it or not incase some people might not be.

Our Sponsors
 

Brian
10-08-2008, 11:41 AM
Is it happening every time that you login from the navbar? I've just tried logging in/out a few more times, but still could not reproduce any issues.

MiSdIrEcTeD_1
10-08-2008, 11:48 AM
Yeah, only from the navbar. And when viewing a thread and trying to click on the main forum page link it redirects to the same error. I have cleared cookies and all on my browser. I am no the only person it is happening to. Im just kinda stuck on what to do.

Brian
10-08-2008, 11:51 AM
Admin CP => vBulletin Options => Forums Home Page Options => Script Name for Forum Home Page

Do you perhaps have that option set to '/forums'? If so, remove the slash.

MiSdIrEcTeD_1
10-08-2008, 11:58 AM
I do have everything in the URL settings set up so that I can run CMPS. I have my forums running out of /forums with the direct link as /forums/forums.php

If I change anything then it will affect the rest of the site. :o the problem lies in that vbulletin automatically adds .php to whatever you have set in there.

Brian
10-08-2008, 12:25 PM
That setting only controls the filename, not the folder. If you have a slash in front of it then that is exactly what is causing your issues.

MiSdIrEcTeD_1
10-08-2008, 01:19 PM
Yeah I know... But I have my forums running out of public_html/forums

Therefore, my sitename URL is set to ***********.net/forums and my forums homepage option is set to /forums

This results in being redirected to ***********.net/forums/forums.php when you click on my forums link. (since vbulletin automatically adds .php)

Maybe the error lies in my .htaccess file which is in my public_html file. Any thoughts? I really appreciate you helping out BTW

Heres my htaccess:

RewriteEngine on


# Change yourdomain.com to be your main domain.

RewriteCond %{HTTP_HOST} ^(www.)?***********.net$


# Change 'subfolder' to be the folder you will use for your main domain.

RewriteCond %{REQUEST_URI} !^/forums/

# Don't change this line.

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Change 'subfolder' to be the folder you will use for your main domain.

RewriteRule ^(.*)$ /forums/$1

# Change yourdomain.com to be your main domain again.
# Change 'subfolder' to be the folder you will use for your main domain
# followed by / then the main file for your site, index.php, index.html, etc.

RewriteCond %{HTTP_HOST} ^(www.)?***********.net$
RewriteRule ^(/)?$ forums/index.php [L] tc.


<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>

Brian
10-08-2008, 01:36 PM
Therefore, my sitename URL is set to ***********.net/forums and my forums homepage option is set to /forums
Again, that is exactly your problem. The 'Script Name for Forum Home Page' setting is only meant to contain the filename of your vBulletin homepage. Since you've renamed the file from index.php to forums.php, then the option needs to be set to 'forums'. Adding the extra slash in there is going to tell every link that is supposed to be pointing to your vBulletin homepage to point to '/forums.php', and that slash tells it that the file is in your root directory.

MiSdIrEcTeD_1
10-08-2008, 01:54 PM
Brian,

You have a PM

MiSdIrEcTeD_1
10-08-2008, 02:24 PM
Brian,

You are correct in that removing the "/" from the forum homepage setting gets the job done for setting the path correctly for the navpage forum links.

The only problem is that when that backslash is removed, then everything else on the forum is out of whack. It causes all of my links to be changed for my homepage and many others. I am completely lost on how to fix it. I have tried everything, even changed the forum URL settings... Nothing works... My CMPS is installed (i think) in my /forums directory... Could that be causing the problem? What if I remove my htaccess, and then just have CMPS working in public_html? I have no idea how to do all this though...

Brian
10-09-2008, 10:37 AM
If that change is breaking other links then the only thing I can figure is that you've modified links before in order to work properly with the extra slash you've added. The only way to fix that is going to be to change those links back to their original.

MiSdIrEcTeD_1
10-17-2008, 06:38 AM
If that change is breaking other links then the only thing I can figure is that you've modified links before in order to work properly with the extra slash you've added. The only way to fix that is going to be to change those links back to their original.

I have never edited anything nor modified links. I am still getting these errors. Even changing one setting in the URL spots in the vbulletins options and the cmps options screws up the whole board. It seems that I have to have the "/" before forums in the forums homepage options otherwise it redirects to nothing. It all comes down to fixing whatever parameters are wrong in the settings as well as the actual files and locations in the file manager. I originally had phpbb and then upgraded to vbulletin so some of those files still exist. I have an htaccess set to redirect my homepage to /forums. Not sure if that has any affect on any of this...

I am literally at a begging point to get this fixed or reinstalled correctly... :( I will give access to my admincp and vbulletin admin if I can please get it fixed. I have tried everything for weeks...

Brian
10-17-2008, 09:31 AM
Please submit a support ticket via the Members' Area here and I will take a look at things for you.

MiSdIrEcTeD_1
10-17-2008, 09:44 AM
Please submit a support ticket via the Members' Area here and I will take a look at things for you.

Done... Thanks man... :( Ill paypal you if you can get it straightened out!! :D

MiSdIrEcTeD_1
10-17-2008, 11:58 AM
Thanks for the help Brian!!! I gave you a shout out on my site... :D