FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Forum Crash?
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Forum Crash? [message #22476] Fri, 04 February 2005 16:15 Go to next message
chickenout is currently offline  chickenout   United States
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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #22481 is a reply to message #22480] Fri, 04 February 2005 17:57 Go to previous messageGo to next message
malik is currently offline  malik   Belarus
Messages: 21
Registered: October 2004
Location: houston,tx
Karma: 0
Junior Member
Try to copy GLOBALS.php from include/ dir
to adm/ dir and where the main index.php located!
but cearfully ! Copying that to dirs couses the open information which could me stolen
Re: Forum Crash? [message #22482 is a reply to message #22481] Fri, 04 February 2005 18:00 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #22483 is a reply to message #22476] Fri, 04 February 2005 18:07 Go to previous messageGo to next message
chickenout is currently offline  chickenout   United States
Messages: 55
Registered: February 2005
Location: Philadelphia
Karma: 0
Member
What exactly does a symlink look like?

I don't think the permissions have been changed, but I'll check again.

Re: Forum Crash? [message #22484 is a reply to message #22483] Fri, 04 February 2005 18:11 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #22485 is a reply to message #22476] Fri, 04 February 2005 18:20 Go to previous messageGo to next message
chickenout is currently offline  chickenout   United States
Messages: 55
Registered: February 2005
Location: Philadelphia
Karma: 0
Member
Warning: main(./GLOBALS.php): failed to open stream: No such file or directory in /var/www/html/FUDforum2/index.php on line 13

Fatal error: main(): Failed opening required './GLOBALS.php' (include_path='.:/php/includes:/usr/share/php') in /var/www/html/FUDforum2/index.php on line 13
------------------------------------------------------------

This is exactly the error I got.
What exactly should the permissions be for those files??
Everyone r/x but only owner r/w/x

Any thoughts on the lost messages.
Re: Forum Crash? [message #22492 is a reply to message #22485] Fri, 04 February 2005 22:31 Go to previous message
Ilia is currently offline  Ilia   Canada
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Prepared statement already exists
Next Topic: Possible mod_perl incompatibility
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 29 22:42:37 GMT 2024

Total time taken to generate the page: 0.02106 seconds