php - Silverstripe: I can't handle sub-URLs of a Form object. Subsites module -


A bit of a long shot, but can someone put any light on it?

I have recently installed the subsystem module for running multiple sites from the same installation and now the error is coming up: "I can not handle the sub-URL of a form object." When I try to add a description / title in the Image Gallery object, I have removed the subsites to verify that it is causing a problem. I'm using 2.4

I can fix the images, but this happens when the problem is trying to save any details from the popup that is causing the problem.

I have also tried with default areas and it still gives the same error.

My code:

  & lt ;? Php square gallery page {public static $ db = array ('SummaryText' = & gt; text ',' gallery text '= & gt;' text '); Fixed $ has_many = array ('Photos' = & gt; 'GalleryPhoto'); Function getCMSFields () {$ fields = parent :: getCMSFields (); $ Manager = New ImageDataObjectManager ($$, // Controller 'photo', // source name 'gallery photo', // source code 'image' // file name on data object); $ Manager- & gt; UploadFolder = $ this- & gt; URLSegment; $ Fields- & gt; AddFieldToTab ('Root.Source main', new textfield ('summary text', 'summary text (appears in section preview)'), 'content'); $ Fields- & gt; AddFieldToTab ('Root.Source main', new textfield ('Gallery Text', 'Gallery Text (Entering anything here will overwrite any image title and description'), 'Content'); $ Fields- & gt; AddFieldsToTab ("Root.Content.Gallery", array ($ manager)); $ Fields- & gt; RemoveFieldFromTab ('root content', 'style text'); $ Fields- & gt; RemoveFieldFromTab ('root content', 'column2'); $ Fields- & gt; RemoveFieldFromTab ('root content', 'content'); Return $ field; }}   

..

  & lt ;? Php square GalleryPhoto photos {public static $ db = array ('HTMLDescription' => 'HTMLText'); Stable $ is_on = array ('gallery' = & gt; 'gallery'); Public function getCMSFields () {$ fields = parent :: getCMSFields (); $ Fields- & gt; Removebyname ('description'); $ Fields- & gt; Removebyname ('title'); $ Fields- & gt; Replacement field ('HTMLDescription', new SimpleTinyMCEField ('HTMLDescription')); Return $ field; Unfortunately, "I can not handle sub-URLs of a form object."}}    

"There is a very common error message and difficult to debug instead of my experience.

Honestly, the subsite module in my opinion is not that great, it works, but It's good and not really compatible, I think with other modules.

I could have thought of your error. This is because the silver stop forgets the subsite ID inside the popup and because of that silverstrip, you are unable to edit the current page (because it adds a filter where the subsite id = every query of the pages you created )

To begin debugging in one place, the subtitle :: will be hooked in current sitebsID () and see that when you are in a popup, / P>

also get an error message When asked what is the correct URL?

Comments