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 :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
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] Sat, 23 April 2011 21:49 Go to next message
Moachist is currently offline  Moachist   United States
Messages: 35
Registered: April 2011
Karma: 0
Member
add to buddy list
ignore all messages by this user
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 00:23 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3663
Registered: December 2004
Karma: 19
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
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 07:52 Go to previous messageGo to next message
Moachist is currently offline  Moachist   United States
Messages: 35
Registered: April 2011
Karma: 0
Member
add to buddy list
ignore all messages by this user
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] Sun, 24 April 2011 21:09 Go to previous messageGo to next message
Moachist is currently offline  Moachist   United States
Messages: 35
Registered: April 2011
Karma: 0
Member
add to buddy list
ignore all messages by this user
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 00:12 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3663
Registered: December 2004
Karma: 19
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
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 11:00 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3663
Registered: December 2004
Karma: 19
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
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] Mon, 25 April 2011 21:40 Go to previous messageGo to next message
Moachist is currently offline  Moachist   United States
Messages: 35
Registered: April 2011
Karma: 0
Member
add to buddy list
ignore all messages by this user
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 13:58 Go to previous message
Moachist is currently offline  Moachist   United States
Messages: 35
Registered: April 2011
Karma: 0
Member
add to buddy list
ignore all messages by this user
Thank you Frank. Your updates to admimport.php and admdump.php have fixed these issues.
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
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: Sun Jul 15 23:07:19 EDT 2018

Total time taken to generate the page: 0.00760 seconds