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

Improper form declaration parsing

Development and Programming

rokkan's avatar
rokkan
12 posts
17 years ago
rokkan's avatar rokkan

It appears that {form_declaration:forum:delete_post} (and all form_declaration:forum:action tags) in my templates is not being parsed correctly. It sets my form actions to the root url of the site. I have the forum trigger word as forums and the forum url is http://myurl.com/forums/(mod_rewerite is used to get rid of the index.php reference). Any help with this will be greatly appreciated

/UPDATE/ I wrote an extension for form_declaration_modify_data and I realized that the action is blank in the data object so form_declaration sets the base path as the action path. I am not sure why the action property is blank but I was wondering it this could be it: AID:Forum:delete_post - The F is capitalized (the declaration in my theme is forum:delete_post) - grasping at straws here.

       
Paul Burdick's avatar
Paul Burdick
480 posts
17 years ago
Paul Burdick's avatar Paul Burdick

The AID variables are replaced at the end of template and forum theme processing automatically by ExpressionEngine based on values in the exp_actions database table. So, unless you are stopping the template processing early OR your MySQL is set to be case sensitive, I am not sure why they would be replace with the correct Action ID.

Make sure you are using the current builds and versions too, as we fixed a bug in this area many many months ago.

       
rokkan's avatar
rokkan
12 posts
17 years ago
rokkan's avatar rokkan

The problem wast the location of the delete,modify buttons in the template. Thanks for the response though

       

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.