Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » new hosting provider, new challenge

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: 2739 Views
  • Fuzz10
    Avatar
    Community Member
    786 Posts

    Re: new hosting provider, new challenge Link to this post

    This probably will not help you very much, but we've had _major_ problems running Silverstripe on PHP 5.1.2. Don't know about older versions. But from 5.1.6 on we've had no problems.

  • mbellino
    Avatar
    Community Member
    32 Posts

    Re: new hosting provider, new challenge Link to this post

    Hello Fuzz10

    Strike! Thanks for your hint.

    The Problem was caused from the php version < 5.1.x
    After upgrading (add parameter to .htaccess) the php version to 5.2.2 the website appear!

    But now I have the famous memory problem
    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 4980736 bytes).

    I've tried to set ini_set("memory_limit","32M"); in sapphire/main.php without any success. After a few reload the site works if I don't use ?flush=1

    http://smc-cms.bellino.ch/?flush=1

    Although with php 5.2.2 I still have the sitemap.xml issue with a new error:
    FATAL ERROR: No current controller available
    At line 329 in .../sapphire/core/control/Controller.php

    http://smc-cms.bellino.ch/sitemap.xml

    Anybody an idea?

    Cheers

    Mario

  • dio5
    Avatar
    Community Member
    501 Posts

    Re: new hosting provider, new challenge Link to this post

    Try setting it to 64mb.

    I've heard that the latest version requires more than 32mb. (This might be only when installing though.)

    Alternatively try setting the memorylimit in your htaccess file:

    php_value memory_limit 64M

  • Fuzz10
    Avatar
    Community Member
    786 Posts

    Re: new hosting provider, new challenge Link to this post

    Glad to hear it runs ; I know how aggravating it can be losing a lot of time getting something online. ;-) I guess it is pretty safe to say Silverstripe _needs_ PHP > 5.1.2 and > 32MB scriptmem.

    Very weird error ... You don't happen to accidentally have a conflicting page or class called Sitemap ?

  • mbellino
    Avatar
    Community Member
    32 Posts

    Re: new hosting provider, new challenge Link to this post

    Hello guys

    Thanks for your great support! It works now!

    Step by step we come to the point and by the way we detect some interesting facts

    I've changed the saphire/main.php value from 32 to 64
    ini_set("memory_limit","64M")

    and also adapted the .htaccess from 32 to 64
    php_value memory_limit 64M

    Sitemap.xml
    * * * * * * *
    The sitemap.xml issue still persist. I've checked the page names and classes.
    No doublets at all. But I have news!
    I have figured out that when I changed the set_environment_type parameter in my _config.php from dev to live or remove it, the FATAL ERROR doesn't occure anymore.
    Director::set_environment_type("live"); instead I have a new FATAL ERROR

    Fatal error: Call to a member function getSession() on a non-object in .../sapphire/core/Session.php on line 32

    God bless the session();

    Mario

  • mbellino
    Avatar
    Community Member
    32 Posts

    Re: new hosting provider, new challenge Link to this post

    Update on sitemap.xml

    I've installed the new release candidate 2.2.1 rc1

    and the sitemap rocks!!

    Thanks all

    Cheerio
    Mario

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