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
1
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
1
  • Home
  • Forums

Duration field: A non well formed numeric value encountered

Development and Programming

shbchk's avatar
shbchk
12 posts
4 years ago
shbchk's avatar shbchk

Trying to use Duration field, getting this:

Notice
A non well formed numeric value encountered
ee/EllisLab/Addons/duration/ft.duration.php, line 253

Severity: E_NOTICE

Field content: 00:06:56 (or 6:56)

Template: {film-duration}

       
Robin Sowell's avatar
Robin Sowell
13,158 posts
4 years ago
Robin Sowell's avatar Robin Sowell

I can’t replicate. Can you let me know the version of EE and of PHP you’re running?

And if you go directly to the database table that holds the duration value and copy that value- what’s in the database?

On current versions of EE, that table will be exp_channel_data_field_x where x is the field id number.

And is it all entries with that field having an issue or just that particular one?

       
shbchk's avatar
shbchk
12 posts
4 years ago
shbchk's avatar shbchk

Just found error — duration in one entry was ending with space.

       
shbchk's avatar
shbchk
12 posts
4 years ago
shbchk's avatar shbchk

ExpressionEngine® CMS 5.3.0

PHP 7.3.19

       
Robin Sowell's avatar
Robin Sowell
13,158 posts
4 years ago
Robin Sowell's avatar Robin Sowell

Ah- that really looks like a bug to me- it shouldn’t allow values that can’t be parsed into a duration to be saved.

I’ve dropped it in as a github issue and accepted it as a bug: https://github.com/ExpressionEngine/ExpressionEngine/issues/460

For the short term, it should be fine just to manually alter and resave the entry if anyone runs into this. Long term, validation needs a tweak.

       

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.