Shape 5

Wordpress Club Themes => University - Club => : mtish February 07, 2013, 09:14:26 PM



: 'Fatal error: Allowed memory size' - Installing Demo Content
: mtish February 07, 2013, 09:14:26 PM
I'm getting this error at the last stage of the installation process.  Any suggestions would be appreciated.
Michael
---------------------------------------------------------
word press

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 31457280 bytes) in /home/<my domain>/public_html/wp-admin/s5_sample_data/sampledata.php on line 840


: Re: 'Fatal error: Allowed memory size' - Installing Demo Content
: Tristan Rineer February 08, 2013, 11:31:25 AM
Has this happened multiple times?  It may be possible to break the sample data into smaller segments if your server can't handle dumping that much to the database at one time; but you might be able to just drop the tables in the database and try again.


: Re: 'Fatal error: Allowed memory size' - Installing Demo Content
: mtish February 08, 2013, 02:47:35 PM
How do I do an incremental install?  Will this method install all pages and posts?  And if not how do I get it to look identical to the demo?


: Re: 'Fatal error: Allowed memory size' - Installing Demo Content
: mtish February 08, 2013, 02:49:34 PM
If it would be easier...  I do have whm and cpanel control of the server, if you happen to know what Apache, or PHP or SQL  setting to change?

Michael


: Re: 'Fatal error: Allowed memory size' - Installing Demo Content
: Tristan Rineer February 08, 2013, 03:09:14 PM
You could possibly just increase the allowed memory per operation for PHP and see if that fixes it.  If not, I may be able to tweak the code for you to make it break the data injection into smaller segments (all in the background, it would "feel" the same in the browser, the code running on the server would just happen in smaller batches).


: Re: 'Fatal error: Allowed memory size' - Installing Demo Content
: mtish February 08, 2013, 04:15:42 PM
Yes please.  If you could help  break the data injection into smaller segments that might do the trick.  I did try to increase the memory size but I got the same results in the same place (sampledata.php on line 840).

Please let me know what to do next on my side.

Thank you very much.
Michael


: Re: 'Fatal error: Allowed memory size' - Installing Demo Content
: mtish February 11, 2013, 06:07:32 PM
Hi Tristan - No need to create a special install package for me for this item.  I appreciate your offer.  I moved servers and the problem 'magically' went away.  So I'm up and running now.

Worth noting for future readers (and for yourself), I think the challenge had to do with machines running mysql-lite versus regular mysql!

Thanks again for your continued support,
Michael


: Re: 'Fatal error: Allowed memory size' - Installing Demo Content
: Tristan Rineer February 11, 2013, 06:16:45 PM
Thanks for the update, sorry I didn't get back to you sooner; I've been sick the last few days and avoiding the computer screen because it makes my headache worse.

I never would've thought about SQLite, but that makes perfect sense.  I'll have to remember that in the future if anyone else has a similar issue.