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

Weird database error when posting entry

Development and Programming

Ingmar's avatar
Ingmar
29,245 posts
16 years ago
Ingmar's avatar Ingmar

What build of EE are you using? What changes did you make, initially?

       
taktak's avatar
taktak
24 posts
16 years ago
taktak's avatar taktak

I’m using this build of EE2: 20100121

I’m making a gallery fieldtype, which is an unordered list. Each list item has two file-placeholders(a thumbnail and an image) which lets you select two images. There’s also a caption input field.

I got rid of the error by modifying my copied ft.file code: <pre><code>

    $hidden      = form_hidden($this->field_name/*.'_hidden'*/, $filename);
    $upload   = form_upload($this->field_name, $filename);
    $dropdown = form_dropdown($this->field_name/*.'_directory'*/, $upload_dirs, $filedir);[/code]

I got rid of the _hidden and _directory ending of two form elements and then it worked. Which I find a bit odd having to do since it’s working fine with ft.file…

The changes I did when it started acting up was changing a form_input() into plain html, so I could have more control over the markup generated. I changed a few other small things and when I saw it generated trouble I tried undoing my changes. But it didn’t help

Any idea of where I should begin looking?

       

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.