The MU forums have moved to WordPress.org

WPMU can't display mysql errors??? (6 posts)

  1. deltakid
    Member
    Posted 15 years ago #

    I understand the changes to wordpress and that it suppresses Mysql errors now. But I develop some plugins and this is annoying.

    As written here http://codex.wordpress.org/Editing_wp-config.php#Debug setting define('WP_DEBUG', true); in the wp-config.php does not work.

    Can anyone tell me how I can see mysql errors in the latest wpmu version?

  2. suleiman
    Member
    Posted 15 years ago #

    wouldn't these show up in the server logs deltakid?

  3. deltakid
    Member
    Posted 15 years ago #

    Good idea Suleiman, never messed with server logs so far. But isn't there a way to enable it for wpmu? This can really slow down the work on custom plugins and such.

  4. jayschmidt
    Member
    Posted 15 years ago #

    I came across this here and it works:

    <?php $wpdb->show_errors(); ?>
    <?php $wpdb->hide_errors(); ?>

  5. tdjcbe
    Member
    Posted 15 years ago #

    I mean no offense but this is discussed at some length in the readme file under the heading of Error Logging.

  6. jayschmidt
    Member
    Posted 15 years ago #

    Excellent thanks!

About this Topic

  • Started 15 years ago by deltakid
  • Latest reply from jayschmidt