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

Home » FUDforum » FUDforum Installation Issues » Fatal error: Allowed memory size xxx admimport.php line 52 (Trying to import a small forum to new server)
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Fatal error: Allowed memory size xxx admimport.php line 52 [message #165092] Sun, 24 April 2011 01:49 Go to next message
Moachist is currently offline  Moachist   United States
Messages: 35
Registered: April 2011
Karma: 0
Member
I have two servers. Both exact sames versions of everything:
Fudforum 3.02
PHP 5.3.5
Mysql 5.5.8
Apache 2.2.17

The forum is only 47MB total. I have run the forum datadump from the old server and continually am trying to import the dump file to the new server.

I keep getting this error..
Fatal error: Allowed memory size of xxxxxxxxx bytes exhausted (tried to allocate 35 bytes) in C:\xampp\htdocs\fudforum\adm\admimport.php on line 52

I increase the memory in the admimport.php and php.ini and the number above (xxx) just keeps increasing. Is there something else I need to do?

Thank you.
Re: Fatal error: Allowed memory size xxx admimport.php line 52 [message #165095 is a reply to message #165092] Sun, 24 April 2011 04: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
That's a strange place to run out of memory.
I would add an echo before and after line 52 to try and understand what's going on.
Use memory_get_usage() to print the before and after memory usage.
Re: Fatal error: Allowed memory size xxx admimport.php line 52 [message #165096 is a reply to message #165095] Sun, 24 April 2011 11:52 Go to previous messageGo to next message
Moachist is currently offline  Moachist   United States
Messages: 35
Registered: April 2011
Karma: 0
Member
naudefj wrote on Sun, 24 April 2011 00:23
That's a strange place to run out of memory.
I would add an echo before and after line 52 to try and understand what's going on.
Use memory_get_usage() to print the before and after memory usage.


Thank you for your reply. I am very new at Fudforum, PHP, MySQL administration (Come from the Windows admin area) and am not sure how to do this.

It seems odd since the zipped forum dump file is only 3.6MB. How could that be exhausting 500MB of memory. It is really just a small forum. Are there other ways I can move the entire thing to a new server?

Thank you.
Re: Fatal error: Allowed memory size xxx admimport.php line 52 [message #165099 is a reply to message #165096] Mon, 25 April 2011 01:09 Go to previous messageGo to next message
Moachist is currently offline  Moachist   United States
Messages: 35
Registered: April 2011
Karma: 0
Member
I have actually now increased the PHP.ini and admimport.php memory limits to 768MB. Each time I try this it fails at something just beyond the memory set.

Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 35 bytes) in C:\xampp\htdocs\fudforum\adm\admimport.php on line 52


I have also taken the datadump without the search indexes and GZIp compression just incase this slows it down.

Any help is appreciated.
Re: Fatal error: Allowed memory size xxx admimport.php line 52 [message #165100 is a reply to message #165099] Mon, 25 April 2011 04:12 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
You will have to debug the code, alternatively, mail me access details to login to your server.
Re: Fatal error: Allowed memory size xxx admimport.php line 52 [message #165103 is a reply to message #165100] Mon, 25 April 2011 15:00 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
Looks like a known problem we've fixed a couple of days ago. Here is the patch:
http://sourceforge.net/apps/trac/fudforum/changeset/5205
Re: Fatal error: Allowed memory size xxx admimport.php line 52 [message #165104 is a reply to message #165103] Tue, 26 April 2011 01:40 Go to previous messageGo to next message
Moachist is currently offline  Moachist   United States
Messages: 35
Registered: April 2011
Karma: 0
Member
Thank you, Frank, you have been a big help so far. I went through and adjusted the files using Notepad++. I think we got farther, however I have two issues.

First when I go to the Import Forum Data page, I get this error on files already in the adm directory (the newly dumped backup file copied into this directory)

Warning: Missing argument 2 for fdate(), called in C:\xampp\htdocs\fudforum\adm\admimport.php on line 281 and defined in C:\xampp\htdocs\fudforum\include\adm.inc on line 78

Notice: Undefined variable: date in C:\xampp\htdocs\fudforum\include\adm.inc on line 82
1303757700

and then when I import, I get a new error:

Restore forum files...

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 35 bytes) in C:\xampp\htdocs\fudforum\adm\admimport.php on line 25


Similar problem. Thanks in advance,
Re: Fatal error: Allowed memory size xxx admimport.php line 52 [message #165148 is a reply to message #165104] Tue, 03 May 2011 17:58 Go to previous message
Moachist is currently offline  Moachist   United States
Messages: 35
Registered: April 2011
Karma: 0
Member
Thank you Frank. Your updates to admimport.php and admdump.php have fixed these issues.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: upgrade.php from 2.6.7 to 3.0.0 - parse error
Next Topic: Consistency check after import from source forum
Goto Forum:
  

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

Current Time: Mon Nov 25 23:01:48 GMT 2024

Total time taken to generate the page: 0.03001 seconds