[wp-hackers] Plugin Fatal error refers to WP core

Andrew Nacin wp at andrewnacin.com
Mon Apr 11 10:27:14 UTC 2011


On Mon, Apr 11, 2011 at 5:43 AM, John 3:16 Media <wp at john316media.com>wrote:

> Ok this is wierd.  I am having problems activating my plugin I wrote on my
> test WP install.  WP_DEBUG is set to true, php error reporting is set to
> E_ALL.  I activate my plugin and it says it triggered a fatal error, then
> PHP gives this error:
>
> *Deprecated*: Function set_magic_quotes_runtime() is deprecated in *
> C:\xampp\htdocs\WordPress\wp-settings.php* on line *27*
>
> So I'm lost, not only is this in a core file not my plugin, but idk if a
> deprecated notice constitutes a "fatal error" my guess is not.  According
> to
> my PHP IDE there are no syntax errors or anything in my plugins code so idk
> what is going on, any ideas?
>

That's not a fatal error, it's just E_DEPRECATED, which even with WP_DEBUG
on, should be suppressed. If your plugin is breaking, it shouldn't be due to
this.

If you set error_reporting and error_log outside of PHP (in php.ini), you
should be able to trap whatever you haven't caught yet.

Nacin


More information about the wp-hackers mailing list