Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Fatal error while installing SilverStripe


Go to End


9 Posts   17022 Views

Avatar
Andi80

Community Member, 3 Posts

13 January 2008 at 12:25pm

The following problem appears if I try to install silverstripe on my webserver (external hosted):

- DB check says: "These database details look all good!"
- The other requirmenets are shown green (good) as well

But after some seconds the following message appears:

-----
Installing SilverStripe...

I am now running through the installation steps (this should take about 30 seconds)

If you receive a fatal error, refresh this page to continue the installation
# Creating 'mysite/_config.php'...
# Creating '.htaccess' file...
# Building database schema...

Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 19 bytes) in /home/mydomain/public_html/silverstripe/sapphire/core/Object.php on line 251

-----

If I try do refresh the page as the program says to me, the following message appears:
-----
Installing SilverStripe...

I am now running through the installation steps (this should take about 30 seconds)

If you receive a fatal error, refresh this page to continue the installation
# Creating 'mysite/_config.php'...
# Creating '.htaccess' file...
# Building database schema...

Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 43790 bytes) in /home/mydomain/public_html/silverstripe/sapphire/profiler/Profiler.php on line 81

-----

If I try to refresh once more, the message doesn't change anymore. Keeps saying this.

I've never had problems installing other CMS system on this server; so what could the problem be like?

Thanks for help!

Avatar
dio5

Community Member, 501 Posts

13 January 2008 at 12:32pm

You're memory limit is not high enough.

Put this in your .htaccess file:

php_value memory_limit 64M

Avatar
Andi80

Community Member, 3 Posts

14 January 2008 at 1:12am

Thanks, but 64M doesn't seems do be enough.

It installed it but after the installation I recevied the following error:

-----
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 7864320 bytes) in /var/tmp/silverstripe-cache-home-mydomain-public_html-silverstripe/cache.php on line 4
-----

Maybe it works better with 128M ;)

Avatar
dio5

Community Member, 501 Posts

14 January 2008 at 1:15am

That would be quite a lot... Should tell the developers to keep it down before it grows outta hand. :-)

Avatar
Andi80

Community Member, 3 Posts

14 January 2008 at 1:25am

Jah, 128M would be a lot, but it really seems at it already could need 78M or more as you can see in my error log.

Avatar
Wojtek

Community Member, 149 Posts

14 January 2008 at 2:21am

Jeeeezus! That's a lot! There must be something wrong with your configuration / database / or the silverstripe itself...

Avatar
marcus.buchwald

Community Member, 2 Posts

13 May 2008 at 12:04am

Edited: 13/05/2008 12:13am

Hi!

I have exactly the same problem:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 35 bytes) in C:\xampp\xampp\htdocs\silverstripe\sapphire\misc\Browscap.php on line 339

and also no idea what to do. The interesting thing is that the excess is only 35 - 40 bytes. I´using WIN 2003, Apache 2 with PHP 5 / mySQL 5. It is not a browser issue; I tried it in FF and IE.

The install.php sets up the database correctly with all tables but does not enter any table content.

MOST interesting thing is that it seems to work anyway! I just entered http://localhost/silverstripe and got the login screen. Login works, I´m in.

I´ll keep you updated!

Avatar
kiwifellows

Community Member, 10 Posts

13 May 2008 at 5:45am

Hi,

I also had this problem when installing on http://www.fullgospel.org.nz/, but anyway after installation and above memory error occured I just typed in the home page url and haven't had any problems since.

Increased Memory size in PHP.ini on the server, but this won't do anything even after restarting apache.

cheers,

Ben
http://www.fullgospel.org.nz/

Go to Top