When i am adding header component to new visual force page then it is returning exception saying
Visualforce Error
System.LimitException: DML currently not allowed
Class.ExceptionManager.save: line 14, column 1
Class.ExceptionService.saveException: line 25, column 1
Class.BaseController.<init>: line 348, column 1
Class.SignUpController.<init>: line 79, column 1
How do i get a solution for this problem ?
<apex:page showHeader="false" controller="RequestTradeController" standardStylesheets="false" >
<script>
document.title = '{!$Label.lblCR} - New Trade Relationship';
</script>
<c:CommonComponent />
<apex:form >
<h2>Request New Trade Relationship</h2>
<table width="70%">
<tr><td><apex:pageMessage severity="warning">Select how you would like to send your request.</apex:pageMessage> </td></tr>
<tr><td align="center" class="button_link bgcolor-tab"><apex:commandButton styleClass="button_style button_link" action="{!test}" value="Request New Relationship using the Seller's CashRelease ID" id="theButton1"/></td></tr>
<tr><td align="center"><b>OR</b></td></tr>
<tr><td align="center" class="button_link bgcolor-tab"><apex:commandButton styleClass="button_style button_link" action="{!redirectToNewTrade}" value="Request New Relationship by Sending an Email Invitation to the Seller" id="theButton2"/></td></tr>
</table>
</apex:form>
</apex:page>
In this is already allowing the DML. so why i am getting this error?