• Resolved spacenaut

    (@spacenaut)


    WP 3.1 installed on XAMPP for Mac 1.7.3 (php 5.3.1).

    I keep getting deprecation warnings and the WordPress install becomes inoperable – then it crashes MySQL.

    Googling shows a reasonable number of others also having the same issue, the errors refer to wp-settings.php and includes/class-wp.php

    WordPress Trac shows the issue has come up more than once.

    Editing php.ini makes no difference. (error_reporting = E_ALL & ~E_DEPRECATED)

    Does anyone have any ideas about how to suppress these deprecation warnings (at least as a temporary measure)?

    Cheers.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Alwyn Botha

    (@123milliseconds)

    Add this to the top of your wp-config.php file, right after the first <?php line:

    error_reporting(0);

    Thread Starter spacenaut

    (@spacenaut)

    Hiya,

    I forgot to add that I had already tried that and it didn’t work – but someone from the XAMPP forums suggest the following to add in wp-config.php and I’m now getting no errors.

    // Hide E_DEPRECATED messages.
    if (defined('E_DEPRECATED')) {
      error_reporting(error_reporting() & ~E_DEPRECATED);
    }

    Alwyn Botha

    (@123milliseconds)

    Does anyone have any ideas about how to suppress these deprecation warnings (at least as a temporary measure)?

    So that last post fix works; it shows no error messages?

    Thread Starter spacenaut

    (@spacenaut)

    Yep – the code I posted above added to wp-config.php seems to be the working fix, at least at this point in time it’s working for me.

    I had added the DHTMLX Scheduler plugin and any attempt to view the config page for that, or to add/edit/delete events on the scheduler page and I got the deprecated warning as posted initially.

    But all is working well now!

    *crosses fingers*

    Alwyn Botha

    (@123milliseconds)

    Great

    Please mark thread as resolved so that

    – others with similar problem can see it as resolved and will read this thread for help if they have similar problem

    – people providing help see it as resolved and will not waste time reading this post.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Deprecated Warnings’ is closed to new replies.