I'm having a small problem with creating a visualforce page where I'm getting an error thrown and can't figure out where the problem is. I figure that it might help by just getting another set of eyes looking at my code since I haven't been able to figure it out for the past hour and a half. Here's my code:

<apex:page standardController="OrderItem" sidebar="false">
<apex:sectionHeader title="Edit Order Product" subtitle="{!orderItem.Product2}"/>
<apex:form >
    <apex:pageBlock title="Edit Order Product" id="thePageBlock" mode="edit">
        <apex:commandButton action="{!cancel}" value="Cancel" />
        <apex:commandButton action="{!save}" value="Save" />
            <apex:pageBlockSection title="Product Name" columns="1">
                <apex:inputField value="{!orderItem.Product_Name__c}"/>
                    <apex:outputLabel value="Supplier ID"/>
                        <apex:inputField value="{!orderItem.Supplier_Id__c}">
                            <apex:actionSupport event="onchange" rerender="thePageBlock" status="status"/>
                        <apex:actionStatus startText="applying value..." id="status"/>

and I'm getting the following error:

Error: OrderItemEnterIdsButtonController line 20, column 19: The element type "apex:pageblocksection" must be terminated by the matching end-tag "</apex:pageblocksection>" 

I'm sure the mistake is obvious for some of you (it probably is and I just can't tell), but I can't seem to find the problem no matter how I look at it. Thanks in advance!


One of your lines (near the end) says </apex.pageBlockSection> instead of </apex:pageBlockSection>

  • I know, I don't know what the error is talking about because those are both exactly the same thing. – Matt Mc Jul 10 '15 at 18:31
  • No, yours has a period but should have a colon – RenegadeCoder Jul 10 '15 at 18:32
  • RenegadeCoder is right. There is a dot "." instead of a colon ":" in </apex.pageBlockSection> – Aayush K Jul 10 '15 at 18:32
  • Oh my gosh. I guess I need to take a break from working for a while because I stared at both of those and couldn't find how they were different haha. Thanks! – Matt Mc Jul 10 '15 at 18:34
  • Yeah, you should probably get some fresh air haha – RenegadeCoder Jul 10 '15 at 19:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.