Jump to:

23371 Posts in 18161 Topics by 2865 members

General Questions

SilverStripe Forums » General Questions » Losing Admin Error **SOLVED**

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1 2
Go to End
Author Topic: 1958 Views
  • ambient
    Avatar
    Community Member
    123 Posts

    Losing Admin Error **SOLVED** Link to this post

    Hi All,

    This seems like a weird one but I've been noticing recently that my admin section keeps refreshing itself to a blank page. And then I have to click refresh again to get it back.
    I thought it might be Mozilla since I recently updated it. But no, because when I tried it in Chrome it still happens only Chrome gives me an error:

    Server error

    The website encountered an error while retrieving http://www.mysite/admin?flush=1. It may be down for maintenance or configured incorrectly.

    Here are some suggestions:
    Reload this webpage later.

    HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

    Does anyone have any idea why this might be happening and what I could do to stop it?

  • swaiba
    Avatar
    Forum Moderator
    1784 Posts

    Re: Losing Admin Error **SOLVED** Link to this post

    Hi,

    Are you in dev mode? do you have any more information from logs etc?
    -->http://www.silverstripe.org/general-questions/show/16055

  • ambient
    Avatar
    Community Member
    123 Posts

    Re: Losing Admin Error **SOLVED** Link to this post

    Hi Swaiba,

    I am running in dev mode but no errors show up. I've had the site up for a while and the site itself is fine.
    It's just when I'm in the admin section that it seems to lose it's connection and I have to refresh the page.

    The thing is I didn't think the admin needed a constant connection. I thought only when saving or publishing it would then connect to the server?
    If I have admin open in a browser tab but I'm in another tab browsing the internet when I come back to the admin it's gone blank (or in Chrome the error is showing)

    My other Silverstripe sites are fine. They are hosted with a different hosting company. I don't know if that is a factor.

    Do you know where else I might be able to find error info from the site. I'm kind of new to the development side of things.

    I appreciate any help with this as it's quite frustrating.

    Thanks

  • swaiba
    Avatar
    Forum Moderator
    1784 Posts

    Re: Losing Admin Error **SOLVED** Link to this post

    apache error logs?

  • ambient
    Avatar
    Community Member
    123 Posts

    Re: Losing Admin Error **SOLVED** Link to this post

    It took me a while but I think I found the error file
    This is the last error thats on the page

    [Wed Aug 31 13:02:05 2011] [error] [client 109.255.215.36] PHP Warning: Call-time pass-by-reference has been deprecated in /usr/local/pem/vhosts/145354/webspace/httpdocs/Preview/projects/code/CheckoutPage.php on line 192, referer: http://www.mysite.com/Preview/admin?flush=1

  • swaiba
    Avatar
    Forum Moderator
    1784 Posts

    Re: Losing Admin Error **SOLVED** Link to this post

    hmmm looks like only a warning... but might be enough
    are you using the eCommerce method or is that your own checkoutpage.php?

  • ambient
    Avatar
    Community Member
    123 Posts

    Re: Losing Admin Error **SOLVED** Link to this post

    Ah, maybe it's nothing to do with the warning. When I refresh the error page after the admin has gone blank this is the error I get

    [Wed Aug 31 13:43:05 2011] [error] [client 109.255.215.36] PHP Fatal error: Out of memory (allocated 18612224) (tried to allocate 85 bytes) in /usr/local/pem/vhosts/145354/webspace/httpdocs/Preview/sapphire/security/Member.php on line 1860, referer: http://www.mysite.com/Preview/admin?flush=1

  • swaiba
    Avatar
    Forum Moderator
    1784 Posts

    Re: Losing Admin Error **SOLVED** Link to this post

    "PHP Fatal error: Out of memory" - simples add more memory!

    joking

    My guess would be that you have a lot of members and it is trying to create a dropodown containing them all.
    If this rings a bell then try and replace all scaffolded (or specifically coded) part that might have a member drop down with https://github.com/ajshort/silverstripe-itemsetfield

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