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

Home » FUDforum » How To » "Fatal error"...forum move
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
"Fatal error"...forum move [message #159291] Thu, 21 May 2009 18:02 Go to next message
dfgngirl is currently offline  dfgngirl   United States
Messages: 87
Registered: December 2005
Karma: 0
Member
Hi,

I'm currently running Fud 2.7.7 over at a Linode I'm running and I need to move the forum over to Bluehost.

I installed a new copy of 2.7.7 over at Bluehost, did a forum data dump at the old host, transferred that to the new one and import.

Every time I get this:

Processed 10000 queries
Processed 20000 queries
Processed 30000 queries

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1000001 bytes) in /home4/forums/public_html/fud/adm/admimport.php on line 196


I've increased my php memory limit from 32mb to 128mb with no luck. I've tried without zlib with no joy.

I've only got a week or so to move this over.

Help!!!!!!!
Re: "Fatal error"...forum move [message #159295 is a reply to message #159291] Thu, 21 May 2009 19:23 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Open admimport.php with a text editor and add/change:

@set_time_limit(0);
@ini_set('memory_limit', '256M');

Re: "Fatal error"...forum move [message #159297 is a reply to message #159291] Thu, 21 May 2009 19:34 Go to previous messageGo to next message
dfgngirl is currently offline  dfgngirl   United States
Messages: 87
Registered: December 2005
Karma: 0
Member
Thank you naudefj! Very Happy
Re: "Fatal error"...forum move [message #159330 is a reply to message #159291] Sun, 24 May 2009 00:00 Go to previous messageGo to next message
dfgngirl is currently offline  dfgngirl   United States
Messages: 87
Registered: December 2005
Karma: 0
Member
Well it looks like my host just doesn't have the goods to do the import script.

So I tried to move the forum manually. I zipped up the files and backed up mysql and transferred them over.

Now I have it transferred, but I cannot re-enable the forum. I go to the forum, it says it's disabled and for me to log in which I do, but when I try to re-enable the forum and go to it, I get taken back to the "forum disabled" message.

I think the folder permissions might be off.

Please help me! Shocked
Re: "Fatal error"...forum move [message #159343 is a reply to message #159291] Sun, 24 May 2009 02:25 Go to previous messageGo to next message
dfgngirl is currently offline  dfgngirl   United States
Messages: 87
Registered: December 2005
Karma: 0
Member
Also, when I go to unlock the files, I get a "500 Server Error".
Re: "Fatal error"...forum move [message #159345 is a reply to message #159343] Sun, 24 May 2009 09:41 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
To re-enable your forum, log on to the ACP directly. Append /adm to the forum's url. For example: your.domain.com/forum/adm

Check Apache's error_log file for details about the 500 server errors.

Best regards.

Frank
Re: "Fatal error"...forum move [message #159346 is a reply to message #159291] Sun, 24 May 2009 14:56 Go to previous messageGo to next message
dfgngirl is currently offline  dfgngirl   United States
Messages: 87
Registered: December 2005
Karma: 0
Member
Oh I was dreading an answer like this. I was hoping this wasn't that unusual of a problem. Crying or Very Sad

When I "unlock" the forum's files, I get the 500 error in my logs (Accessing adm directly yields the same):

[Sun May 24 08:32:45 2009] [error] [client 61.183.32.54] SoftException in Application.cpp:252: File "/home4/myforums/public_html/fud/index.php" is writeable by group, referer: http://fud.myforums.com/adm/admlock.php?S=268ae64325792061ba00ba548b557e2e&SQ=f36e00371c3f2d30d4e352f398e862f7 
[Sun May 24 08:32:45 2009] [error] [client 61.183.32.54] Premature end of script headers: index.php, referer: http://fud.myforums.com/adm/admlock.php?S=268ae64325792061ba00ba548b557e2e&SQ=f36e00371c3f2d30d4e352f398e862f7 
[Sun May 24 08:32:46 2009] [error] [client 61.183.32.54] SoftException in Application.cpp:252: File "/home4/myforums/public_html/fud/500.php" is writeable by group, referer: http://fud.myforums.com/adm/admlock.php?S=268ae64325792061ba00ba548b557e2e&SQ=f36e00371c3f2d30d4e352f398e862f7 [Sun May 24 08:32:46 2009] [error] [client 61.183.32.54] Premature end of script headers: 500.php, referer: http://fud.myforums.com/adm/admlock.php?S=268ae64325792061ba00ba548b557e2e&SQ=f36e00371c3f2d30d4e352f398e862f7 [Sun May 24 08:32:56 2009] [error] [client 61.183.32.54] SoftException in Application.cpp:252: File "/home4/myforums/public_html/fud/adm/index.php" is writeable by group [Sun May 24 08:32:56 2009] [error] [client 61.183.32.54] Premature end of script headers: index.php [Sun May 24 08:32:56 2009] [error] [client 61.183.32.54] SoftException in Application.cpp:252: File "/home4/myforums/public_html/fud/500.php" is writeable by group [Sun May 24 08:32:56 2009] [error] [client 61.183.32.54] Premature end of script headers: 500.php 


When I change the files in the document root from 666 to 644 and the contents of the adm folder 744, then the forum no long kicks out errors, but alas - it still refuses to re-enable. Sad

Frank. is there some documentation somewhere at Fud that lists which directories and files should have which permission? In the move the permissions became all out-of-whack since I had to transfer the files via archive.

Is there such a document?
Re: "Fatal error"...forum move [message #159347 is a reply to message #159346] Sun, 24 May 2009 15:42 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Well, you don't have a FUDforum problem at all (not yet, anyway). You have a "how to make a php script run" problem.

The error log may have the key: "...is writeable by group". Try to chmod -R g-w * to see if it helps.

This may also help: http://cvs.prohost.org/index.php/FAQ#FUDforum_shows_a_blank_screen._What_no w?

Best of luck.

Frank
Re: "Fatal error"...forum move [message #159348 is a reply to message #159291] Sun, 24 May 2009 16:31 Go to previous messageGo to next message
dfgngirl is currently offline  dfgngirl   United States
Messages: 87
Registered: December 2005
Karma: 0
Member
Hi Frank,

No joy. Your command didn't help. I still get the 500 error.

So I have to go back in and change permissions until I no longer get the 500 error message.

But here is the important point - after I stop getting the error message - the forum still doesn't work - refuses to re-enable or save any changes made in the global settings manager. And when I go to "unlock" the files - the back office breaks again!

Why this behavior?

PS: I assume there is no such folder structure permission guide document out there? No script that will check permissions or anything like that?
Re: "Fatal error"...forum move [message #159349 is a reply to message #159348] Sun, 24 May 2009 16:38 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Forget about FUDforum. Just try to make any PHP script to work. When successful, we can discuss this further.

For example, if you can get this to work, you know what the file permissions should be: http://www.php.net/manual/en/tutorial.firstpage.php

After that, follow the tips in the FAQ (link I've posted earlier).
Re: "Fatal error"...forum move [message #159350 is a reply to message #159291] Sun, 24 May 2009 19:29 Go to previous messageGo to next message
dfgngirl is currently offline  dfgngirl   United States
Messages: 87
Registered: December 2005
Karma: 0
Member
They do work.

How could I even get to the "Admin Control Panel"? You mean that's not a script? When I go to /adm/admglobal.php I do not get a script error. The script works; I get a page called "Global Settings Manager" with all those settings that won't save. But I don't get and error. I just can't enable the forum.

/adm/admphpinfo.php page works and displays my php info. Isn't that a script?

It is only when I "unlock" the forum pages that I get script errors.
Re: "Fatal error"...forum move [message #159351 is a reply to message #159291] Sun, 24 May 2009 19:35 Go to previous messageGo to next message
dfgngirl is currently offline  dfgngirl   United States
Messages: 87
Registered: December 2005
Karma: 0
Member
Maybe some file just got broke in the move...

I guess I'll try again.
Re: "Fatal error"...forum move [message #159352 is a reply to message #159351] Sun, 24 May 2009 19:45 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Quote:
I get a page called "Global Settings Manager" with all those settings that won't save


Sounds like you've made some good progress. Please check if ./adm/GLOBALS.php links to the GLOBALS.php in your include directory:

$ ls -l adm/GLOBALS.php
lrwxrwxrwx 1 apache apache 59 2009-05-24 21:36 adm/GLOBALS.php -> ...data/include/GLOBALS.php


Best regards.

Frank
Re: "Fatal error"...forum move [message #159353 is a reply to message #159291] Sun, 24 May 2009 21:34 Go to previous messageGo to next message
dfgngirl is currently offline  dfgngirl   United States
Messages: 87
Registered: December 2005
Karma: 0
Member
It wasn't linked. Each file was separate.

So when I link them like so:

 ls -l public_html/fud/adm/GLOBALS.php
lrwxrwxrwx 1 myforums myforums 28 May 24 15:21 public_html/fud/adm/GLOBALS.php -> fud_data/include/GLOBALS.php


I get a php error:

/home4/myforums/public_html/fud/adm/admglobal.php on line 12 [24-May-2009 15:24:53] PHP Warning: require(./GLOBALS.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home4/myforums/public_html/fud/adm/admglobal.php on line 12 [24-May-2009 15:24:53] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required './GLOBALS.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home4/myforums/public_html/fud/adm/admglobal.php on line 12 



BTW, thanks for everything!
Re: "Fatal error"...forum move [message #159355 is a reply to message #159291] Mon, 25 May 2009 00:42 Go to previous message
dfgngirl is currently offline  dfgngirl   United States
Messages: 87
Registered: December 2005
Karma: 0
Member
A redo did the trick.

Thanks again for all your incredible help!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Setting up newsgroups on Windows
Next Topic: How to search for attachments to messages
Goto Forum:
  

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

Current Time: Wed May 29 06:17:26 GMT 2024

Total time taken to generate the page: 2.21190 seconds