+ Start a Discussion
Michael_JohnsonMichael_Johnson 

CMSForce Web Form Submissions w/ URL Rewriter Class

Hi All,

 

I am using CMSForce to build content of one of my current sites and am also using a URL rewriting class. The issue I am having is when using the submit button on a webform page, or calling any pagereference method, the URL rewriter class is called first and the method to save the form never gets executed. Has anyone run into similar issues using URL rewriter, and if so - have you found any workarounds? I appreciate any help with this!

David VPDavid VP

I haven't seen this yet.

Could you post your url rewriter class code ?

Michael_JohnsonMichael_Johnson
Initially the PageReference saveObject() method called in the RenderFormComponentController Class was being rewritten, so I excluded the url of '/page' from being rewritten and had it return null, expecting the saveObject() method to initiate. Any ideas? 

 

global class myRewriter implements Site.UrlRewriter {
 String VISUALFORCE_PAGE = '/page?pageid=';
 global PageReference mapRequestUrl(PageReference myFriendlyUrl){
    String url = myFriendlyUrl.getUrl();    

system.debug('***URL '+url);    

if(url.length() > 1 && url != '/page'){      

String name = url.substring(1,url.length());      

system.debug('***Name '+name);      

Page__c site_page = [select id from Page__c where URL__c =:name LIMIT 1];            

return new PageReference(VISUALFORCE_PAGE + site_page.id);
    } return null;  }  

global List<PageReference> generateUrlFor(List<PageReference> mySalesforceUrls){

    List<PageReference> myFriendlyUrls = new
    List<PageReference>();
    for(PageReference mySalesforceUrl : mySalesforceUrls){           

String url = mySalesforceUrl.getUrl();      

if(url.startsWith(VISUALFORCE_PAGE)){         

String id= url.substring(VISUALFORCE_PAGE.length(), VISUALFORCE_PAGE.length()+15);
        Page__c site_page2 = [select URL__c from Page__c where id =:id LIMIT 1];
        myFriendlyUrls.add(new PageReference(site_page2.URL__c));     }  
     else {           

myFriendlyUrls.add(mySalesforceUrl);
     }
  }
  return myFriendlyUrls;
  }
}

David VPDavid VP

Try the code below.

This is an URL rewriter that allows you to access any page via http://yourdomain.force.com/yoursite/cms/<pagename>

 

