Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » fatal error after install

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

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

Page: 1 2
Go to End
Author Topic: 5291 Views
  • livvving
    Avatar
    Community Member
    9 Posts

    fatal error after install Link to this post

    can you tell me what I need to do to get this error gone?

    url:
    http://MYSITE.com/skyht/home/successfullyinstalled?flush=1

    (there is no "home" directory!)

    message:
    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 4980736 bytes) in /tmp/silverstripe-cache-home-MYUSERNAME-public_html-skyht/cache.php on line 4

  • simon_w
    Avatar
    Forum Moderator
    471 Posts

    Re: fatal error after install Link to this post

    Increase your PHP memory limit.

    This can be done by adding ini_set('memory_limit', '64M'); to sapphire/main.php

  • livvving
    Avatar
    Community Member
    9 Posts

    Re: fatal error after install Link to this post

    thanks - whereabouts in the main.php file do I add this?

    I did have php_value memory_limit 32M
    in the .htaccess file, so I increased it to 64mb.

    I then got this error:

    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...

    Warning: fopen(/tmp/silverstripe-cache-home-USERNAME-public_html-skylt/manifest_home_USERNAME_public_html_skylt_sapphire_main.php) [function.fopen]: failed to open stream: Permission denied in /home/USERNAME/public_html/skylt/sapphire/core/ManifestBuilder.php on line 188
    Cannot write manifest file! Check permissions of /tmp/silverstripe-cache-home-USERNAME-public_html-sklt/manifest_home_USERNAME_public_html_skylt_sapphire_main.php

    any thoughts?
    thanks in advance...

  • simon_w
    Avatar
    Forum Moderator
    471 Posts

    Re: fatal error after install Link to this post

    If you increase it elsewhere, you don't need the line in main.php

    To fix your error, trying removing all the files (or even the folder) in /tmp/silverstripe-cache-home-USERNAME-public_html-skylt/

  • livvving
    Avatar
    Community Member
    9 Posts

    Re: fatal error after install Link to this post

    re:
    /tmp/silverstripe-cache-home-USERNAME-public_html-skylt/

    this url is confusing - there is no tmp folder except outside of the www folder, and there's nothing in there that has silverstripe in the name.

    I'd have thought the url should be /tmp/silverstripe/cache/home/USERNAME/public_html/skylt/ but even that makes no sense....unless its outside of the folder I have access to. Thinking about it, I think I have access only from /home/USERNAME/public_html/skylt/ up, although that doesn't explain the use of "-" instead of "/"

    I have access via FTP and CPanel only, and am on a shared server.

    I really want to get this going as I have a potential client who would love it.

  • livvving
    Avatar
    Community Member
    9 Posts

    Re: fatal error after install Link to this post

    my webhost increased the memory limit to 64mb for me using a php.ini file

    but I still get this error: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 4980736 bytes) in /tmp/silverstripe-cache-home-MYSITE-public_html-skylt/cache.php on line 4

    when I go to the site's home folder in my browser.

    I can't check the cache.php file as there isn't one! I've checked via ftp and there is no cache.php file! Odd.
    (checked www/skylt/ folder)

  • livvving
    Avatar
    Community Member
    9 Posts

    Re: fatal error after install Link to this post

    weird! It's up now!

  • clem75
    Avatar
    Community Member
    1 Post

    Re: fatal error after install Link to this post

    hi

    i've tried installing silverstripe myself and am getting similar error:

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 232 bytes) in /home/australo/public_html/ppaccueil/sapphire/forms/LookupField.php on line 44

    i've tried increasing the memory size in _config.php to 64mb to no avail.

    thanks for any assistance

    -----

    GOT IT WORKING SOMEHOW. CHEERS.

    5291 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.