Technology Tools for Ministry

Community

Web-Empowered Church User Community
All Categories > Getting Started > Installing (WEC Starter Package) > Fatal error: Allowed memory size
Total Posts: 4 - Pages (1): [1]
user picture Author: Russell (Russ) Archer
Posted: Jul 22 2008 - 08:10 AM
Subject: Fatal error: Allowed memory size
I am experiencing a fatal error when installing the starter package - wec_starter-4_0_3-1_0_0.tar.gz (as described in the wec_starter_install pdf description.

My error message is:

Fatal error: Allowed memory size of 37748736 bytes exhausted (tried to allocate 30720 bytes) in /home/bjumc67/public_html/rearcher.com/typo3conf/ext/cal/controller/class.tx_cal_modelcontroller.php on line 566

I did a phpinfo and sure enough the memory limit is 36M
...
max_input_time 240 240
memory_limit 36M 36M
open_basedir no value no value
...

I've read several of the threads of others having this problem. Most seem to indicate that the problem is the memory_limit. So I contacted my ISP and here is their response:
-----------------
Hello,

it appears there is a problem with your installation, I have set the mem limit to unlimited and it still returns errors. It is currently set at 48M which is way more than enough. Most TYPO3 installs run with 36M just fine.


Best Regards,
----------------
So it doesn't seem to be a problem with the PHP memory_limit. (I also recognize that the ISP probably doesn't know about the starter package and only thinks that I'm installing TYPO3.)

I'm running the install on a "clean" website. I set up a new domain and for this application. Nothing is loaded in it, except the starter package and a simple phpinfo.php web page - so I can look at the PHP parameters.

The install was going fine. I've downloaded the tar file, unpacked it, changed the file permissions, created the database and added an administrative user and am in the configuration phase when the error occurs - just when I'm attempting to Close the Security Risk - Backend User Admin.

At this point, I'm stumped.

Thank you in advance for your help.
Author: Mark Woodger
Posted: Jul 22 2008 - 08:34 AM
Subject: re: Fatal error: Allowed memory size
I've had this problem many times having installed the WEC starter package on quite a few different servers. This is the way I have found to be effective, why not try it out and see it works for you.

Create a file called php.ini with the following in and upload it into the root directory of your site. I have occasionally had to put it in the same directory as the error message too ie. in this case - public_html/rearcher.com/typo3conf/ext/cal/controller/


memory_limit = 64M
Author: Jeff Segars
Posted: Jul 22 2008 - 09:27 AM
Subject: re: Fatal error: Allowed memory size
Russ,
As Mark suggested, I would see if your ISP is willing to (even temporarily) raise the limit to 64M. I would have expected 48M to work fine, but if 64M doesn't, then we know there's some other problem coming into play.

Thanks,
Jeff
user picture Author: Russell (Russ) Archer
Posted: Jul 22 2008 - 02:53 PM
Subject: re: Fatal error: Allowed memory size
Many thanks to Mark and Jeff:

Mark: Adding the php.ini file seems to do the trick. I wonder why it isn't included in the starter package!

Jeff: Interestingly, my ISP changed the limit to "unlimited" and that didn't help. Adding my own php.ini file in my root directory let me proceed just fine.

Russ Archer
Total Posts: 4 - Pages (1): [1]
You must login to post a message to this conference.