We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

How to display specific channel form errors, specifically 403?

How Do I?

pelluche's avatar
pelluche
38 posts
one year ago
pelluche's avatar pelluche

I’m having issues with my channel form and have tried simplifying it to just 1 grid field. I’ve used the {field:gridName} to spit out the entire grid on the frontend. I went in and just grabbed a specific input field and pasted it into my dummy form to ensure the row/col are correct.

My matchups channel has grid fields and i’m trying to update “week_1_matchups” but keep getting a 403 error based off the network tab in chrome. When i try to spit out errors to get a more detailed error all i get is “There was a problem with one or more Grid fields”. Is there a way to get more clearer reason?

I’ve verified the channel has permissions all checked for the Members (and i’m logged in). I’ve verified the row_id_1 exists and the col_id_347 exists.

{exp:channel:form 
    channel="matchups"
    id="update-winners-form"
    url_title="weekly-matchups"
    include_jquery="yes"
    error_handling="inline"
    return="league/{segment_2}/leaderboard/{segment_5}" 
}

{if no_results}
    Error creating form
{/if}

{!-- {field:week_{segment_5}_matchups} --}

<div class="row mx-0">
    <input type="text" name="week_1_matchups[rows][row_id_1][col_id_347]" value="14">
    <div class="error">{error:week_1_matchups[rows][row_id_1][col_id_347]}</div>

    {!-- {embed="widgets/_update-winners-form"} --}            
</div>

<div class="submit-row row my-5">
    <div class="col-12">
        <input type="hidden" name="csrf_token" value="{csrf_token}">
        <input type="submit" class="submit-btn btn btn-quaternary" value="UPDATE MATCHUPS">

        {if global_errors:count > 0 OR field_errors:count > 0}
            <ul class="errors">
                {global_errors}
                    <li>{error}</li>
                {/global_errors}
                {field_errors}
                    <li>{error}</li>
                {/field_errors}
            </ul>
        {/if}
    </div>
</div>

{/exp:channel:form}
       
Rob Allen's avatar
Rob Allen
3,105 posts
one year ago
Rob Allen's avatar Rob Allen

A 403 error is often a Mod Security rule at play. Suggest looking at your server logs to identify and disable the culprit(s) - there are sometimes more than one. If not ask your web host.

       
pelluche's avatar
pelluche
38 posts
one year ago
pelluche's avatar pelluche

I had web host do the following but still same issues: “PCRE limits have already been increased and the firewall (ModSecurity) has been turned off temporarily for testing. any other suggestions?

       
pelluche's avatar
pelluche
38 posts
one year ago
pelluche's avatar pelluche

nevermind, i figured it out. i had a col_id_x wrong on one input.

       
Sarah93's avatar
Sarah93
12 posts
one year ago
Sarah93's avatar Sarah93

Great catch on figuring out the column ID issue! Those Grid field errors can be super cryptic, and it’s often the smallest detail that trips you up.

       
nepiko72's avatar
nepiko72
1 posts
10 months ago
nepiko72's avatar nepiko72

No recipe exists for leading a “right” life. The video game bitlife demonstrates this. You can select from a variety of scenarios here and make choices exactly like you would in real life. Your choices will guide you in one direction or another and mold your life in one direction or another. For instance, you can take care of your family, love your wife, and be a fantastic husband. Alternately, you might deceive her while also dating other women. Either you may succeed as an honest businessperson or you can deceive others. Choose your path, then take it to completion! Before you pass away, live an interesting life!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.