[wp-trac] [WordPress Trac] #31582: Catching PHP Fatal Errors on WordPress Theme Customizer
WordPress Trac
noreply at wordpress.org
Tue Mar 10 14:43:31 UTC 2015
#31582: Catching PHP Fatal Errors on WordPress Theme Customizer
--------------------------+------------------------------
Reporter: nightcoder | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version: 4.1.1
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Description changed by ocean90:
Old description:
> I am developing a WordPress theme and added my a couple of new settings
> to the theme customizer panel. I don't have any custom JS code to share
> with you because i only added some new fields like shown at (<a
> href="http://codex.wordpress.org/Theme_Customization_API"
> rel="nofollow">http://codex.wordpress.org/Theme_Customization_API</a>)
>
> <strong>The Problem</strong>
>
> I am getting this issue when i click the `save and publish` button of the
> `customizer panel` and the error comes with an ajax response. WordPress
> `customizer` keeps working and refreshes the right frame as if data saved
> successfully. When you see the right frame refreshed, you think it is
> safe to close the customizer window and loose the unsaved data. Many
> themes has expensive operations such as creating dynamic css outputs only
> for custumizer so the fatal error may not be effect any other admin or
> front end part.
>
> <blockquote> <strong>Fatal error</strong>: Allowed memory size of
> 67108864 bytes exhausted
> (tried to allocate 30439 bytes) in
> </blockquote>
> <strong>The Request</strong>
>
> Wouldn't be nice WordPress customizer analyze the ajax response for PHP
> fatal errors and promt a message to the user about the process
> interrupted.
>
> Thank you.
New description:
I am developing a WordPress theme and added my a couple of new settings to
the theme customizer panel. I don't have any custom JS code to share with
you because i only added some new fields like shown at
(http://codex.wordpress.org/Theme_Customization_API)
== The Problem
I am getting this issue when i click the `save and publish` button of the
`customizer panel` and the error comes with an ajax response. WordPress
`customizer` keeps working and refreshes the right frame as if data saved
successfully. When you see the right frame refreshed, you think it is safe
to close the customizer window and loose the unsaved data. Many themes has
expensive operations such as creating dynamic css outputs only for
custumizer so the fatal error may not be effect any other admin or front
end part.
{{{
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to
allocate 30439 bytes)
}}}
== The Request
Wouldn't be nice WordPress customizer analyze the ajax response for PHP
fatal errors and promt a message to the user about the process
interrupted.
Thank you.
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31582#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list