Forum Crash? [message #22476] |
Fri, 04 February 2005 16:15 |
chickenout
Messages: 55 Registered: February 2005 Location: Philadelphia
Karma: 0
|
Member |
|
|
I woke up this morning and the forum was giving me a fatal error.
Something about './GLOBALS.php' couldn't open the stream. No such file or directory in '/FUDforum2/index.php'.
What exactly caused this? I "fixed" it by making the pathname in the REQUIRE statement the absolute pathname.
I did this for the /FUDforum2/index.php, FUDforum2/adm/index.php, & FUDforum2/adm/admglobal.php
Basically every time I encounter the error, I change the file to the absolute pathname. This can't be the best way to do this.
Any thoughts?
Also, no that it is back up and running, the messages from the last 24 hours or so are gone. Any way to recover those??
Thanks
|
|
|
Re: Forum Crash? [message #22480 is a reply to message #22476] |
Fri, 04 February 2005 17:16 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The forum's main dir and the adm dir should have a GLOBALS.php symlink to the GLOBALS.php inside the include/ directory. This would make require "./GLOBALS.php" work.
If you are getting those errors I suspect either permissions on those files were changed to deny access to them or they were removed.
FUDforum Core Developer
|
|
|
|
Re: Forum Crash? [message #22482 is a reply to message #22481] |
Fri, 04 February 2005 18:00 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
You shouldn't copy that file, by rather make a symlink to the main one.
FUDforum Core Developer
|
|
|
|
Re: Forum Crash? [message #22484 is a reply to message #22483] |
Fri, 04 February 2005 18:11 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
If you have command line access via SSH or Telnet you can make symlinks by running:
ln -s source destination
if you don't have shell access, you can do it via PHP's symlink() function.
FUDforum Core Developer
|
|
|
|
Re: Forum Crash? [message #22492 is a reply to message #22485] |
Fri, 04 February 2005 22:31 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The permissions should be such that the webserver can read them, just to be safe make them 666.
FUDforum Core Developer
|
|
|