Make WordPress Core

Opened 12 years ago

Closed 10 years ago

Last modified 10 years ago

#29932 closed enhancement (invalid)

There is no error reporting in the Customizer (for upload failures)

Reported by: Fab1en Owned by:
Priority: normal Milestone:
Component: Customize Version: 3.4
Severity: normal Keywords: needs-patch
Cc: Focuses: javascript, administration

Description (last modified by westonruter)

As far as I know, there is no way to display an error to the user when he/she is using the theme customizer.

An error that I'm facing some time to time when I test WordPress locally is when wp-content/uploads is not writable. Then, uploading a new image to use as a background in the customizer does not work, but this fails silently.

This error reporting should be built-in inside WP_Customize_Control class so that any control that extends this class can throws a custom error and displays it to the user.

Depends on #35210.

Change History (21)

#1 @DrewAPicture
12 years ago

  • Focuses javascript added
  • Summary There is no error reporting in the cistomizer → There is no error reporting in the Customizer

#2 @westonruter
12 years ago

This is related to #29098, which would provide the general mechanism for sending back error codes/messages.

#3 @boonebgorges
12 years ago

  • Version trunk → 3.4

#4 @westonruter
12 years ago

  • Keywords needs-patch added
  • Milestone Awaiting Review → Future Release

It looks like #29098 may not be exactly what we need to communicate upload errors back to the Customizer. Instead of sending error messages back when customize_save happens, the actual upload error is going to happen when the setting is updated and the value gets synced with the Customizer preview.

#5 @westonruter
11 years ago

  • Description modified (diff)
  • Milestone Future Release → 4.5

To work on as part of implementing the notification area (#35210).

See also:

  • #31582: Catching PHP Fatal Errors on WordPress Theme Customizer
  • #34893: Improve Customizer setting validation model

This ticket was mentioned in ​Slack in #core by westonruter. ​View the logs.


11 years ago

#7 @chriscct7
11 years ago

  • Milestone 4.5 → Future Release

Punting to next release per discussion with @westonruter

#8 @westonruter
11 years ago

  • Milestone Future Release → 4.6

This ticket was mentioned in ​Slack in #core-customize by celloexpressions. ​View the logs.


11 years ago

#10 @westonruter
11 years ago

It seems the error being described here would make the most sense to display in the same location where error messages are displayed for setting validation (#34893). As such, the control API for error messages should be agnostic to whether it is a validation error or some other error message.

This ticket was mentioned in ​Slack in #design by westonruter. ​View the logs.


10 years ago

#12 @westonruter
10 years ago

  • Milestone 4.6 → Future Release

Punting due to transactions being too large to finish patch and test in time for 4.6.

#13 @westonruter
10 years ago

  • Milestone Future Release → 4.7

This ticket was mentioned in ​Slack in #core by jorbin. ​View the logs.


10 years ago

This ticket was mentioned in ​Slack in #core-customize by celloexpressions. ​View the logs.


10 years ago

#16 @celloexpressions
10 years ago

  • Owner set to westonrtuer
  • Status new → assigned

#17 @celloexpressions
10 years ago

  • Owner changed from westonrtuer to westonruter

#18 @westonruter
10 years ago

  • Keywords reporter-feedback added
  • Milestone 4.7 → Awaiting Review
  • Owner westonruter removed
  • Summary There is no error reporting in the Customizer → There is no error reporting in the Customizer (for upload failures)

I believe that his is now irrelevant because the upload control now extends the media control as of #29215 (in 4.2) and the media library will show an error message when an upload fails in the modal. @Fab1en can you confirm?

Otherwise, the notifications API added in 4.6 as part of the setting validation improvements (#34893) provides the framework for controls to add notifications for errors, warnings, and informational messages.

This ticket was mentioned in ​Slack in #core-customize by westonruter. ​View the logs.


10 years ago

#20 @westonruter
10 years ago

  • Milestone Awaiting Review
  • Resolution → invalid
  • Status assigned → closed

#21 @Fab1en
10 years ago

  • Keywords reporter-feedback removed

Sorry for the late answer @westonruter, but I confirm that this issue is now irrelevant in WP 4.7. An error message is now displayed when a file cannot be uploaded during a customizer session.

Note: See TracTickets for help on using tickets.