21305 Posts in 5736 Topics by 2603 members
| Go to End | Next > | |
| Author | Topic: | 1671 Views |
-
Errors in BackEnd [SOLVED]

5 December 2009 at 3:07am Last edited: 9 December 2009 2:49am
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-cacheI 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-cacheDate: 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" -
Re: Errors in BackEnd [SOLVED]

5 December 2009 at 4:35am
What does firebug say in the Response section? That is where the actual error would be.
-
Re: Errors in BackEnd [SOLVED]

5 December 2009 at 4:41am
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" -
Re: Errors in BackEnd [SOLVED]

5 December 2009 at 4:55am
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).
-
Re: Errors in BackEnd [SOLVED]

5 December 2009 at 8:03am
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
-
Re: Errors in BackEnd [SOLVED]

5 December 2009 at 10:54am
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.
-
Re: Errors in BackEnd [SOLVED]

8 December 2009 at 6:16am
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?
-
Re: Errors in BackEnd [SOLVED]

8 December 2009 at 6:28am
Yep, that sounds right. Have you checked the apache error log for php stuff? Is the php GD module installed and loaded?
| 1671 Views | ||
| Go to Top | Next > |


