Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

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

JSON response to logging in?!


Reply


151 Views

Avatar
prezet

Community Member, 5 Posts

1 July 2014 at 7:06am

Edited: 01/07/2014 7:12am

Hi

On occasions when I try to login - I get a JSON content response in the web browser? I don't get this on my local dev environment, only live - has anyone else come across this?

This is what I get as a response from /admin/pages:

{"Content":"<div id=\"pages-controller-cms-content\" class=\"cms-content center cms-tabset CMSPagesController CMSMain LeftAndMain\" data-layout-type=\"border\" data-pjax-fragment=\"Content\">\n\n\t<div class=\"cms-content-header north\">\n\t\t<div class=\"cms-content-header-info\">\n\t\t\t<div class=\"breadcrumbs-wrapper\" data-pjax-fragment=\"Breadcrumbs\">\n\t<h2 id=\"page-title-heading\">\n\t\t\n\t\t\t<span class=\"section-icon icon icon-16 icon-cmspagescontroller\"><\/span>\n\t\t\n\n\t\t\n\t\t\t\n\t\t\t\t<a class=\"cms-panel-link crumb\" href=\"admin\/pages\/\">Pages<\/a>\n\t\t\t\t<span class=\"sep\">\/<\/span>\n\t\t\t\n\t\t\n\t\t\t\n\t\t\t\t<span class=\"cms-panel-link crumb last\">Home<\/span>\n\t\t\t\n\t\t\n\t<\/h2>\n<\/div>\n\n\t\t<\/div>\n\n\t\t<div class=\"cms-content-header-tabs\">\n\t\t\t<ul class=\"cms-tabset-nav-primary\">\n\t\t\t\t<li class=\"content-treeview cms-tabset-icon tree\">\n\t\t\t\t\t<a href=\"#cms-content-treeview\" class=\"cms-panel-link\" data-href=\"admin\/pages\/treeview\">Tree View<\/a>\n\t\t\t\t<\/li>\n\t\t\t\t<li class=\"content-listview cms-tabset-icon list\">\n\t\t\t\t\t<a href=\"#cms-content-listview\" class=\"cms-panel-link\" data-href=\"admin\/pages\/listview\">List View<\/a>\n\t\t\t\t<\/li>\n\t\t\t\t<!--\n\t\t\t\t<li class=\"content-galleryview cms-tabset-icon gallery\">\n\t\t\t\t\t<a href=\"#cms-content-galleryview\">Gallery View<\/a>\n\t\t\t\t<\/li>\n\t\t\t\t-->\n\t\t\t<\/ul>\n\t\t<\/div>\n\t<\/div>\n\n\t<div class=\"cms-content-tools west cms-panel cms-panel-layout collapsed\" data-expandOnClick=\"true\" data-layout-type=\"border\" id=\"cms-content-tools-CMSPagesController\">\n\t<div class=\"cms-panel-content center\">\n\t\t<h3 class=\"cms-panel-header\">Filter<\/h3>\n\t\t\n<form id=\"Form_SearchForm\" action=\"admin\/pages\/\" method=\"get\" enctype=\"application\/x-www-form-urlencoded\" class=\"cms-search-form\">\n\n\t\n\t<p id=\"Form_SearchForm_error\" class=\"message \" style=\"display: none\"><\/p>\n\t\n\t\n\t<fieldset>\n\t\t \n\t\t\n\t\t\t<div id=\"q[Term]\" class=\"field text\">\n\t<label class=\"left\" for=\"Form_SearchForm_q-Term\">Content<\/label>\n\t<div class=\"middleColumn\">\n\t\t<input type=\"text\" name=\"q[Term]\" class=\"text\" id=\"Form_SearchForm_q-Term\" \/>\n\t<\/div>\n\t\n\t\n\t\n<\/div>\n\n\t\t\n\t\t\t<div class=\"fieldgroup stacked nolabel\" id=\"Form_SearchForm_\">\n\t\n\t\t<div class=\"fieldgroup-field first odd\">\n\t\t\t<h4 id=\"Form_SearchForm_q-Date\">Date<\/h4>\n\t\t<\/div>\n\t\n\t\t<div class=\"fieldgroup-field even\">\n\t\t\t<div id=\"q[LastEditedFrom]\" class=\"field date text\">\n\t<label class=\"left\" for=\"Form_SearchForm_q-LastEditedFrom\">From<\/label>\n\t<div class=\"middleColumn\">\n\t\t<input type=\"text\" name=\"q[LastEditedFrom]\" class=\"date text\" id=\"Form_SearchForm_q-LastEditedFrom\" data-showcalendar=\"data-showcalendar\" data-isoDateformat=\"MMM d, y\" data-jquerydateformat=\"M d, yy\" \/>\n\t<\/div>\n\t\n\t\n\t\n<\/div>\n\n\t\t<\/div>\n\t\n\t\t<div class=\"fieldgroup-field last odd\">\n\t\t\t<div id=\"q[LastEditedTo]\" class=\"field date text\">\n\t<label class=\"left\" for=\"Form_SearchForm_q-LastEditedTo\">To<\/label>\n\t<div class=\"middleColumn\">\n\t\t<input type=\"text\" name=\"q[LastEditedTo]\" class=\"date text\" id=\"Form_SearchForm_q-LastEditedTo\" data-showcalendar=\"data-showcalendar\" data-isoDateformat=\"MMM d, y\" data-jquerydateformat=\"M d, yy\" \/>\n\t<\/div>\n\t\n\t\n\t\n<\/div>\n\n\t\t<\/div>\n\t\n<\/div>\n\n\t\t\n\t\t\t<div id=\"q[FilterClass]\" class=\"field dropdown\">\n\t<label class=\"left\" for=\"Form_SearchForm_q-FilterClass\">Pages<\/label>\n\t<div class=\"middleColumn\">\n\t\t<select name=\"q[FilterClass]\" class=\"dropdown\" id=\"Form_SearchForm_q-FilterClass\">\n\n\t<option value=\"CMSSiteTreeFilter_Search\">All pages<\/option>\n\n\t<option value=\"CMSSiteTreeFilter_ChangedPages\">Changed pages<\/option>\n\n\t<option value=\"CMSSiteTreeFilter_DeletedPages\">All pages, including deleted<\/option>\n\n<\/select>\n\n\t<\/div>\n\t\n\t\n\t\n<\/div>\n\n\t\t\n\t\t\t<div id=\"q[ClassName]\" class=\"field dropdown\">\n\t<label class=\"left\" for=\"Form_SearchForm_q-ClassName\">Page Type<\/label>\n\t<div class=\"middleColumn\">\n\t\t<select name=\"q[ClassName]\" class=\"dropdown\" id=\"Form_SearchForm_q-ClassName\">\n\n\t<option value=\"\" selected=\"selected\">Any<\/option>\n\n\t<option value=\"ContactPage\">ContactPage<\/option>\n\n\t<option value=\"DrinksHolderPage\">DrinksHolderPage<\/option>\n\n\t<option value=\"DrinksPage\">DrinksPage<\/option>\n\n\t<option value=\"ErrorPage\">Error Page<\/option>\n\n\t<option value=\"EventPage\">EventPage<\/option>\n\n\t<option value=\"EventsHolderPage\">EventsHolderPage<\/option>\n\n\t<option value=\"FoodPage\">FoodPage<\/option>\n\n\t<option value=\"HomePage\">HomePage<\/option>\n\n\t<option value=\"Page\">Page<\/option>\n\n\t<option value=\"RedirectorPage\">Redirector Page<\/option>\n\n\t<option value=\"TeamMembersPage\">TeamMembersPage<\/option>\n\n\t<option value=\"VirtualPage\">Virtual Page<\/option>\n\n<\/select>\n\n\t<\/div>\n\t\n\t\n\t\n<\/div>\n\n\t\t\n\t\t<div class=\"clear\"><!-- --><\/div>\n\t<\/fieldset>\n\n\t\n\t<div class=\"Actions\">\n\t\t\n\t\t\t\n\t<button type=\"submit\" name=\"action_doSearch\" value=\"Apply Filter\" class=\"action ss-ui-action-constructive\" id=\"Form_SearchForm_action_doSearch\">\n\t\tApply Filter\n\t<\/button>\n\n\n\t\t\n\t\t\t\n\t<button type=\"reset\" name=\"action_clear\" value=\"Reset\" class=\"resetformaction\" id=\"Form_SearchForm_action_clear\">\n\t\tReset\n\t<\/button>\n\n\n\t\t\n\t<\/div>\n\t\n\n<\/form>\n\n\n\t<\/div>\n\t<div class=\"cms-panel-content-collapsed\">\n\t\t<h3 class=\"cms-panel-header\">Filter<\/h3>\n\t<\/div>\n<\/div>\n\n\t<div class=\"cms-content-fields center ui-widget-content cms-panel-padded\">\n\n\t\t<div class=\"cms-content-view cms-panel-deferred\" id=\"cms-content-treeview\" data-url=\"admin\/pages\/treeview\">\n\t\t\t\n\t\t<\/div>\n\n\t\t<div class=\"cms-content-view cms-panel-deferred\" id=\"cms-content-listview\" data-url=\"admin\/pages\/listview\" data-deferred-no-cache=\"true\">\n\t\t\t\n\t\t<\/div>\n\t\t<!--\n\t\t<div id=\"cms-content-galleryview\">\n\t\t\t<i>Not implemented yet<\/i>\n\t\t<\/div>\n\t\t-->\n\n\t<\/div>\n\n<\/div>"}

Lee