Jump to:

23358 Posts in 18066 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » Errors in BackEnd [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: 2140 Views
  • zenmonkey
    Avatar
    Community Member
    527 Posts

    Errors in BackEnd [SOLVED] Link to this post

    The backend crashes when accessing a certain page. When I click on that page I get a Blank javascript alert and the FireBug gives me the a 500 error on the http://XXX.XXX/admin/getitem?ID=13&ajax=1

    Host: XXX
    User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
    Accept: text/html,text/html,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Connection: keep-alive
    X-Requested-With: XMLHttpRequest
    X-Prototype-Version: 1.4.0_rc3
    Content-Type: application/x-www-form-urlencoded; charset=utf-8
    Referer: http://XXX/admin/?isdev=1
    Content-Length: 0
    Cookie: sifrFetch=true; PHPSESSID=88idm7ce5fa8ab7sqq3c9r66h6; PastMember=1
    Pragma: no-cache
    Cache-Control: no-cache

    I get a similar error when accessing sertain Image directories to add images to my pages

    http://XXX/admin/EditForm/field/ProdImage/import/143

    Host: xxx
    User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
    Accept: text/html, */*
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Connection: keep-alive
    X-Requested-With: XMLHttpRequest
    Referer: http://cxxx/admin/EditForm/field/ProdImage/upload
    Content-Length: 0
    Content-Type: text/plain; charset=UTF-8
    Cookie: sifrFetch=true; PHPSESSID=88idm7ce5fa8ab7sqq3c9r66h6; PastMember=1
    Pragma: no-cache
    Cache-Control: no-cache

    Date: Fri, 04 Dec 2009 13:44:11 GMT
    Server: Apache/2.2.3 (CentOS)
    X-Powered-By: PHP/5.2.11
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    Set-Cookie: PastMember=1; expires=Thu, 04-Mar-2010 13:44:11 GMT; path=/
    Content-Length: 0
    Connection: close
    Content-Type: text/html; charset="utf-8"

  • dalesaurus
    Avatar
    Community Member
    283 Posts

    Re: Errors in BackEnd [SOLVED] Link to this post

    What does firebug say in the Response section? That is where the actual error would be.

  • zenmonkey
    Avatar
    Community Member
    527 Posts

    Re: Errors in BackEnd [SOLVED] Link to this post

    When I click on the Response Tab its blank, but the Response Header gives me:

    Date: Fri, 04 Dec 2009 15:19:14 GMT
    Server: Apache/2.2.3 (CentOS)
    X-Powered-By: PHP/5.2.11
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    Set-Cookie: PastMember=1; expires=Thu, 04-Mar-2010 15:19:15 GMT; path=/
    Content-Length: 0
    Connection: close
    Content-Type: text/html; charset="utf-8"

  • dalesaurus
    Avatar
    Community Member
    283 Posts

    Re: Errors in BackEnd [SOLVED] Link to this post

    Have you tried appending &isDev=1 or &debug=1 to see if an error is thrown? You could also take off the ajax=1 and open it in a new tab/browser to see whats up (with isDev or debug).

  • zenmonkey
    Avatar
    Community Member
    527 Posts

    Re: Errors in BackEnd [SOLVED] Link to this post

    When I open it in a new tab without the ajax and enable isDev it doesn't through an error other than the 500 server error in FireBug

    Debug outputs the the following:

    Debug (Director::handleRequest() in line 236 of Director.php)

    * 50 =
    o admin/security//$Action/$ID/$OtherID =

    SecurityAdmin

    o admin/reports//$Action/$ID =

    ReportAdmin

    o admin/comments//$Action =

    CommentAdmin

    o admin/assets//$Action/$ID =

    AssetAdmin

    o processes//$Action/$ID/$Batch =

    BatchProcess_Controller

    o admin/help//$Action/$ID =

    CMSHelp

    o admin/ReportField//$Action/$ID/$Type/$OtherID =

    ReportField_Controller

    o admin/bulkload//$Action/$ID/$OtherID =

    BulkLoaderAdmin

    o admin//ImageEditor/$Action =

    ImageEditor

    o admin/cms//$Action/$ID/$OtherID =

    CMSMain

    o PageComment//$Action/$ID =

    PageComment_Controller

    o dev/buildcache =

    RebuildStaticCacheTask

    * 40 =
    o admin//$Action/$ID/$OtherID =

    CMSMain

    * 10 =
    o swfuploadfile/$Action/$Class/$ID/$Field =

    SWFUploadFileIFrameField_Uploader

    o Security//$Action/$ID/$OtherID =

    Security

    o db//$Action =

    DatabaseAdmin

    o $Controller//$Action/$ID/$OtherID =

    *

    o images =

    Image_Uploader

    o =

    RootURLController

    o api/v1/live =

    VersionedRestfulServer

    o api/v1 =

    RestfulServer

    o soap/v1 =

    SOAPModelAccess

    o dev =

    DevelopmentAdmin

    o sitemap.xml =

    GoogleSitemap

    * 1 =
    o $URLSegment//$Action/$ID/$OtherID =

    ModelAsController

  • dalesaurus
    Avatar
    Community Member
    283 Posts

    Re: Errors in BackEnd [SOLVED] Link to this post

    Well that is good, how about the next step with &debug_request=1

    That will at least let you know where the response is coming from.

  • zenmonkey
    Avatar
    Community Member
    527 Posts

    Re: Errors in BackEnd [SOLVED] Link to this post

    Okay debugging the request gives the following output...

    Debug (line 110 of RequestHandler.php): Testing '$Action//$ID/$OtherID' with 'EditorToolbar/ImageForm' on CMSMain

    Debug (line 116 of RequestHandler.php): Rule '$Action//$ID/$OtherID' matched to action 'handleAction' on CMSMain. Latest request params: array (
    'Action' => 'EditorToolbar',
    'ID' => 'ImageForm',
    'OtherID' => NULL,
    )

    Debug (line 110 of RequestHandler.php): Testing '$Action' with 'ImageForm' on HtmlEditorField_Toolbar

    Debug (line 116 of RequestHandler.php): Rule '$Action' matched to action '$Action' on HtmlEditorField_Toolbar. Latest request params: array (
    'Action' => 'ImageForm',
    )

    Debug (line 110 of RequestHandler.php): Testing 'field/$FieldName!' with '' on Form

    Debug (line 110 of RequestHandler.php): Testing '$Action!' with '' on Form

    Debug (line 110 of RequestHandler.php): Testing 'POST ' with '' on Form

    Debug (line 110 of RequestHandler.php): Testing 'GET ' with '' on Form

    Debug (line 116 of RequestHandler.php): Rule 'GET ' matched to action 'httpSubmission' on Form. Latest request params: array (
    'Action' => 'ImageForm',
    )

    So am I correct in assuming the problem is with ImageForm?

  • dalesaurus
    Avatar
    Community Member
    283 Posts

    Re: Errors in BackEnd [SOLVED] Link to this post

    Yep, that sounds right. Have you checked the apache error log for php stuff? Is the php GD module installed and loaded?

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