Blog4Umbraco "Input String not correct format" with image dimensions
I'm running across this issue on v4.0.3 with Blog4Umbraco and trying to insert images, but my situation is a little different from the others on this forum who have had problems (and found solutions for them).
When I go to insert an image into a blog entry, if I put in just an image URL and submit without declaring width or height dimensions, it works fine. However if I try and declare either width and/or height (whether restrained or not), clicking Submit will give me the following error:
If I try and fill out both dimensions, the number I fill in previously turns to "NaN" (which I assume is a built in feature?). At this point, even if I try and clear both fields, the last one will always say "NaN" and will throw the "input format" error.
I'm pretty sure I don't have any Media multi pickers installed or anything like that. (I've only created one extra data type for this installation, a variant of the Ultimate picker).
After a little more sleuthing, I found out that it's indeed the NaN that's causing it to error out. I went into HTML mode and changed the "NaN" to a number (or got rid of the offending property altogether) and the error goes away.
Running Firebug, I can see an error being thrown when I unfocus from the dimension fields, which is causing the "NaN" to show up....
Blog4Umbraco "Input String not correct format" with image dimensions
I'm running across this issue on v4.0.3 with Blog4Umbraco and trying to insert images, but my situation is a little different from the others on this forum who have had problems (and found solutions for them).
When I go to insert an image into a blog entry, if I put in just an image URL and submit without declaring width or height dimensions, it works fine. However if I try and declare either width and/or height (whether restrained or not), clicking Submit will give me the following error:
If I try and fill out both dimensions, the number I fill in previously turns to "NaN" (which I assume is a built in feature?). At this point, even if I try and clear both fields, the last one will always say "NaN" and will throw the "input format" error.
I'm pretty sure I don't have any Media multi pickers installed or anything like that. (I've only created one extra data type for this installation, a variant of the Ultimate picker).
Any thoughts?
I have run across this problem, but not when using blog4umbraco.
However, I had the exact same symptoms as you. I posted a bug report on codeplex, but it was closed.
The only way for me to fix it was to delete the node and create it one more time and set the image size before saving.
Then it worked for me.
Thanks for the reply.
After a little more sleuthing, I found out that it's indeed the NaN that's causing it to error out. I went into HTML mode and changed the "NaN" to a number (or got rid of the offending property altogether) and the error goes away.
Running Firebug, I can see an error being thrown when I unfocus from the dimension fields, which is causing the "NaN" to show up....
So it appears to be a javascript issue. Not sure what can be done to correct this...
Maybe you report the issue on Codeplex. Hopefully it will get fixed soon.
is working on a reply...