Build 2.02 Beta 1: Upload Error Reporting

12 posts by 4 authors in: Forums > CMS Builder
Last Post: January 22, 2010   (RSS)

One of the things about CMSB that's always causing me grief seems to have got even worse in the latest Beta!

Please, is there any way we can beef up the error reporting messages relating to image uploads?

If an image exceeds the max upload size an error notice appears explaining the problem. However, if the image is huge - i.e. taken straight off a digi camera - the server may reject it but without giving a reason why. As a result, Joe Client comes knocking on my door to complain that the expensive system I built for him is broken!

The new multi-upload system is brilliant - until you try and upload a "big" image. When that happens, there's a generic "HTTP Error" message and you get dumped back to stage one again.

I can see the emails piling up in my inbox already!

If we're going to have a new upload facility, now is the time to upgrade the error reporting.

:0(

Perch

Re: [Perchpole] Build 2.02 Beta 1: Upload Error Reporting

By Chris - January 19, 2010

Hi Perch,

That certainly shouldn't be happen! Unfortunately, I can't reproduce this locally, despite trying a bunch of different options on my web server.

Would you be willing to send me your FTP details and CMS login info in a private message? Hopefully I'll be able to fix this up so you never have another upload problem ever again! :)
All the best,
Chris

Re: [Perchpole] Build 2.02 Beta 1: Upload Error Reporting

By Dave - January 20, 2010

Hi Perch,

It sounds like an issue with server limits. What are the values listed under:
Admin > General > Upload Folder Url > Show server upload limits

If we know what server limit is causing the issue it will be easier for us to reproduce the issue locally.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Build 2.02 Beta 1: Upload Error Reporting

Hi, Dave -

As I mentioned to Chris via email, the stated server limit is 8mb. However, in practice, it's nothing like that. Any file above 1.5mb causes a problem. Crucially, setting the "Maximum Upload Size" parameter to a value lower than this does not solve the issue. When the file is above a certain threshold, the server responds before the script by rejecting the file whilst displaying a generic failure message.

As I said in my initial post, this can be mind-boggling annoying because the client then assumes there's a problem with the site. The error message doesn't back-up my explanation that the image upload is too big.

:0(

Perch

Re: [Dave] Build 2.02 Beta 1: Upload Error Reporting

Hi, Dave -

The "local value" is 128m. The "master value" is 40m.

Perch

NB: For the record, this is a 1&1 Business hosting package.

Re: [Perchpole] Build 2.02 Beta 1: Upload Error Reporting

By Dave - January 20, 2010

We'll have to go through the settings one by one to track it down. The web host may be killing the process after it exceeds 2megs and monitoring that outside of PHP.

Have you sent your server details to chris@interactivetools.com yet? Feel free to CC me and we can take a look.

Note: Don't post server details to the forum.
Dave Edis - Senior Developer
interactivetools.com

Re: [Perchpole] Build 2.02 Beta 1: Upload Error Reporting

By Chris - January 20, 2010

Hi Perch,

Thanks for the login info! I've done some testing and found I was able to upload a 3.7 MB image to your CMS Builder, but only after turning off resizing and thumbnailing. This is indicative of a memory restriction problem.

Can you talk to your host about this? They should be able to analyse exactly why their server is throwing this error and tell you which resource limitation needs to be relaxed. Maybe try asking them exactly what your memory and CPU limits are, since you suspect that the 40MB shown by phpinfo isn't the only limitation.

I've added a new feature (which should be in the next beta) which checks file-sizes on the client-side -- this means that if you set your CMSB upload field to have a file-size restriction, the uploader won't even try to upload files above the specified size. I've also improved the error reporting for client-side problems. I think this will solve your Joe Client problem. :)

Please let me know how things work out when you get your hands on the next beta. I hope it helps!
All the best,
Chris

Re: [chris] Build 2.02 Beta 1: Upload Error Reporting

Chris,

Thanks for taking this approach. I think that all of us techies forget that our clients don't have our patience, our intrigue with the process or our excitement of discovery.

It's good to be reminded of that reality from time to time.

As CMSB matures, I'd like to see a bit more focus on the user perspective.

For example, it would be nice if the same type of collapsing menu groupss were available on the section editor side of things. that way the client could see a much less daunting list of fields in a complex editor.

Eventually I wouldn't mind the ability to place fields along side each other instead of just one after another. I'm thinking of First Name, Middle Initial, Last Name fields for example. or Start date/End date, etc.

Keep up the good work,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [chris] Build 2.02 Beta 1: Upload Error Reporting

Hi, Chris -

Thanks for support and the updates. I would also like to echo Jerry's thoughts. In fact, it was for precisely this reason that I wanted a fix for the problem.

It's important to remember that a CMSB-based site is exactly the time of product you would develop for a client who doesn't possess web skills. That's why accurate/detailed error reporting is crucial - because it's the client who sees the messages, not the developer.

:0)
Perch