This will be part of CMSForce 2 (long overdue, but I'm working on it ...)

 

 

global class FriendlyURLs  implements Site.UrlRewriter {
	
	String CMSFORCE_PAGE = '/cms/';
	String CMSFORCE_VISUALFORCE_PAGE = '/page?pageid=';
	
	global PageReference mapRequestUrl(PageReference friendlyUrl) {
		String url = friendlyUrl.getUrl();	
		if(url.startsWith(CMSFORCE_PAGE)) {
			try {
				String name = url.substring(CMSFORCE_PAGE.length(), url.length());
				
				//Select the ID of the (first) page that matches
				//the name from the URL
				Page__c p = [select Id, Name from Page__c where Name = :name LIMIT 1];
				
				return new PageReference(CMSFORCE_VISUALFORCE_PAGE + p.id);
			}
			catch(Exception ex) {
				return null;
			}
		}
		return null;
	}
	
	//not implemented at this time
	global PageReference[] generateUrlFor(PageReference[] yourSalesforceUrls) {return null;}
	
	
	//TEST METHODS
	private static testMethod void t1() {
		PageTemplate__c pt = new PageTemplate__c(Name = 'TestTemplatexyz', VisualForce_Page_Name__c = 'TestTemplate', ContentBlockNames__c = 'a,b,c');
		insert pt;
		
		Page__c p = new Page__c(Name = 'testpagexyz', PageTemplate__c = pt.Id);
		insert p;
		
		FriendlyURLs fu = new FriendlyURLs();
		PageReference pr = new Pagereference('/cms/testpagexyz');
		PageReference origurl = fu.mapRequestUrl(pr);
		System.debug(origurl.getUrl());
		
		System.assertEquals('/page?pageid='+p.Id, origurl.getUrl()); 		
	}
}

 

 

Michael_JohnsonMichael_Johnson

The URL rewriter works (I changed it to pull from a custom field called URL I added) but submitting a form using the webform component does not seem to be working. When I turn the url rewriter off it works fine. Here is the debug log after a form submit.

 

15.0 APEX_CODE,DEBUG;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;VALIDATION,INFO;WORKFLOW,INFO
18:44:17.498|EXECUTION_STARTED
18:44:17.499|CODE_UNIT_STARTED|[EXTERNAL]|066S00000004Vsm|VF: /apex/page
18:44:17.499|CODE_UNIT_STARTED|[EXTERNAL]|01pS00000004tOu|contentblockcomponentController get(items)
18:44:17.500|CODE_UNIT_STARTED|[EXTERNAL]|01pS00000004tOu|contentblockcomponentController invoke(getitems)
18:44:17.500|METHOD_ENTRY|[27]|System.debug(ANY)
18:44:17.500|METHOD_ENTRY|[27]|System.PageReference.getParameters()
18:44:17.500|METHOD_ENTRY|[27]|System.currentPageReference()
18:44:17.500|METHOD_EXIT|[27]|System.currentPageReference()
18:44:17.500|METHOD_EXIT|[27]|System.PageReference.getParameters()
18:44:17.500|USER_DEBUG|[27]|DEBUG|{j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207=j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207, j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207:fileToUpload:inputFile:file=/home/sfdc/salesforce/sfdc/jsp/form/form1290382123.tmp, j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207:fileToUpload:inputFile:file.content-type=application/octet-stream, j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207:fileToUpload:inputFile:file.file=/home/sfdc/salesforce/sfdc/jsp/form/form1290382123.tmp, j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207:fileToUpload:inputFile:file.filename=, j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207:j_id209:0:j_id216:j_id217:j_id218=test, j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207:j_id209:1:j_id216:j_id217:j_id218=test, j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207:j_id289=Submit, pageid=a1vS00000008WRXIA2}
18:44:17.500|METHOD_EXIT|[27]|System.debug(ANY)
18:44:17.500|METHOD_ENTRY|[28]|System.debug(ANY)
18:44:17.500|USER_DEBUG|[28]|DEBUG|Name : LeftNavTitle
18:44:17.500|METHOD_EXIT|[28]|System.debug(ANY)
18:44:17.501|METHOD_ENTRY|[29]|MAP.get(ANY)
18:44:17.501|METHOD_ENTRY|[29]|System.PageReference.getParameters()
18:44:17.501|METHOD_ENTRY|[29]|System.currentPageReference()
18:44:17.501|METHOD_EXIT|[29]|System.currentPageReference()
18:44:17.501|METHOD_EXIT|[29]|System.PageReference.getParameters()
18:44:17.501|METHOD_EXIT|[29]|MAP.get(ANY)
18:44:17.502|SOQL_EXECUTE_BEGIN|[48]|Aggregations:0|Select p.Page__c, p.Id, p.Display_in_Contentblock__c, p.ContentBlockItem__r.Content__c,
                     p.ContentBlockItem__r.LastActivityDate, p.ContentBlockItem__r.SystemModstamp, p.ContentBlockItem__r.LastModifiedById, 
                     p.ContentBlockItem__r.LastModifiedDate, p.ContentBlockItem__r.CreatedById, p.ContentBlockItem__r.CreatedDate, 
                     p.ContentBlockItem__r.Name, p.ContentBlockItem__r.Id, p.ContentBlockItem__r.Type__c, p.ContentBlockItem__r.Web_Form__c, p.ContentBlockItem__c 
                     From PageToItem__c p where Display_in_ContentBlock__c =:name and Page__c =:pageid order by Order__c
18:44:17.507|SOQL_EXECUTE_END|[48]|Rows:0
18:44:17.507|METHOD_ENTRY|[54]|System.debug(ANY)
18:44:17.507|USER_DEBUG|[54]|DEBUG|Pageitems : ()
18:44:17.507|METHOD_EXIT|[54]|System.debug(ANY)
18:44:17.508|SOQL_EXECUTE_BEGIN|[61]|Aggregations:0|Select  p.PageTemplate__r.VisualForce_Page_Name__c, p.PageTemplate__c, p.PageTemplate__r.Name, p.Name, p.Id
                From Page__c p where id =:pageid
18:44:17.515|SOQL_EXECUTE_END|[61]|Rows:1
18:44:17.516|CODE_UNIT_FINISHED|contentblockcomponentController invoke(getitems)
18:44:17.516|CODE_UNIT_FINISHED|contentblockcomponentController get(items)
18:44:17.519|CODE_UNIT_STARTED|[EXTERNAL]|01pS00000004tOu|contentblockcomponentController get(items)
18:44:17.519|CODE_UNIT_STARTED|[EXTERNAL]|01pS00000004tOu|contentblockcomponentController invoke(getitems)
18:44:17.519|METHOD_ENTRY|[27]|System.debug(ANY)
18:44:17.519|METHOD_ENTRY|[27]|System.PageReference.getParameters()
18:44:17.519|METHOD_ENTRY|[27]|System.currentPageReference()
18:44:17.519|METHOD_EXIT|[27]|System.currentPageReference()
18:44:17.519|METHOD_EXIT|[27]|System.PageReference.getParameters()
18:44:17.519|USER_DEBUG|[27]|DEBUG|{j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207=j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207, j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207:fileToUpload:inputFile:file=/home/sfdc/salesforce/sfdc/jsp/form/form1290382123.tmp, j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207:fileToUpload:inputFile:file.content-type=application/octet-stream, j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207:fileToUpload:inputFile:file.file=/home/sfdc/salesforce/sfdc/jsp/form/form1290382123.tmp, j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207:fileToUpload:inputFile:file.filename=, j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207:j_id209:0:j_id216:j_id217:j_id218=test, j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207:j_id209:1:j_id216:j_id217:j_id218=test, j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207:j_id289=Submit, pageid=a1vS00000008WRXIA2}
18:44:17.519|METHOD_EXIT|[27]|System.debug(ANY)
18:44:17.519|METHOD_ENTRY|[28]|System.debug(ANY)
18:44:17.519|USER_DEBUG|[28]|DEBUG|Name : LeftLinks
18:44:17.519|METHOD_EXIT|[28]|System.debug(ANY)
18:44:17.519|METHOD_ENTRY|[29]|MAP.get(ANY)
18:44:17.519|METHOD_ENTRY|[29]|System.PageReference.getParameters()
18:44:17.519|METHOD_ENTRY|[29]|System.currentPageReference()
18:44:17.519|METHOD_EXIT|[29]|System.currentPageReference()
18:44:17.519|METHOD_EXIT|[29]|System.PageReference.getParameters()
18:44:17.519|METHOD_EXIT|[29]|MAP.get(ANY)
18:44:17.520|SOQL_EXECUTE_BEGIN|[48]|Aggregations:0|Select p.Page__c, p.Id, p.Display_in_Contentblock__c, p.ContentBlockItem__r.Content__c,
                     p.ContentBlockItem__r.LastActivityDate, p.ContentBlockItem__r.SystemModstamp, p.ContentBlockItem__r.LastModifiedById, 
                     p.ContentBlockItem__r.LastModifiedDate, p.ContentBlockItem__r.CreatedById, p.ContentBlockItem__r.CreatedDate, 
                     p.ContentBlockItem__r.Name, p.ContentBlockItem__r.Id, p.ContentBlockItem__r.Type__c, p.ContentBlockItem__r.Web_Form__c, p.ContentBlockItem__c 
                     From PageToItem__c p where Display_in_ContentBlock__c =:name and Page__c =:pageid order by Order__c
18:44:17.525|SOQL_EXECUTE_END|[48]|Rows:0
18:44:17.525|METHOD_ENTRY|[54]|System.debug(ANY)
18:44:17.525|USER_DEBUG|[54]|DEBUG|Pageitems : ()
18:44:17.525|METHOD_EXIT|[54]|System.debug(ANY)
18:44:17.525|SOQL_EXECUTE_BEGIN|[61]|Aggregations:0|Select  p.PageTemplate__r.VisualForce_Page_Name__c, p.PageTemplate__c, p.PageTemplate__r.Name, p.Name, p.Id
                From Page__c p where id =:pageid
18:44:17.531|SOQL_EXECUTE_END|[61]|Rows:1
18:44:17.531|CODE_UNIT_FINISHED|contentblockcomponentController invoke(getitems)
18:44:17.531|CODE_UNIT_FINISHED|contentblockcomponentController get(items)
18:44:17.534|CODE_UNIT_STARTED|[EXTERNAL]|01pS00000004tOu|contentblockcomponentController get(items)
18:44:17.535|CODE_UNIT_STARTED|[EXTERNAL]|01pS00000004tOu|contentblockcomponentController invoke(getitems)
18:44:17.535|METHOD_ENTRY|[27]|System.debug(ANY)
18:44:17.535|METHOD_ENTRY|[27]|System.PageReference.getParameters()
18:44:17.535|METHOD_ENTRY|[27]|System.currentPageReference()
18:44:17.535|METHOD_EXIT|[27]|System.currentPageReference()
18:44:17.535|METHOD_EXIT|[27]|System.PageReference.getParameters()
18:44:17.535|USER_DEBUG|[27]|DEBUG|{j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207=j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207, j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207:fileToUpload:inputFile:file=/home/sfdc/salesforce/sfdc/jsp/form/form1290382123.tmp, j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207:fileToUpload:inputFile:file.content-type=application/octet-stream, j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207:fileToUpload:inputFile:file.file=/home/sfdc/salesforce/sfdc/jsp/form/form1290382123.tmp, j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207:fileToUpload:inputFile:file.filename=, j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207:j_id209:0:j_id216:j_id217:j_id218=test, j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207:j_id209:1:j_id216:j_id217:j_id218=test, j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207:j_id289=Submit, pageid=a1vS00000008WRXIA2}
18:44:17.535|METHOD_EXIT|[27]|System.debug(ANY)
18:44:17.535|METHOD_ENTRY|[28]|System.debug(ANY)
18:44:17.535|USER_DEBUG|[28]|DEBUG|Name : Center
18:44:17.535|METHOD_EXIT|[28]|System.debug(ANY)
18:44:17.535|METHOD_ENTRY|[29]|MAP.get(ANY)
18:44:17.535|METHOD_ENTRY|[29]|System.PageReference.getParameters()
18:44:17.535|METHOD_ENTRY|[29]|System.currentPageReference()
18:44:17.535|METHOD_EXIT|[29]|System.currentPageReference()
18:44:17.535|METHOD_EXIT|[29]|System.PageReference.getParameters()
18:44:17.535|METHOD_EXIT|[29]|MAP.get(ANY)
18:44:17.536|SOQL_EXECUTE_BEGIN|[48]|Aggregations:0|Select p.Page__c, p.Id, p.Display_in_Contentblock__c, p.ContentBlockItem__r.Content__c,
                     p.ContentBlockItem__r.LastActivityDate, p.ContentBlockItem__r.SystemModstamp, p.ContentBlockItem__r.LastModifiedById, 
                     p.ContentBlockItem__r.LastModifiedDate, p.ContentBlockItem__r.CreatedById, p.ContentBlockItem__r.CreatedDate, 
                     p.ContentBlockItem__r.Name, p.ContentBlockItem__r.Id, p.ContentBlockItem__r.Type__c, p.ContentBlockItem__r.Web_Form__c, p.ContentBlockItem__c 
                     From PageToItem__c p where Display_in_ContentBlock__c =:name and Page__c =:pageid order by Order__c
18:44:17.548|SOQL_EXECUTE_END|[48]|Rows:2
18:44:17.548|METHOD_ENTRY|[54]|System.debug(ANY)
18:44:17.548|USER_DEBUG|[54]|DEBUG|Pageitems : (PageToItem__c:{Display_in_Contentblock__c=Center, Page__c=a1vS00000008WRXIA2, CurrencyIsoCode=USD, ContentBlockItem__c=a04S0000001xoM1IAI, Id=a1uS0000000Ci0jIAC}, PageToItem__c:{Display_in_Contentblock__c=Center, Page__c=a1vS00000008WRXIA2, CurrencyIsoCode=USD, ContentBlockItem__c=a04S0000002VLU0IAO, Id=a1uS0000000CnPmIAK})
18:44:17.548|METHOD_EXIT|[54]|System.debug(ANY)
18:44:17.548|METHOD_ENTRY|[58]|LIST.add(ANY)
18:44:17.548|METHOD_EXIT|[58]|LIST.add(ANY)
18:44:17.548|METHOD_ENTRY|[58]|LIST.add(ANY)
18:44:17.549|METHOD_EXIT|[58]|LIST.add(ANY)
18:44:17.549|SOQL_EXECUTE_BEGIN|[61]|Aggregations:0|Select  p.PageTemplate__r.VisualForce_Page_Name__c, p.PageTemplate__c, p.PageTemplate__r.Name, p.Name, p.Id
                From Page__c p where id =:pageid
18:44:17.554|SOQL_EXECUTE_END|[61]|Rows:1
18:44:17.554|CODE_UNIT_FINISHED|contentblockcomponentController invoke(getitems)
18:44:17.554|CODE_UNIT_FINISHED|contentblockcomponentController get(items)
18:44:17.558|CODE_UNIT_STARTED|[EXTERNAL]|01pS00000004tOp|RenderFormComponentController <init>
18:44:17.559|METHOD_ENTRY|[31]|System.debug(ANY)
18:44:17.559|USER_DEBUG|[31]|DEBUG|FORM ID null
18:44:17.559|METHOD_EXIT|[31]|System.debug(ANY)
18:44:17.559|CODE_UNIT_FINISHED|RenderFormComponentController <init>
18:44:17.559|CODE_UNIT_STARTED|[EXTERNAL]|01pS00000004tOp|RenderFormComponentController get(fields)
18:44:17.560|CODE_UNIT_STARTED|[EXTERNAL]|01pS00000004tOp|RenderFormComponentController invoke(getfields)
18:44:17.560|CODE_UNIT_FINISHED|RenderFormComponentController invoke(getfields)
18:44:17.560|CODE_UNIT_FINISHED|RenderFormComponentController get(fields)
18:44:17.563|CODE_UNIT_STARTED|[EXTERNAL]|01pS00000004tOp|RenderFormComponentController get(fields)
18:44:17.563|CODE_UNIT_STARTED|[EXTERNAL]|01pS00000004tOp|RenderFormComponentController invoke(getfields)
18:44:17.563|CODE_UNIT_FINISHED|RenderFormComponentController invoke(getfields)
18:44:17.563|CODE_UNIT_FINISHED|RenderFormComponentController get(fields)
18:44:17.568|CODE_UNIT_STARTED|[EXTERNAL]|01pS00000004tOu|contentblockcomponentController get(items)
18:44:17.568|CODE_UNIT_STARTED|[EXTERNAL]|01pS00000004tOu|contentblockcomponentController invoke(getitems)
18:44:17.569|METHOD_ENTRY|[27]|System.debug(ANY)
18:44:17.569|METHOD_ENTRY|[27]|System.PageReference.getParameters()
18:44:17.569|METHOD_ENTRY|[27]|System.currentPageReference()
18:44:17.570|METHOD_EXIT|[27]|System.currentPageReference()
18:44:17.570|METHOD_EXIT|[27]|System.PageReference.getParameters()
18:44:17.570|USER_DEBUG|[27]|DEBUG|{j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207=j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207, j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207:fileToUpload:inputFile:file=/home/sfdc/salesforce/sfdc/jsp/form/form1290382123.tmp, j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207:fileToUpload:inputFile:file.content-type=application/octet-stream, j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207:fileToUpload:inputFile:file.file=/home/sfdc/salesforce/sfdc/jsp/form/form1290382123.tmp, j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207:fileToUpload:inputFile:file.filename=, j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207:j_id209:0:j_id216:j_id217:j_id218=test, j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207:j_id209:1:j_id216:j_id217:j_id218=test, j_id0:j_id1:j_id2:j_id200:j_id201:j_id202:1:j_id204:j_id205:j_id207:j_id289=Submit, pageid=a1vS00000008WRXIA2}
18:44:17.570|METHOD_EXIT|[27]|System.debug(ANY)
18:44:17.570|METHOD_ENTRY|[28]|System.debug(ANY)
18:44:17.571|USER_DEBUG|[28]|DEBUG|Name : SidebarImage
18:44:17.571|METHOD_EXIT|[28]|System.debug(ANY)
18:44:17.571|METHOD_ENTRY|[29]|MAP.get(ANY)
18:44:17.571|METHOD_ENTRY|[29]|System.PageReference.getParameters()
18:44:17.571|METHOD_ENTRY|[29]|System.currentPageReference()
18:44:17.571|METHOD_EXIT|[29]|System.currentPageReference()
18:44:17.571|METHOD_EXIT|[29]|System.PageReference.getParameters()
18:44:17.571|METHOD_EXIT|[29]|MAP.get(ANY)
18:44:17.571|SOQL_EXECUTE_BEGIN|[48]|Aggregations:0|Select p.Page__c, p.Id, p.Display_in_Contentblock__c, p.ContentBlockItem__r.Content__c,
                     p.ContentBlockItem__r.LastActivityDate, p.ContentBlockItem__r.SystemModstamp, p.ContentBlockItem__r.LastModifiedById, 
                     p.ContentBlockItem__r.LastModifiedDate, p.ContentBlockItem__r.CreatedById, p.ContentBlockItem__r.CreatedDate, 
                     p.ContentBlockItem__r.Name, p.ContentBlockItem__r.Id, p.ContentBlockItem__r.Type__c, p.ContentBlockItem__r.Web_Form__c, p.ContentBlockItem__c 
                     From PageToItem__c p where Display_in_ContentBlock__c =:name and Page__c =:pageid order by Order__c
18:44:17.576|SOQL_EXECUTE_END|[48]|Rows:0
18:44:17.576|METHOD_ENTRY|[54]|System.debug(ANY)
18:44:17.576|USER_DEBUG|[54]|DEBUG|Pageitems : ()
18:44:17.576|METHOD_EXIT|[54]|System.debug(ANY)
18:44:17.576|SOQL_EXECUTE_BEGIN|[61]|Aggregations:0|Select  p.PageTemplate__r.VisualForce_Page_Name__c, p.PageTemplate__c, p.PageTemplate__r.Name, p.Name, p.Id
                From Page__c p where id =:pageid
18:44:17.582|SOQL_EXECUTE_END|[61]|Rows:1
18:44:17.582|CODE_UNIT_FINISHED|contentblockcomponentController invoke(getitems)
18:44:17.582|CODE_UNIT_FINISHED|contentblockcomponentController get(items)
18:44:17.586|CODE_UNIT_STARTED|[EXTERNAL]|contentblockcomponentController set(name,LeftNavTitle)
18:44:17.586|CODE_UNIT_STARTED|[EXTERNAL]|contentblockcomponentController set(name,LeftNavTitle)
18:44:17.586|CODE_UNIT_FINISHED|contentblockcomponentController set(name,LeftNavTitle)
18:44:17.587|CODE_UNIT_FINISHED|contentblockcomponentController set(name,LeftNavTitle)
18:44:17.588|CODE_UNIT_STARTED|[EXTERNAL]|contentblockcomponentController set(name,LeftLinks)
18:44:17.588|CODE_UNIT_STARTED|[EXTERNAL]|contentblockcomponentController set(name,LeftLinks)
18:44:17.589|CODE_UNIT_FINISHED|contentblockcomponentController set(name,LeftLinks)
18:44:17.589|CODE_UNIT_FINISHED|contentblockcomponentController set(name,LeftLinks)
18:44:17.590|CODE_UNIT_STARTED|[EXTERNAL]|01pS00000004tOu|contentblockcomponentController get(pagetemplatename)
18:44:17.591|CODE_UNIT_STARTED|[EXTERNAL]|01pS00000004tOu|pagetemplatename
18:44:17.591|CODE_UNIT_FINISHED|pagetemplatename
18:44:17.591|CODE_UNIT_FINISHED|contentblockcomponentController get(pagetemplatename)
18:44:17.594|CUMULATIVE_LIMIT_USAGE
18:44:17.594|LIMIT_USAGE_FOR_NS|(default)|
  Number of SOQL queries: 8 out of 100
  Number of query rows: 6 out of 10000
  Number of SOSL queries: 0 out of 20
  Number of DML statements: 0 out of 100
  Number of DML rows: 0 out of 10000
  Number of script statements: 66 out of 200000
  Maximum heap size: 0 out of 3000000
  Number of callouts: 0 out of 10
  Number of Email Invocations: 0 out of 10
  Number of fields describes: 0 out of 100
  Number of record type describes: 0 out of 100
  Number of child relationships describes: 0 out of 100
  Number of picklist describes: 0 out of 100
  Number of future calls: 0 out of 10
  Number of find similar calls: 0 out of 10
  Number of System.runAs() invocations: 0 out of 20

18:44:17.594|CUMULATIVE_LIMIT_USAGE_END

18:44:17.594|CODE_UNIT_FINISHED|VF: /apex/page
18:44:17.594|EXECUTION_FINISHED
18:44:17.667|CUMULATIVE_PROFILING_BEGIN
18:44:17.667|CUMULATIVE_PROFILING|SOQL operations|
Class.contentblockcomponentController.getItems: line 48, column 23: [Select p.Page__c, p.Id, p.Display_in_Contentblock__c, p.ContentBlockItem__r.Content__c,
                     p.ContentBlockItem__r.LastActivityDate, p.ContentBlockItem__r.SystemModstamp, p.ContentBlockItem__r.LastModifiedById, 
                     p.ContentBlockItem__r.LastModifiedDate, p.ContentBlockItem__r.CreatedById, p.ContentBlockItem__r.CreatedDate, 
                     p.ContentBlockItem__r.Name, p.ContentBlockItem__r.Id, p.ContentBlockItem__r.Type__c, p.ContentBlockItem__r.Web_Form__c, p.ContentBlockItem__c 
                     From PageToItem__c p where Display_in_ContentBlock__c =:name and Page__c =:pageid order by Order__c]: executed 4 times in 27 ms
Class.contentblockcomponentController.getItems: line 61, column 27: [Select  p.PageTemplate__r.VisualForce_Page_Name__c, p.PageTemplate__c, p.PageTemplate__r.Name, p.Name, p.Id
                From Page__c p where id =:pageid]: executed 4 times in 24 ms

18:44:17.667|CUMULATIVE_PROFILING|No profiling information for SOSL operations
18:44:17.667|CUMULATIVE_PROFILING|No profiling information for DML operations
18:44:17.667|CUMULATIVE_PROFILING|method invocations|
Class.contentblockcomponentController: line 26, column 38: public LIST<ContentBlockItem__c> getItems(): executed 4 times in 61 ms
Class.RenderFormComponentController: line 30, column 12: public RenderFormComponentController<Constructor>(): executed 1 time in 1 ms
Class.RenderFormComponentController: line 36, column 32: public LIST<Form_Field__c> getFields(): executed 2 times in 0 ms
Class.myRewriter: line 27, column 25: global LIST<System.PageReference> generateUrlFor(LIST<System.PageReference>): executed 6 times in 0 ms

18:44:17.667|CUMULATIVE_PROFILING_END
Michael_JohnsonMichael_Johnson

Here is the additional debug when I turn the url rewriter off and a form successfully submits. I can't seem to track down why methods of renderformcomponentcontroller are not even initiating. 

 

 

13:26:01.019|CODE_UNIT_FINISHED|contentblockcomponentController get(pagetemplatename)
13:26:01.050|CUMULATIVE_LIMIT_USAGE
13:26:01.050|LIMIT_USAGE_FOR_NS|(default)|
  Number of SOQL queries: 10 out of 100
  Number of query rows: 10 out of 10000
  Number of SOSL queries: 0 out of 20
  Number of DML statements: 0 out of 100
  Number of DML rows: 0 out of 10000
  Number of script statements: 100 out of 200000
  Maximum heap size: 0 out of 3000000
  Number of callouts: 0 out of 10
  Number of Email Invocations: 0 out of 10
  Number of fields describes: 0 out of 100
  Number of record type describes: 0 out of 100
  Number of child relationships describes: 0 out of 100
  Number of picklist describes: 0 out of 100
  Number of future calls: 0 out of 10
  Number of find similar calls: 0 out of 10
  Number of System.runAs() invocations: 0 out of 20

13:26:01.050|CUMULATIVE_LIMIT_USAGE_END

13:26:01.050|CODE_UNIT_FINISHED|VF: /apex/page
13:26:01.050|EXECUTION_FINISHED
13:26:01.959|EXECUTION_STARTED
13:26:01.959|CODE_UNIT_STARTED|[EXTERNAL]|066S00000004Vsm|VF: /apex/page
13:26:01.964|CODE_UNIT_STARTED|[EXTERNAL]|01pS00000004tOp|RenderFormComponentController get(pagetemplatename)
13:26:01.964|CODE_UNIT_STARTED|[EXTERNAL]|01pS00000004tOp|pagetemplatename
13:26:01.964|CODE_UNIT_FINISHED|pagetemplatename
13:26:01.964|CODE_UNIT_FINISHED|RenderFormComponentController get(pagetemplatename)
13:26:01.971|CODE_UNIT_STARTED|[EXTERNAL]|01pS00000004tOi|FormFieldController get(pagetemplatename)
13:26:01.972|CODE_UNIT_STARTED|[EXTERNAL]|01pS00000004tOi|pagetemplatename
13:26:01.972|CODE_UNIT_FINISHED|pagetemplatename
13:26:01.972|CODE_UNIT_FINISHED|FormFieldController get(pagetemplatename)
13:26:02.006|CODE_UNIT_STARTED|[EXTERNAL]|FormFieldController set(field,Form_Field__c:{Name=Name, CurrencyIsoCode=USD, Required__c=false, Hidden__c=false, Label__c=WebForm Name, Id=a0oS0000000jzFWIAY, Type__c=STRING, Width__c=250, Boolean_Value__c=false})
13:26:02.007|CODE_UNIT_STARTED|[EXTERNAL]|FormFieldController set(field,Form_Field__c:{Name=Name, CurrencyIsoCode=USD, Required__c=false, Hidden__c=false, Label__c=WebForm Name, Id=a0oS0000000jzFWIAY, Type__c=STRING, Width__c=250, Boolean_Value__c=false})
13:26:02.007|METHOD_ENTRY|[16]|01pS00000004tOi|FormFieldController.FormFieldController()
13:26:02.007|METHOD_EXIT|[16]|FormFieldController
13:26:02.007|CODE_UNIT_FINISHED|FormFieldController set(field,Form_Field__c:{Name=Name, CurrencyIsoCode=USD, Required__c=false, Hidden__c=false, Label__c=WebForm Name, Id=a0oS0000000jzFWIAY, Type__c=STRING, Width__c=250, Boolean_Value__c=false})
13:26:02.007|CODE_UNIT_FINISHED|FormFieldController set(field,Form_Field__c:{Name=Name, CurrencyIsoCode=USD, Required__c=false, Hidden__c=false, Label__c=WebForm Name, Id=a0oS0000000jzFWIAY, Type__c=STRING, Width__c=250, Boolean_Value__c=false})
13:26:02.037|CODE_UNIT_STARTED|[EXTERNAL]|FormFieldController set(field,Form_Field__c:{Name=Internal_Name__c, CurrencyIsoCode=USD, Required__c=false, Hidden__c=false, Label__c=Internal Name, Id=a0oS0000000jzFXIAY, Type__c=STRING, Width__c=250, Boolean_Value__c=false})
13:26:02.038|CODE_UNIT_STARTED|[EXTERNAL]|FormFieldController set(field,Form_Field__c:{Name=Internal_Name__c, CurrencyIsoCode=USD, Required__c=false, Hidden__c=false, Label__c=Internal Name, Id=a0oS0000000jzFXIAY, Type__c=STRING, Width__c=250, Boolean_Value__c=false})
13:26:02.038|CODE_UNIT_FINISHED|FormFieldController set(field,Form_Field__c:{Name=Internal_Name__c, CurrencyIsoCode=USD, Required__c=false, Hidden__c=false, Label__c=Internal Name, Id=a0oS0000000jzFXIAY, Type__c=STRING, Width__c=250, Boolean_Value__c=false})
13:26:02.038|CODE_UNIT_FINISHED|FormFieldController set(field,Form_Field__c:{Name=Internal_Name__c, CurrencyIsoCode=USD, Required__c=false, Hidden__c=false, Label__c=Internal Name, Id=a0oS0000000jzFXIAY, Type__c=STRING, Width__c=250, Boolean_Value__c=false})
13:26:02.045|CODE_UNIT_STARTED|[EXTERNAL]|01pS00000004tOp|RenderFormComponentController get(hasAttachment)
13:26:02.045|CODE_UNIT_STARTED|[EXTERNAL]|01pS00000004tOp|RenderFormComponentController invoke(gethasAttachment)
13:26:02.046|SOQL_EXECUTE_BEGIN|[88]|Aggregations:0|Select Attachment_Name__c from Web_Form__c where id =:formid
13:26:02.050|SOQL_EXECUTE_END|[88]|Rows:1
13:26:02.050|CODE_UNIT_FINISHED|RenderFormComponentController invoke(gethasAttachment)
13:26:02.050|CODE_UNIT_FINISHED|RenderFormComponentController get(hasAttachment)
13:26:02.055|CODE_UNIT_STARTED|[EXTERNAL]|RenderFormComponentController set(fileBody,Blob[523])
13:26:02.055|CODE_UNIT_STARTED|[EXTERNAL]|RenderFormComponentController set(fileBody,Blob[523])
13:26:02.055|CODE_UNIT_FINISHED|RenderFormComponentController set(fileBody,Blob[523])
13:26:02.055|CODE_UNIT_FINISHED|RenderFormComponentController set(fileBody,Blob[523])
13:26:02.056|CODE_UNIT_STARTED|[EXTERNAL]|RenderFormComponentController set(fileName,804ethanupdate.txt)
13:26:02.056|CODE_UNIT_STARTED|[EXTERNAL]|RenderFormComponentController set(fileName,804ethanupdate.txt)
13:26:02.056|CODE_UNIT_FINISHED|RenderFormComponentController set(fileName,804ethanupdate.txt)
13:26:02.056|CODE_UNIT_FINISHED|RenderFormComponentController set(fileName,804ethanupdate.txt)
13:26:02.057|CODE_UNIT_STARTED|[EXTERNAL]|01pS00000004tOp|RenderFormComponentController get(hasAttachment)
13:26:02.058|CODE_UNIT_STARTED|[EXTERNAL]|01pS00000004tOp|RenderFormComponentController invoke(gethasAttachment)
13:26:02.058|SOQL_EXECUTE_BEGIN|[88]|Aggregations:0|Select Attachment_Name__c from Web_Form__c where id =:formid
13:26:02.062|SOQL_EXECUTE_END|[88]|Rows:1
13:26:02.062|CODE_UNIT_FINISHED|RenderFormComponentController invoke(gethasAttachment)
13:26:02.062|CODE_UNIT_FINISHED|RenderFormComponentController get(hasAttachment)
13:26:02.064|CODE_UNIT_STARTED|[EXTERNAL]|RenderFormComponentController set(formId,a1xS0000000Cw5jIAC)
13:26:02.065|CODE_UNIT_STARTED|[EXTERNAL]|RenderFormComponentController set(formId,a1xS0000000Cw5jIAC)
13:26:02.065|CODE_UNIT_FINISHED|RenderFormComponentController set(formId,a1xS0000000Cw5jIAC)
13:26:02.065|CODE_UNIT_FINISHED|RenderFormComponentController set(formId,a1xS0000000Cw5jIAC)
13:26:02.066|CODE_UNIT_STARTED|[EXTERNAL]|contentblockcomponentController set(name,Center)
13:26:02.066|CODE_UNIT_STARTED|[EXTERNAL]|contentblockcomponentController set(name,Center)
13:26:02.066|CODE_UNIT_FINISHED|contentblockcomponentController set(name,Center)
13:26:02.066|CODE_UNIT_FINISHED|contentblockcomponentController set(name,Center)
13:26:02.068|CODE_UNIT_STARTED|[EXTERNAL]|contentblockcomponentController set(name,SidebarImage)
13:26:02.069|CODE_UNIT_STARTED|[EXTERNAL]|contentblockcomponentController set(name,SidebarImage)
13:26:02.069|CODE_UNIT_FINISHED|contentblockcomponentController set(name,SidebarImage)
13:26:02.069|CODE_UNIT_FINISHED|contentblockcomponentController set(name,SidebarImage)
13:26:02.070|CODE_UNIT_STARTED|[EXTERNAL]|01pS000000059Rg|TemplateHelper get(RightNavA)
13:26:02.070|CODE_UNIT_STARTED|[EXTERNAL]|01pS000000059Rg|TemplateHelper invoke(getRightNavA)
13:26:02.070|CODE_UNIT_FINISHED|TemplateHelper invoke(getRightNavA)
13:26:02.070|CODE_UNIT_FINISHED|TemplateHelper get(RightNavA)
13:26:02.071|CODE_UNIT_STARTED|[EXTERNAL]|01pS000000059Rg|TemplateHelper get(RightNavC)
13:26:02.071|CODE_UNIT_STARTED|[EXTERNAL]|01pS000000059Rg|TemplateHelper invoke(getRightNavC)
13:26:02.072|CODE_UNIT_FINISHED|TemplateHelper invoke(getRightNavC)
13:26:02.072|CODE_UNIT_FINISHED|TemplateHelper get(RightNavC)
13:26:02.135|CODE_UNIT_STARTED|[EXTERNAL]|01pS00000004tOp|RenderFormComponentController get(hasAttachment)
13:26:02.135|CODE_UNIT_STARTED|[EXTERNAL]|01pS00000004tOp|RenderFormComponentController invoke(gethasAttachment)
13:26:02.136|SOQL_EXECUTE_BEGIN|[88]|Aggregations:0|Select Attachment_Name__c from Web_Form__c where id =:formid
13:26:02.139|SOQL_EXECUTE_END|[88]|Rows:1
13:26:02.140|CODE_UNIT_FINISHED|RenderFormComponentController invoke(gethasAttachment)
13:26:02.140|CODE_UNIT_FINISHED|RenderFormComponentController get(hasAttachment)
13:26:02.147|CODE_UNIT_STARTED|[EXTERNAL]|contentblockcomponentController set(name,LeftNavTitle)
13:26:02.147|CODE_UNIT_STARTED|[EXTERNAL]|contentblockcomponentController set(name,LeftNavTitle)
13:26:02.147|CODE_UNIT_FINISHED|contentblockcomponentController set(name,LeftNavTitle)
13:26:02.147|CODE_UNIT_FINISHED|contentblockcomponentController set(name,LeftNavTitle)
13:26:02.149|CODE_UNIT_STARTED|[EXTERNAL]|contentblockcomponentController set(name,LeftLinks)
13:26:02.149|CODE_UNIT_STARTED|[EXTERNAL]|contentblockcomponentController set(name,LeftLinks)
13:26:02.149|CODE_UNIT_FINISHED|contentblockcomponentController set(name,LeftLinks)
13:26:02.150|CODE_UNIT_FINISHED|contentblockcomponentController set(name,LeftLinks)
13:26:02.181|CODE_UNIT_STARTED|[EXTERNAL]|FormFieldController set(field,Form_Field__c:{Name=Name, CurrencyIsoCode=USD, Required__c=false, Hidden__c=false, Label__c=WebForm Name, Id=a0oS0000000jzFWIAY, Type__c=STRING, Width__c=250, Text_Value__c=efrff, Boolean_Value__c=false})
13:26:02.182|CODE_UNIT_STARTED|[EXTERNAL]|FormFieldController set(field,Form_Field__c:{Name=Name, CurrencyIsoCode=USD, Required__c=false, Hidden__c=false, Label__c=WebForm Name, Id=a0oS0000000jzFWIAY, Type__c=STRING, Width__c=250, Text_Value__c=efrff, Boolean_Value__c=false})
13:26:02.182|CODE_UNIT_FINISHED|FormFieldController set(field,Form_Field__c:{Name=Name, CurrencyIsoCode=USD, Required__c=false, Hidden__c=false, Label__c=WebForm Name, Id=a0oS0000000jzFWIAY, Type__c=STRING, Width__c=250, Text_Value__c=efrff, Boolean_Value__c=false})
13:26:02.182|CODE_UNIT_FINISHED|FormFieldController set(field,Form_Field__c:{Name=Name, CurrencyIsoCode=USD, Required__c=false, Hidden__c=false, Label__c=WebForm Name, Id=a0oS0000000jzFWIAY, Type__c=STRING, Width__c=250, Text_Value__c=efrff, Boolean_Value__c=false})
13:26:02.209|CODE_UNIT_STARTED|[EXTERNAL]|FormFieldController set(field,Form_Field__c:{Name=Internal_Name__c, CurrencyIsoCode=USD, Required__c=false, Hidden__c=false, Label__c=Internal Name, Id=a0oS0000000jzFXIAY, Type__c=STRING, Width__c=250, Text_Value__c=tesdd, Boolean_Value__c=false})
13:26:02.210|CODE_UNIT_STARTED|[EXTERNAL]|FormFieldController set(field,Form_Field__c:{Name=Internal_Name__c, CurrencyIsoCode=USD, Required__c=false, Hidden__c=false, Label__c=Internal Name, Id=a0oS0000000jzFXIAY, Type__c=STRING, Width__c=250, Text_Value__c=tesdd, Boolean_Value__c=false})
13:26:02.210|CODE_UNIT_FINISHED|FormFieldController set(field,Form_Field__c:{Name=Internal_Name__c, CurrencyIsoCode=USD, Required__c=false, Hidden__c=false, Label__c=Internal Name, Id=a0oS0000000jzFXIAY, Type__c=STRING, Width__c=250, Text_Value__c=tesdd, Boolean_Value__c=false})
13:26:02.210|CODE_UNIT_FINISHED|FormFieldController set(field,Form_Field__c:{Name=Internal_Name__c, CurrencyIsoCode=USD, Required__c=false, Hidden__c=false, Label__c=Internal Name, Id=a0oS0000000jzFXIAY, Type__c=STRING, Width__c=250, Text_Value__c=tesdd, Boolean_Value__c=false})
13:26:02.216|CODE_UNIT_STARTED|[EXTERNAL]|RenderFormComponentController set(formId,a1xS0000000Cw5jIAC)
13:26:02.217|CODE_UNIT_STARTED|[EXTERNAL]|RenderFormComponentController set(formId,a1xS0000000Cw5jIAC)
13:26:02.217|CODE_UNIT_FINISHED|RenderFormComponentController set(formId,a1xS0000000Cw5jIAC)
13:26:02.217|CODE_UNIT_FINISHED|RenderFormComponentController set(formId,a1xS0000000Cw5jIAC)
13:26:02.218|CODE_UNIT_STARTED|[EXTERNAL]|contentblockcomponentController set(name,Center)
13:26:02.218|CODE_UNIT_STARTED|[EXTERNAL]|contentblockcomponentController set(name,Center)
13:26:02.218|CODE_UNIT_FINISHED|contentblockcomponentController set(name,Center)
13:26:02.218|CODE_UNIT_FINISHED|contentblockcomponentController set(name,Center)
13:26:02.220|CODE_UNIT_STARTED|[EXTERNAL]|contentblockcomponentController set(name,SidebarImage)
13:26:02.220|CODE_UNIT_STARTED|[EXTERNAL]|contentblockcomponentController set(name,SidebarImage)
13:26:02.220|CODE_UNIT_FINISHED|contentblockcomponentController set(name,SidebarImage)
13:26:02.220|CODE_UNIT_FINISHED|contentblockcomponentController set(name,SidebarImage)
13:26:02.222|CODE_UNIT_STARTED|[EXTERNAL]|01pS00000004tOp|RenderFormComponentController invoke(saveObject)
13:26:02.222|METHOD_ENTRY|[107]|System.debug(ANY)
13:26:02.222|USER_DEBUG|[107]|DEBUG|Entering Save method
13:26:02.222|METHOD_EXIT|[107]|System.debug(ANY)
13:26:02.222|METHOD_ENTRY|[109]|Schema.getGlobalDescribe()
13:26:02.273|METHOD_EXIT|[109]|Schema.getGlobalDescribe()
13:26:02.273|METHOD_ENTRY|[111]|MAP.get(ANY)
13:26:02.274|METHOD_EXIT|[111]|MAP.get(ANY)
13:26:02.274|METHOD_ENTRY|[115]|Schema.SObjectType.newSObject()
13:26:02.274|METHOD_EXIT|[115]|Schema.SObjectType.newSObject()
13:26:02.274|METHOD_ENTRY|[131]|01pS00000004tOt|WebformUtil.getFormFieldValue(SOBJECT:Form_Field__c)
13:26:02.274|METHOD_EXIT|[131]|WebformUtil.getFormFieldValue(SOBJECT:Form_Field__c)
13:26:02.274|METHOD_ENTRY|[138]|SObject.put(String, Object)
13:26:02.290|METHOD_EXIT|[138]|SObject.put(String, Object)
13:26:02.290|METHOD_ENTRY|[131]|01pS00000004tOt|WebformUtil.getFormFieldValue(SOBJECT:Form_Field__c)
13:26:02.291|METHOD_EXIT|[131]|WebformUtil.getFormFieldValue(SOBJECT:Form_Field__c)
13:26:02.291|METHOD_ENTRY|[138]|SObject.put(String, Object)
13:26:02.291|METHOD_EXIT|[138]|SObject.put(String, Object)
13:26:02.291|DML_BEGIN|[141]|Op:Insert|Type:Submission_Form__c|Rows:1
13:26:02.470|DML_END|[141]
13:26:02.470|DML_BEGIN|[149]|Op:Insert|Type:Attachment|Rows:1
13:26:02.846|DML_END|[149]
13:26:02.846|METHOD_ENTRY|[153]|System.PageReference.setRedirect(Boolean)
13:26:02.846|METHOD_EXIT|[153]|System.PageReference.setRedirect(Boolean)
13:26:02.848|CODE_UNIT_FINISHED|RenderFormComponentController invoke(saveObject)
13:26:02.849|VF_APEX_CALL|j_id300|{!saveObject}|PageReference:/company
13:26:02.851|CUMULATIVE_LIMIT_USAGE
13:26:02.851|LIMIT_USAGE_FOR_NS|(default)|
  Number of SOQL queries: 13 out of 100
  Number of query rows: 13 out of 10000
  Number of SOSL queries: 0 out of 20
  Number of DML statements: 2 out of 100
  Number of DML rows: 2 out of 10000
  Number of script statements: 163 out of 200000
  Maximum heap size: 0 out of 3000000
  Number of callouts: 0 out of 10
  Number of Email Invocations: 0 out of 10
  Number of fields describes: 0 out of 100
  Number of record type describes: 0 out of 100
  Number of child relationships describes: 0 out of 100
  Number of picklist describes: 0 out of 100
  Number of future calls: 0 out of 10
  Number of find similar calls: 0 out of 10
  Number of System.runAs() invocations: 0 out of 20

13:26:02.851|CUMULATIVE_LIMIT_USAGE_END

13:26:02.851|CODE_UNIT_FINISHED|VF: /apex/page
13:26:02.851|EXECUTION_FINISHED
Comply AdminComply Admin

When FriendlyURLs is added as the site URL Rewriting class all webform submissions do not work. When pressing the submit after entering data in the form returns page not found, nor does error checking return to the same page. When FriendlyURLs is removed from site setup the webforms resume correctly on form submissions.

A_Li_NA_Li_N

I would like to know if anyone has this working yet as well?

 

I'm trying to use the UrlRewriter (taken from CMSForce 2.0) in CMSForce.  I can confirm that even the login function does not work while the rewriter is 'turned on' for the site.  When I remove the rewriter (or even simply go to a page that is not re-written), the login works.  (By login, I mean any method call to my Apex controller)

 

Any news on why this is and how to fix it?

 

A_Li_NA_Li_N

With a bit more diving in to things, I've found that it has something to do with a mix of the rewriter and the <c:contentblock> tags.  

 

I started rebuilding from the 'ground up' and found that everything works until I put in the <c:contentblock> tags.  When I put one of them in and click 'submit', I get a 'Page Not Found: page'.

From within a CMSForce page (friendly url name of 'TestSubmit', so path is /cms/TestSubmit)

If I turn off the rewriter, the submit works.

If I remove the contentblock tags, the submit works.

If I go directly to the VF 'template' page on sites (so path of /VFTestSubmit), the submit works regardless of the rewriter being on or not.

 

I'm experiencing the same type of thing as Michael_Johnson where the form does not get submitted correctly (ie the function in apex never gets called).

MM0MM0

Has anyone found a solution for this issue? I'm having the same problem.