PHP memory keeps being exhausted

bflora - March 10, 2008 - 08:27
Project:Wordpress Import
Version:5.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:yrocq
Status:closed
Description

I've exported my wordpress database to XML, but when I try to import it into drupal, I get this fatal error:

"Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 262135 bytes) in /home/path/to/drupal/modules/wordpress_import/wordpress_import.module on line 584"

I had my host bump my memory to 64 MB and I'm still getting this error. Is there something I can do to the module to get it to work?

#1

ghankstef - March 10, 2008 - 12:45

I would try setting up a test version on my own computer - set php memory as high as needed and do the import there. Then you can transfer your local drupal site to the live one. Backup and Migrate module really helps with the db part

#2

bflora - March 11, 2008 - 05:05

I don't know the first thing about settingup a local version of drupal. Where does the database sit? On my machine? Tutorials?

#3

Geekpulp - March 12, 2008 - 09:17

I have the same issue I think, except I'm not getting any errors at all. my wxr file is 14mb and if I try to import it, it just seems to take a long time processing before returning to the import screen. I've check the database and there is no imported content.

Is there a way to split the wordpress xml file into smaller bits?

#4

yrocq - March 24, 2008 - 00:23
Assigned to:Anonymous» yrocq
Status:active» postponed (maintainer needs more info)

Does the module stop after submitting the first form (file uploading) or the second one (Users mapping & options) ?

#5

Geekpulp - April 2, 2008 - 08:55

well I've done this (using this method http://www.robcottingham.ca/20060830/how-to-install-drupal-on-your-mac-i...) and I keep getting the following error:

The selected file /Applications/MAMP/tmp/php/tmp_hN3IQK could not be uploaded, because the destination is not properly configured.
warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/modules/wordpress_import/wordpress_import.module on line 616.
warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/modules/wordpress_import/wordpress_import.module on line 110.

I'm going to dig into the code to see if I can find anything but sadly my knowledge of php is limited so I might not get much of a result... any ideas?

#6

helvetica - April 15, 2008 - 23:12

Adding the following line to wordpress_import.module fixed this problem for me:

ini_set('memory_limit', -1);

#7

Geekpulp - April 23, 2008 - 07:59

ok turns out the problem I was having was a problem with my setup.

But I have a new problem...

I can now import most of my content but for some reason it doesn't import anything after this post http://www.geekpulp.co.nz/2008/03/07/spore-coming-to-iphone/

I've check out the xml file from the wordpress import and all posts are in there, so it must be an issue with the drupal importer?

Any ideas?

#8

Sugandh_m - April 23, 2008 - 08:17

PHP memory is governed by settings.php file

The cache keeps on getting filled giving this error of memory exhausted.
Generally, if you are getting a white screen with nothing visible on index page, this is a symptom of cache exhaust. You may increase the limit at host but if it is not edited properly in your settings.php file, you wiill still get this error.

You may choose to edit the following things in notepad++ on your pc.

ini_set('session.cache_expire', XXXXXX);
ini_set('session.cache_limiter', 'none');
ini_set('session.cookie_lifetime', XXXXXXX);
ini_set('session.gc_maxlifetime', XXXXXXX);

The numeric values infront of 1st, 3rd and 4th should be increased as in my case it has been increased. Save the file and then replace the file on the server. You may choose to edit it directly on your server also.

See if this helps.

Sugandh

#9

yrocq - May 10, 2008 - 19:45

Geekpulp: I think your problem is the same as #248469: Curly double end quote character truncates individual items, but I can't reproduce it. A copy of your wxr file and the version number of your Wordpress installation would be a great help to fix the bug.

#10

lavamind - December 9, 2009 - 04:57
Status:postponed (maintainer needs more info)» closed

Branch 5.x is no longer supported.

 
 

Drupal is a registered trademark of Dries Buytaert.